function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  //if (restore) selObj.selectedIndex=0;
}

var flag=false;
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>= 600/450){
     if(image.width>600){  
     ImgD.width=600;
     ImgD.height=(image.height*600)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     }
    else{
     if(image.height>450){  
     ImgD.height=450;
     ImgD.width=(image.width*450)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     }
    }
} 

var flag=false;
function DrawImageA(ImgD){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= 150/150){
     if(image.width>150){  
     ImgD.width=150;
     ImgD.height=(image.height*150)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     }
    else{
     if(image.height>150){  
     ImgD.height=150;
     ImgD.width=(image.width*150)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     }
    }
} 
function checkform2()
{
if (document.form2.text.value==""){
  alert("请输入关键词!");
  document.form2.text.focus();
  return false;
}
  }

function checkform()
{
if (document.form1.name.value==""){
  alert("请输入会员名");
    document.form1.name.focus();
  return false;
}
if (document.form1.password.value==""){
  alert("请输入密码");
  document.form1.password.focus();
  return false;
}

  }


function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
preloadFlag = true;
}
}
