function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_jumpMenu(targ,selObj,restore)
 { //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
 }
function search_vmno32(addr,keyword)
{
 if(keyword=='')
 {
    keyword='%';
 }
 window.open(addr+"?vmno32="+keyword,"中采网");
}
function search_vmno3(addr,keyword)
{
 if(keyword=='')
 {
   keyword='%';
 }
 window.open(addr+"?vmno3="+keyword,"中采网");
}
function mail_login(addr,username,passwd)
{
 if(username=='')
 {
   alert("用户名不能为空");
   return false;
 }
 if(passwd=='')
 {
   alert("密码不能为空");
   return false;
 }
 window.open(addr+"?username="+username+"&passwd="+passwd,"中采网");
}

function fun_more(var1)
{
  open(var1,"中采网","resizable=no,scrollbars=yes,width=620,height=456");
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {
	if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
		onresize=MM_reloadPage; 
  	}
  }
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



function MM_showHideLayers() { //v3.0
  //alert(screen.width);
  
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  if(screen.width==1024){
  //alert(document.getElementById(args[0]).style.left);
        
       if ((obj=document.getElementById(args[0]))!=null) { 
      	   v=args[2];
           if (obj.style) { 
           	obj=obj.style;
           	v=(v=='show')?'visible':(v='hide')?'hidden':v; 
           
           }
           obj.visibility=v; 
           //alert(obj.visibility);
          if(obj.visibility=='visible')  p=obj.pixelLeft+100;
          if(obj.visibility=='hidden')  p=obj.pixelLeft-100; 
          obj.left=p;
        }
      

}
else{
      
       if ((obj=document.getElementById(args[0]))!=null) { 
      	   v=args[2];
           if (obj.style) { 
           	obj=obj.style;
           	v=(v=='show')?'visible':(v='hide')?'hidden':v; 
           
           }
           obj.visibility=v; 
      
        }
      
}
}




function ShowDate() {
d = new Date();
switch (d.getDay()) {
	case 0:  
 strweek="日";
 break;
	case 1: 
 strweek="一";
 break;
        case 2:
 strweek="二";
 break;
	case 3: 
 strweek="三";
 break;
	case 4:
 strweek="四";
	case 5:
 strweek="五";
 break;
	case 6:
 strweek="六"; 
 break;
}
myyear=d.getYear();
mymonth=d.getMonth()+1;
 year = (myyear > 200) ? myyear : 1900 + myyear;  document.write((year+"-"+mymonth)+"-"+d.getDate()+ " 星期"+ strweek); }
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
