﻿function ZSmenu(obj) {
		var i,menStat;
		for(i = 1; i<=7;i++)
		{
		 var d="mz"+i
		 var dd="mzz"+i
		  if(document.getElementById(d))
		    {
			    if(obj ==i)
			    {
				   document.getElementById(d).className="dl_fenglei_sousuo_10";
				   document.getElementById(dd).className="dl_fenglei_sousuo_12";
				    document.getElementById("mzz1_"+i).style.display="block";
				  
			    }
			    else
			    {
				    document.getElementById(d).className="dl_fenglei_sousuo_11";
				    document.getElementById(dd).className="dl_fenglei_sousuo_13";
				    document.getElementById("mzz1_"+i).style.display="none";
			    }
			}
		}
}
var obj
var step=.09 
var delay=20 
var max=2   
var min=1  
var timer 
var ex="60"
function init(n,obj1){ 
 obj=obj1
 obj.style.position="absolute"
 obj.style.zIndex=ex
 obj.style.zoom="1"
 ex++
 clearInterval(timer) 
 timer=setInterval("resize("+n+")",delay) 
} 
function resize(n){ 
czoom=obj.style.zoom*1
if((n>0&&czoom<max)||(n<0&&czoom>min)){    
    obj.style.zoom=czoom+step*n 
} 
else clearInterval(timer) 
} 
function checkPS(theform){
    if(document.all.PointServer1_mail.value=='')   
    {   
    document.all.PointServer1_mail.focus(); 
    alert('[中国虎网] 提醒您:【邮箱】不能为空！');   
    return   false;   
  }  
  
  else if(document.all.PointServer1_Texts.value=='')   
    {   
       document.all.PointServer1_Texts.focus(); 
       alert('[中国虎网] 提醒您:【内容不能为空！】！');   
  return   false;   
  }  
  else if(document.all.PointServer1_mail.value!="")   
    {   
     var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
     if(!myreg.test(document.all.PointServer1_mail.value))
           {
               alert('[中国虎网] 提醒您:提示\n\n请输入有效的E_mail！');  
              return false;
           }        
  }     
  return true; 
}
function Login(url)
{
        var pop=new Popup({ contentType:1, isReloadOnClose:false, width:373, height:180});
        pop.setContent("title","收藏招商信息");
        pop.setContent("contentUrl",url);
        pop.build();
        pop.show();
    return false;
}

function closeWin()
{
   document.getElementById("MainPanner").style.display="none";
   document.getElementById("Login").style.display="none";
}
function Login2(url)
{
    var pop = new Popup({ contentType: 1, isReloadOnClose: false, width: 373, height: 180 });
    pop.setContent("title", "收藏代理信息");
    pop.setContent("contentUrl", url);
    pop.build();
    pop.show();
    return false;  
}
 function sc1(){
        document.getElementById("Login").style.top=(document.documentElement.scrollTop+(document.documentElement.clientHeight-document.getElementById("Login").offsetHeight)/2)+"px";
        document.getElementById("Login").style.left=(document.documentElement.scrollLeft+(document.documentElement.clientWidth-document.getElementById("Login").offsetWidth)/2)+"px";
        }
function scall(){
sc1(); 
}
window.onscroll=scall;
window.onresize=scall;
window.onload+=scall;


