<!--
var flag=false;
function DrawImage(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 1){
if(image.width>150){ 
ImgD.width=150;
ImgD.height=(image.height*150)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>140){ 
ImgD.height=140;
ImgD.width=(image.width*140)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 
function DrawSmallImage(ImgD){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		flag=true;
		if(image.width/image.height>= 1)
		{
			if(image.width>38)
			{ 
			ImgD.width=38;
			ImgD.height=(image.height*38)/image.width;
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
		else
		{
			if(image.height>36)
			{ 
				ImgD.height=36;
				ImgD.width=(image.width*36)/image.height; 
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
	}
} 
function DrawImageAuto(ImgD, pwidth, pheight){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		flag=true;
		if(image.width/image.height>= 1)
		{
			if(image.width>pwidth && pwidth>0)
			{ 
			ImgD.width=pwidth;
			ImgD.height=(image.height*pwidth)/image.width;
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
		else
		{
			if(image.height>pheight && pheight>0)
			{ 
				ImgD.height=pheight;
				ImgD.width=(image.width*pheight)/image.height; 
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
	}
}
function DrawAnclassImage(ImgD){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		flag=true;
		if(image.width/image.height>= 1)
		{
			if(image.width>130)
			{ 
			ImgD.width=130;
			ImgD.height=(image.height*130)/image.width;
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
		else
		{
			if(image.height>130)
			{ 
				ImgD.height=130;
				ImgD.width=(image.width*130)/image.height; 
			}
			else
			{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
	}
}  
//-->