//*************************************
//*************************************
//打开新窗口查看招聘信息的具体内容
function ViewMoreInfo(URL)
{  var strulr;
   strulr=URL;
 window.open(strulr,'','status=yes,scrollbars=yes,top=0,left=0,width=600,height=468');
}
function ViewOrder(id)
{  var strulr;
   strulr="ViewOrder.asp?OrderID="+id;
 window.open(strulr,'','status=yes,scrollbars=yes,top=0,left=0,width=768,height=486');
}
function ViewOrder1(id,UserName)
{  var strulr;
   strulr="ViewOrder.asp?OrderID="+id+"&UserName="+UserName;
   //window.open(strulr,'','status=yes,scrollbars=yes,top=0,left=0,width=768,height=486');
   window.document.location.href=strulr;
}
function openAdOnIndex(){
    var strulr;
    strulr="indexFlash.html";
    window.open(strulr,'','status=yes,scrollbars=yes,top=0,left=0,width=257,height=196');	
}
/////////*****************************************
//************************************************
///图片缩放
var  flag=false;  
function  DrawImage(ImgD,ImgW,ImgH){ 
     var W=ImgW;//设置宽度
	 var H=ImgH;//设置高度
	 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;  
         }  
         }  
       else{  
         if(image.height>H){      
         ImgD.height=H;  
         ImgD.width=(image.width*W)/image.height;            
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
       
         }  
       }  
}
////////////////////////////////////////
function Buy(id){document.location="cutshop.asp?nid="+id+"&action=buy";}
////////////////////////////////////////
///收藏
  function  Collection(id,name,styp){
			      document.location="AtionCollection.asp?id="+id+"&name="+name+"&styp="+styp;
  }

 function del(id){
   if(confirm("确认要删除该订单吗？")){
       document.location="OrderList.asp?OrderID="+id+"&action=del";
	   return true;
    }else{return ;} 
  }
//翻页JS  
function page(str,p,ProBigName,ProTypeName,Ty){
  
  if(str=='+'){
       p++;
  }else if(str='-'){
       p--;
  }
  strr="pro.asp?"
  strr+="ProBigName="+ProBigName;
  strr+="&ProTypeName="+ProTypeName; 
  strr+="&pageno="+p;
  strr+="&Ty="+Ty; 
  //alert(strr);
  document.location=strr;
}  