function DrawImage(ImgD,w,h){ 
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>= w/h){ 
   if(image.width>w){
    ImgD.width=w; 
    ImgD.height=(image.height*h)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   /*ImgD.alt="bigpic"  */
  } 
  else{ 
   if(image.height>h){
    ImgD.height=h; 
    ImgD.width=(image.width*h)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    /*ImgD.alt="bigpic"  */ 
  } 
}
}

function ss(){
var lb=document.fm.lb;
for(var i=0;i<lb.length;i++){	
	    if(lb[i].checked){
		lb=lb[i].value;
		}		
	}
var keyword=document.fm.keyword.value;
var str="search.asp?lb="+lb+"&keyword="+keyword;
fm.action=str;
fm.submit();
}

//function document.onkeydown(){              //网页内按下回车触发

  // if(event.keyCode==13)
    //{
    //var el = window.event.srcElement;
   //if( el.id == document.getElementById("keyword").id ){
   // document.getElementById("ic").onclick();
    // / document.getElementById("ImageButton1").click();
	// alert('sss');
     //   ss();
    // }

//} 
function KeyDown(event) { 
if (event.keyCode == 13) {  
      document.getElementById("ic").onclick();
}

}


