	function resize(Obj, image)
	{
		myImage = new Image();
		myImage.src = image;
		var height = myImage.height;
		var width  = myImage.width;
		if(height > 100 || width > 100)
		{
			if(height > width)
			{
				var temp = height/100;

				var new_width = width / temp;
				new_width = parseInt(new_width);

				height = 100;
				width = new_width;
			}
			else
			{
				var temp = width/100;

				var new_height = height / temp;
				new_height = parseInt(new_height);

				height = new_height;
				width = 100;
			}
		}
		Obj.height = height;
		Obj.width = width;
	}


