function visite(id,parentid,agentNo,product,catalogName){
   var url="/data_opt.jsp?flag=4&id="+id+"&parentid="+parentid+"&agentNo="+agentNo+"&product="+encodeURIComponent(product)+"&catalogName="+encodeURIComponent(catalogName);
   var myAjax = new Ajax.Request(url,
    {
      method: 'post'
    }
   );
}

function tanOpen(pageurl) {
 // alert(location.href.substring(location.href.lastIndexOf('/')));
  window.open(pageurl,"popWin","scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no, top=0,left=0 width=400,height=300");

}



var thisURL = document.URL;
var thisPage="";  
if(thisURL.indexOf(".com.cn")>=0){
   thisPage = (thisURL.substring(thisURL.indexOf(".com.cn")+7));
}else if(thisURL.indexOf(".com")>=0){
   thisPage = (thisURL.substring(thisURL.indexOf(".com")+4));
}

if(thisPage=="/" || thisPage==""){
  tanOpen('http://www.doosaninfracore.com.cn/tan_agent/tan.htm'); 	
}
