<!--
var flag=false;




function DrawImageNew(ImgD,w,h){
	
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
	flag=true;
	
	if(image.width/image.height>= w/h){
	if(image.width>w)
	{ 
		ImgD.width=w;
		ImgD.height=(image.height*w)/image.width;
	}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
}
else{
	if(image.height>h){ 
	ImgD.height=h;
	ImgD.width=(image.width*h)/image.height; 
}else{
	ImgD.width=image.width; 
	ImgD.height=image.height;
}
}
}

} 






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>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;
}
}
}
} 



function DrawImageBig(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>300)
	{ 
		ImgD.width=300;
		ImgD.height=(image.height*300)/image.width;
	}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
}
else{
	if(image.height>300){ 
	ImgD.height=300;
	ImgD.width=(image.width*300)/image.height; 
}else{
	ImgD.width=image.width; 
	ImgD.height=image.height;
}
}
}
} 


function DrawImageSmall (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>60)
	{ 
		ImgD.width=60;
		ImgD.height=(image.height*60)/image.width;
	}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
}
else{
	if(image.height>60){ 
	ImgD.height=60;
	ImgD.width=(image.width*60)/image.height; 
}else{
	ImgD.width=image.width; 
	ImgD.height=image.height;
}
}
}
} 


//-->