<!--
var flag=false;
function DrawImage(ImgD,vwidth,vheight)
{
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		flag=true;
		if(image.width/image.height>= vwidth/vheight)
		{
			 if(image.width>vwidth)
			 {
				 ImgD.width=vwidth;
				 ImgD.height=(image.height*vwidth)/image.width;
			 }
			 else
			 {
				 ImgD.width=image.width;
				 ImgD.height=image.height;
			 }
			 //ImgD.alt="图片实际大小:"+image.width+"×"+image.height;
		}
		else
		{
			 if(image.height>vheight)
			 {
				 ImgD.height=vheight;
				 ImgD.width=(image.width*vheight)/image.height;
			 }
			 else
			 {
				 ImgD.width=image.width;
				 ImgD.height=image.height;
			 }
			 //ImgD.alt="图片实际大小:"+image.width+"×"+image.height;
		 }
	}
	/*else{
	ImgD.src="";
	ImgD.alt=""
	}*/
}
//控制目录树函数
function MM_openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->