<!--
function DrawImage(ImgD,MaxLength)
{
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		if(image.width/image.height>= 1)
		{
			if(image.width>MaxLength)
			{ 
				ImgD.width=MaxLength;
				ImgD.height=(image.height*MaxLength)/image.width;
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
		else
		{
			if(image.height>MaxLength)
			{ 
				ImgD.height=MaxLength;
				ImgD.width=(image.width*MaxLength)/image.height; 
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
	}
} 
//-->