function  DrawImage(ImgD){  
  var  flag=false; 
     var  image=new  Image();  
     image.src=ImgD.src;  
     if(image.width>0  &&  image.height>0){  
       flag=true;  
       if(image.width/image.height>=  280/210){  
         if(image.width>280){      
         ImgD.width=280;  
         ImgD.height=(image.height*280)/image.width;  
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
        // ImgD.alt=image.width+"กม"+image.height;  
         }  
       else{  
         if(image.height>210){      
         ImgD.height=210;  
         ImgD.width=(image.width*210)/image.height;            
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
         //ImgD.alt=image.width+"กม"+image.height;  
         }  
       }  
}   

function contentsearch()
			{
				document.form_search.action="ensearch.asp?searchkey=" + escape(form_search.searchkey.value);
				document.form_search.submit();
				return false;
			}