function DrawImage(img,width,height){
if(width==null) width=68;
if(height==null) height=108;
var image=new Image(); 
image=img;
	if(img.height>height)
	{
		rate=image.width/image.height;
		newWidth=rate*height;
		img.height=height;
		img.width=newWidth;
	}
//	if(image.width>0 && image.height>0)
//	{
//	  	rate=image.height/image.width;
//	  	newHeight=rate*width;
//	  	img.width=width;
//	  	img.height=newHeight;
//	}
}

function DrawImage_ds(img,width,height){
if(width==null) width=68;
if(height==null) height=108;
var image=new Image(); 
image=img;
	if(img.height>height)
	{
		rate=image.width/image.height;
		newWidth=rate*height;
		img.height=height;
		img.width=newWidth;
	}
//	if(image.width>0 && image.height>0)
//	{
//	  	rate=image.height/image.width;
//	  	newHeight=rate*width;
//	  	img.width=width;
//	  	img.height=newHeight;
//	}
}
