<!-- 
var flag=false; 
function DrawImage(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=1; 
  if(image.width/image.height>=239/186){ 
   if(image.width>239){
    ImgD.width=239; 
    ImgD.height=(image.height*239)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
  else{ 
   if(image.height>186){
    ImgD.height=186; 
    ImgD.width=(image.width*186)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
 }
}

var flag=false; 
function DrawImage_1(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=1; 
  if(image.width/image.height>=178/95){ 
   if(image.width>178){
    ImgD.width=178; 
    ImgD.height=(image.height*178)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
  else{ 
   if(image.height>95){
    ImgD.height=95; 
    ImgD.width=(image.width*95)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
 }
}

var flag=false; 
function DrawImage_2(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=1; 
  if(image.width/image.height>=170/130){ 
   if(image.width>170){
    ImgD.width=170; 
    ImgD.height=(image.height*170)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+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; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
 }
}

function nono(){return false;}
function check(){
if(document.mf.username.value.length<1){alert('请填写注册用户名称');document.mf.username.select();return false;}
if(document.mf.psw.value.length<1){alert('请填写您的密码');document.mf.psw.select();return false;}
else {return 1;}
}

function search_form_check(){
if(document.search_form.key.value==""){alert('请输入关键字!');document.search_form.key.select();return false;}
if(document.search_form.typeto.value==""){alert('请选择类别!');document.mf.psw.select();return false;}
else {return 1;}
}

