﻿//设为首页js
function setHomePage()
{
   //var  host = window.location.host;
   //url=document.domain; 
   //url = window.location.href;
   var url=window.location.host;
   if (document.all)
   { 
        document.body.style.behavior= 'url(#default#homepage) '; 
        document.body.setHomePage(url); 
    } 

}

//添加收藏夹js
function addfavorite()
{
   var url=window.location.host;
   window.external.addFavorite(url,'杭州子牙科技信息有限公司');
}

// www.eziya.com 底部文件
function ad()
{

    document.writeln(" <div id=\"right\">");
    document.writeln("        	<div id=\"quick\">");
    document.writeln("            <span class=\"qqtit\">客户服务<\/span>");
    document.writeln("            <a href=\"tencent:\/\/message\/?uin=315685173&Site=www.sinomen.cn&Menu=yes\" ><span class=\"qq\" onmouseover=\"this.className=\'m\'\" onmouseout=\"this.className=\'n\'\"><\/span><\/a>");
    document.writeln("            <span class=\"qqtit\">商务洽谈<\/span>");
    document.writeln("            <a href=\"tencent:\/\/message\/?uin=582500193&Site=www.sinomen.cn&Menu=yes\" ><span class=\"qq\" onmouseover=\"this.className=\'m\'\" onmouseout=\"this.className=\'n\'\"><\/span><\/a>");
    document.writeln("            <span class=\"qqtit\">渠道加盟<\/span>");
    document.writeln("            <a href=\"tencent:\/\/message\/?uin=553761815&Site=www.sinomen.cn&Menu=yes\" ><span class=\"qq\" onmouseover=\"this.className=\'m\'\" onmouseout=\"this.className=\'n\'\"><\/span><\/a>");
    document.writeln("            <a href=\"tencent:\/\/message\/?uin=1356538184&Site=www.sinomen.cn&Menu=yes\" ><span class=\"qq\" onmouseover=\"this.className=\'m\'\" onmouseout=\"this.className=\'n\'\"><\/span><\/a>");
    document.writeln("            <span class=\"qqtit\">投诉建议<\/span>");
    document.writeln("            <a href=\"tencent:\/\/message\/?uin=4821885&Site=www.sinomen.cn&Menu=yes\" ><span class=\"qq\" onmouseover=\"this.className=\'m\'\" onmouseout=\"this.className=\'n\'\"><\/span><\/a>");
    document.writeln("            <span class=\"qqtit\">公司合作<\/span>");
    document.writeln("            <a href=\"tencent:\/\/message\/?uin=498552420&Site=www.sinomen.cn&Menu=yes\" ><span class=\"qq\" onmouseover=\"this.className=\'m\'\" onmouseout=\"this.className=\'n\'\"><\/span><\/a>");
    document.writeln("            <a class=\"emaill\" href=\"mailto:eyunque@qq.com\"><span><img src=\"imgs\/email.gif\" alt=\"\"  \/><\/span><\/a>");
    document.writeln("            <a href=\"#\"><span class=\"top\"><img src=\"imgs\/top.gif\" alt=\"\"  \/><\/span><\/a>");
    document.writeln("            <\/div>");
    document.writeln("        <\/div>");
    //document.writeln("    <\/div>");
}
function SiteBottom()
{
    document.writeln("<div id=\"foot\">");
    document.writeln("    	<div class=\"footmain\">");
    document.writeln("        	<div class=\"logof\"><a href=\"login.aspx\" target=\"_blank\"><img src=\"imgs\/logof.gif\" alt=\"\" \/><\/a><\/div>");
    document.writeln("            <div class=\"footnews\">");
    document.writeln("            	<span class=\"footlink\">");
    document.writeln("                    <a href=\"Intro.html\" target=\"_blank\">关于我们<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"#\" target=\"_blank\">客户服务<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"shangwu.html\" target=\"_blank\">商务洽谈<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"Job.aspx\" target=\"_blank\">人才招聘<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"Contact.html\" target=\"_blank\">联系我们<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"partners.html\" target=\"_blank\">合作伙伴<\/a>");
    document.writeln("                    ");
    document.writeln("                    <select class=\"selecta\">");
    document.writeln("                        <option><\/option>");
    document.writeln("                        <option><\/option>");
    document.writeln("                    <\/select>");
    document.writeln("                <\/span>");
    document.writeln("                <span class=\"copy\">");
    document.writeln("                    Copyright © 2008-2009 eziya.com Corporation，All Rights Reserved<br \/>");
    document.writeln("                    子牙网络 版权所有 浙ICP备07028035号");
    document.writeln("                <\/span>");
    document.writeln("            <\/div>");
    document.writeln("        <\/div>");
    document.writeln("    <\/div>");
}

// www.eziya.com 头部文件
function SiteTop()
{  
    document.writeln("<div id=\"toptool\">");
    document.writeln("        <a  onclick=\"setHomePage();\" title=\"您是否想要将此网址设为首页?\" style=\"cursor:hand;\">设为首页<\/a>&nbsp;");
    document.writeln("        <a  style=\"cursor:hand;\"  onclick=\"javascript:window.external.addFavorite('http://www.eziya.com','杭州子牙信息科技有限公司');\">加入收藏</a>");
    document.writeln("        <a href=\"#\" class=\"sitemap\">站点地图<\/a>");
    document.writeln("    <\/div>");
    document.writeln("    <div id=\"head\">");
    document.writeln("    	<div id=\"logo\">");
    document.writeln("        	<a href=\"index.aspx\"><img src=\"imgs\/logo.gif\" alt=\"logo\" \/><\/a>");
    document.writeln("        <\/div>");
    document.writeln("<div id=\"menu\">");
    document.writeln("     <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"716\" height=\"70\">");
    document.writeln("       <param name=\"movie\" value=\"imgs\/menu.swf\" \/>");
    document.writeln("       <param name=\"quality\" value=\"high\" \/>");
    document.writeln("       <embed src=\"imgs\/menu.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"716\" height=\"70\"><\/embed>");
    document.writeln("     <\/object>");
    document.writeln("   <\/div>");
    document.writeln("    <\/div>");
    document.writeln("<div id=promenu>");
    document.writeln("      ");
    document.writeln("      	  <div class=\"promenutop\">");
    document.writeln("        	<img src=\"imgs\/promenutop.gif\" align=\"\"  \/>");
    document.writeln("          <\/div>");
    document.writeln("          ");
    document.writeln("      	  <div class=\"promenucenter\">");
    document.writeln("          		<div class=\"promenucl\">");
    document.writeln("                <\/div>");
    document.writeln("                <div class=\"promenuccm\">");
    document.writeln("                <a href=\"#\" onclick=\"changemenu(\'promenumian\');\" class=\"btn-promenuccm\">");
    document.writeln("                    <ul id=\"promenucc\">");
    document.writeln("                      <li class=current>主营平台[A] <\/li>");
    document.writeln("                      <li>主营平台[B]<\/li>");
    document.writeln("                      <li>增值产品[A] <\/li>");
    document.writeln("                      <li class=nbg>增值产品[B]<\/li>");
    document.writeln("                    <\/ul>");
    document.writeln("                <\/a>");
    document.writeln("                <\/div>");
    document.writeln("                <div class=\"promenucr\">");
    document.writeln("                <\/div>");
    document.writeln("          <\/div>");
    document.writeln("          <div id=\"promenumian\">");
    document.writeln("        	<div class=\"promenuml\">");
    document.writeln("            <\/div>");
    document.writeln("            <div class=\"promenumc\">");
    document.writeln("            	<a href=\"#\"><span><img src=\"imgs\/promenumzy.gif\" align=\"\"  \/><\/span><\/a>");
    document.writeln("                <a href=\"pro-pingtai.html\"  target=\"_blank\"><span class=\"promenumtext\">在线销售平台<\/span><\/a>");
    document.writeln("                <a href=\"#\"><span class=\"promenumtext\">淘卡网<\/span><\/a>");
    document.writeln("                <a  href=\"pro-zhichu.html\"  target=\"_blank\"><span class=\"promenumtext\">直储系统<\/span><\/a>");
    document.writeln("                <a href=\"#\"><span class=\"promenumtext\">一卡通系统<\/span><\/a>");
    document.writeln("                <a href=\"pro-yyt.html\" target=\"_blank\"> <span class=\"promenumtext\">通信网上营业厅<\/span><\/a>");
    document.writeln("                <a href=\"#\"><span><img src=\"imgs\/promenumzz.gif\" align=\"\"  \/><\/span><\/a>");
    document.writeln("                <a href=\"pro-yanka.html\"  target=\"_blank\"><span class=\"promenumtext\">验卡器<\/span><\/a>");
    document.writeln("                <a href=\"pro-saoka.html\"  target=\"_blank\"><span class=\"promenumtext\">刮翻天扫卡器<\/span><\/a>");
    document.writeln("                <a href=\"#\"><span class=\"promenumtext\">个性化信息服务<\/span><\/a>");
    document.writeln("            <\/div>");
    document.writeln("            <div class=\"promenumr\">");
    document.writeln("            <\/div>");
    document.writeln("        <\/div>");
    document.writeln("          <div id=\"panel\">");
    document.writeln("           <div class=\"promenumian-l\">");
    document.writeln("                <div class=\"promenuml\">");
    document.writeln("                <\/div>");
    document.writeln("                <div id=\"promenumc\">");
    document.writeln("                      <div class=\"prozy\" >");
    document.writeln("                         <span><img src=\"imgs\/pro-zy.gif\" \/><\/span>");
    document.writeln("                         <span><a href=\"pro-pingtai.html\" target=\"_blank\"><img src=\"imgs\/pro-zya.gif\" \/><\/a><\/span>");
    document.writeln("                         <span><img src=\"imgs\/pro-zyb.gif\" \/><\/span>");
    document.writeln("                         <span><a href=\"pro-zhichu.html\" target=\"_blank\"><img src=\"imgs\/pro-zyc.gif\" \/></a><\/span>");
    document.writeln("                         <span><img src=\"imgs\/pro-zyd.gif\" \/><\/span> ");
    document.writeln("                      <\/div>");
    document.writeln("       	    		  <div class=\"smask\">");
    document.writeln("                         <span><img src=\"imgs\/pro-zy.gif\" \/><\/span>");
    document.writeln("                         <span><a href=\"pro-yyt.html\" target=\"_blank\"><img src=\"imgs\/pro-zye.gif\" \/></a><\/span>");
    document.writeln("                         <span><a href=\"pro-youxi.html\" target=\"_blank\"><img src=\"imgs\/pro-zyf.gif\" \/><\/span><\/a>");
    document.writeln("                      <\/div>");
    document.writeln("             		  <div class=\"smask\">");
    document.writeln("                         <span><img src=\"imgs\/pro-zz.gif\" \/><\/span>");
    document.writeln("                         <span><a href=\"pro-yanka.html\" target=\"_blank\"><img src=\"imgs\/pro-zza.gif\" \/><\/span><\/a>");
    document.writeln("                         <span><a href=\"pro-saoka.html\" target=\"_blank\"><img src=\"imgs\/pro-zzb.gif\" \/><\/span><\/a>");
    document.writeln("                         <span><img src=\"imgs\/pro-zzc.gif\" \/><\/span>");
    document.writeln("                         <span><a href=\"pro-ie.html\" target=\"_blank\"><img src=\"imgs\/pro-zzd.gif\" \/><\/span><\/a>");
    document.writeln("                      <\/div>");
    document.writeln("                      <div class=\"smask\">");
    document.writeln("                         <span><img src=\"imgs\/pro-zz.gif\" \/><\/span>");
    document.writeln("                         <span><a href=\"pro-shibie.html\" target=\"_blank\"><img src=\"imgs\/pro-zzf.gif\" \/><\/span><\/a>");
    document.writeln("                      <\/div>");
    document.writeln("                <\/div>");
    document.writeln("                <div class=\"promenumr\">");
    document.writeln("                <\/div>");
    document.writeln("          <\/div>");
    document.writeln("         <\/div>");
document.writeln("	<\/div>");
    document.writeln("<div class=\"promenubottom\"><div class=\"promenubl\"></div><div class=\"promenubc\"></div><div class=\"promenubr\"></div></div> ");
}


//新闻切换
function NewsChange()
{
    var Tags=document.getElementById('xinwentitle').getElementsByTagName('h2'); 
    var TagsCnt=document.getElementById('xinwenf').getElementsByTagName('span'); 
    var len=Tags.length; 
    var flag=1;//修改默认值
    for(i=1;i<len;i++){
     Tags[i].value = i;
     Tags[i].onmouseover=function(){changeNav(this.value)}; 
     TagsCnt[i].className='undis';     
    }
    Tags[flag].className='topC1';
    TagsCnt[flag].className='dis';
    function changeNav(v){ 
     Tags[flag].className='topC0';
     TagsCnt[flag].className='undis';
     flag=v; 
     Tags[v].className='topC1';
     TagsCnt[v].className='dis';
    }
}


function ShowOrHide(TextID,SpanID,MinValueLength,MaxValueLength,width)
 {
     if(TextID!="txtConfirmPwd")
     {
        if(document.getElementById(TextID).value.length < MinValueLength || document.getElementById(TextID).value.length > MaxValueLength)
        {

          document.getElementById(SpanID).style.display='block';
          document.getElementById(SpanID).style.width=width;


        }
        else
        {
          document.getElementById(SpanID).style.display='none';
        }
      }
      else
      {
        if(document.getElementById(TextID).value==document.getElementById('txtPwd').value && document.getElementById('txtPwd').value.length>0)
        {
            document.getElementById(SpanID).style.display='none';
        }
        else
        {
          document.getElementById(SpanID).style.display='block';
          document.getElementById(SpanID).style.width=width;
        }
        
      
      }
    
 
 }
 
 
 function GetHeigth(OBJ,BodyID,Myheight)
 {
   if(OBJ!='')
   {
     document.getElementById(OBJ).style.height=window.screen.height - Myheight;
   }
   document.getElementById(BodyID).style.backgroundColor = 'White';
 }
 
 
 function IsChDomain(argString)
{
		var flag=false;
		var compStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-1234567890";
		var length1=argString.length;
		for(var chrIndex=0;chrIndex<length1;chrIndex++)
			{
				var temp=argString.charCodeAt(chrIndex)
				if(temp>=10000) 
					flag=true;
				else
				{
					var temp1=compStr.indexOf(argString.charAt(chrIndex));
					if(temp1==-1)
					{
						flag=false;
						break;							
					}
				}
			}
		return flag;
	}
	


function Trim(info)
{
	return info.replace(/(^\s*)|(\s*$)/g, "");
}



function IsEnDomain(argValue) 
{
	var flag1=false;
	var compStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-1234567890";
	var length2=argValue.length;
	for (var iIndex=0;iIndex<length2;iIndex++)
		{
			var temp1=compStr.indexOf(argValue.charAt(iIndex));
			if(temp1==-1) 
				{
					flag1=false;
					break;							
				}
			else
				{
					flag1=true;
				}
		}
	return flag1;
}


var old=null; 
function changemenu(mydiv){ 
  var obj = document.getElementById(mydiv); 
  if (old!=null&&old!=obj) 
    old.style.display='none'; 
  old=obj; 
  if (obj.style.display=='none'){ 
    obj.style.display='block'; 
  }else{ 
    obj.style.display='none'; 
  } 
}







