function ResumeError() { 
return true; 
} 
window.onerror = ResumeError; 

function doClick(o){
	 o.className="nav_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=9;i++){
	   id ="nav"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("sub"+i);
	   if(id != o.id){
	   	 j.className="nav_link";
	   	 e.style.display = "none";
	   }else{
			e.style.display = "block";
	   }
	 }
	 }
function doClick_down(o){
	 o.className="down_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=4;i++){
	   id ="down"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con"+i);
	   if(id != o.id){
	   	 j.className="down_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
function doClick_label(o){
	 o.className="label_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="label"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con"+i);
	   if(id != o.id){
	   	 j.className="label_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }	 
function doClick_label2(o){
	 o.className="label2_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=5;i++){
	   id ="label2"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con2"+i);
	   if(id != o.id){
	   	 j.className="label2_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
function doClick_label3(o){
	 o.className="label3_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="label3"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con3"+i);
	   if(id != o.id){
	   	 j.className="label3_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
function doClick_label4(o){
	 o.className="label4_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="label4"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con4"+i);
	   if(id != o.id){
	   	 j.className="label4_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
function doClick_label5(o){
	 o.className="label5_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=4;i++){
	   id ="label5"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con5"+i);
	   if(id != o.id){
	   	 j.className="label5_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
function doClick_label6(o){
	 o.className="label6_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=4;i++){
	   id ="label6"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con6"+i);
	   if(id != o.id){
	   	 j.className="label6_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
	 
function doClick_label7(o){
	 o.className="label7_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=4;i++){
	   id ="label7"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con7"+i);
	   if(id != o.id){
	   	 j.className="label7_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
	 
function doClick_label8(o){
	 o.className="label8_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=4;i++){
	   id ="label8"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_con8"+i);
	   if(id != o.id){
	   	 j.className="label8_link";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
	 
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

function doClick_up(o){
	 o.className="up_link";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=20;i++){
	   id ="up"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("up_con"+i);
	   if(id != o.id){
	   	 j.className="sp";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }


if (top.location !== self.location) {
top.location=self.location;
}

function doZoom(size){
	document.getElementById('textbody').style.fontSize=size+'px'
}

function doClick_inin(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=20;i++){
	   id ="inin"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_cons"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }

function doClick_inins(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=20;i++){
	   id ="inins"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_conss"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
function getcookie(name) {
					var my_cookie = document.cookie;
					var start = my_cookie.indexOf(name + "@astro.lady.qq.com" + "=");
					if (start == -1) return '';
					
					start += name.length + 19; //1 stands of '='
					
					var end = my_cookie.indexOf(";" ,start);
					if (end == -1) end = my_cookie.length;
					return my_cookie.substr(start, end - start);
				}
				
				function setcookie(name,value,open, path) {
					var nextyear = new Date();
					if (open) {
						nextyear.setFullYear(nextyear.getFullYear() + 1);
					} else {
						nextyear.setFullYear(1970);
					}
					document.cookie = name + "@astro.lady.qq.com" + "=" + value + "; expires=" + nextyear.toGMTString() + "; path=" + path; 
				}
				
				function getredirect(v) {
					setcookie('default_astro', v, true, "/");
							 alert("订制成功！");
				}
				
				function getredirect_1(v) {
					setcookie('default_shengxiao', v, true, "/");
							 alert("订制成功！");
				}
				
				function lucktoday()
				{
						var v=document.getElementById("obSelect").value;
						astro_name = v.substr(0,3);
						if (astro_name=="") astro_name="白羊座";
						window.open("http://appastro.qq.com/cgi-bin/astro_newluckday11?astro=" +astro_name+ "&type=today");
				}
				
				function lucktommorrow()
				{
						var v=document.getElementById("obSelect").value;
						astro_name = v.substr(0,3);
						if (astro_name=="") astro_name="白羊座";
						window.open("http://appastro.qq.com/cgi-bin/astro_newluckday11?astro=" +astro_name+ "&type=tommorrow");
				}
				
				function luckweek()
				{
						var v=document.getElementById("obSelect").value;
						astro_name = v.substr(0,3);
						if (astro_name=="") astro_name="白羊座";
						window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=week");
				}
				
				function luckmonth()
				{
						var v=document.getElementById("obSelect").value;
						astro_name = v.substr(0,3);
						if (astro_name=="") astro_name="白羊座";
						window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=month");
				}
				
				function luckyear()
				{
						var v=document.getElementById("obSelect").value;
						astro_name = v.substr(0,3);
						if (astro_name=="") astro_name="白羊座";
						window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=year");
				}
				
				function luckweek_1()
				{
						var v=document.getElementById("obSelect_1").value;
						astro_name = v.substr(0,1);
						if (astro_name=="") astro_name="鼠";
						window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=week");
				}
				
				function luckmonth_1()
				{
						var v=document.getElementById("obSelect_1").value;
						astro_name = v.substr(0,1);
						if (astro_name=="") astro_name="鼠";
						window.open("http://appastro.qq.com/cgi-bin/astro_luck?astro=" +astro_name+ "&type=month");
				}
				
				
/*养老保险*/				
function ylisNull()
{
//校验职工编号和身份证编号是否都为空
	if(f1.sfz.value==""||f1.sfz.value=="请在这里输入身份证号码")
	{
		alert("请填入身份证编号");
		f1.sfz.value="";
		f1.sfz.focus();
		return;
	}
//校验身份证号码中是否含有非法字符
     if(!(f1.sfz.value==""||f1.sfz.value=="请在这里输入身份证号码")){
	for(i=0;i<f1.sfz.value.length;i++)
	{
		var str = f1.sfz.value.charAt(i);
		if(!((str=='x')||(str=='X')||(str>='0'&&str<='9')))
		{
			alert("您输入了非法字符，身份证编号只能输入英文字母x或数字");
			f1.sfz.value="";
			f1.sfz.focus();
			return;
		}
	}
        if(f1.sfz.value.length!=15&&f1.sfz.value.length!=18){
          alert("身份证编号为15位或18位");
          f1.sfz.value="";
          f1.sfz.focus();
          return;
        }
     }
//校验身份证号码中是否含有非法字符
     if(!(f1.sfz.value==""||f1.sfz.value=="请在这里输入身份证号码")){
	for(i=0;i<f1.sfz.value.length;i++)
	{
		var str = f1.sfz.value.charAt(i);
		if(!((str=='x')||(str=='X')||(str>='0'&&str<='9')))
		{
			alert("您输入了非法字符，身份证编号只能输入英文字母x或数字");
			f1.sfz.value="";
			f1.sfz.focus();
			return;
		}
	}
        if(f1.sfz.value.length==18){
        for(i=0;i<f1.sfz.value.length-1;i++)
	{
		var str = f1.sfz.value.charAt(i);
		if(!(str>='0'&&str<='9'))
		{
			alert("您输入了非法字符，身份证编号只能输入英文字母x或数字");
			f1.sfz.value="";
			f1.sfz.focus();
			return;
		}
	}}else{
        for(i=0;i<f1.sfz.value.length;i++)
	{
		var str = f1.sfz.value.charAt(i);
		if(!(str>='0'&&str<='9'))
		{
			alert("您输入了非法字符，身份证编号只能输入数字");
			f1.sfz.value="";
			f1.sfz.focus();
			return;
		}
	}
        }

        if(f1.sfz.value.length!=15&&f1.sfz.value.length!=18){
          alert("身份证编号为15位或18位");
          f1.sfz.value="";
          f1.sfz.focus();
          return;
        }
     }
	f1.submit();
}


/*医疗保险*/

function gotourl(obj)
{
	var url = obj.options[obj.selectedIndex].value;
	if (url!="" && url!="#")
	{
		var o = window.open(url);
		if (o == null)
		{
			alert("请关闭浏览器的弹出窗口过滤功能！");
		}
	}
	obj.selectedIndex = 0;
}
function isNull()
{
//校验职工编号和身份证编号是否都为空
	if(f1.GRBH.value==""||f1.GRBH.value=="请在这里输入个人医疗保险编号")
	{
		alert("请填入个人医疗保险编号");
		f1.GRBH.value="";
		f1.GRBH.focus();
		return;
	}
//校验身份证号码中是否含有非法字符
     if(!(f1.GRBH.value==""||f1.GRBH.value=="请在这里输入个人医疗保险编号")){
	for(i=0;i<f1.GRBH.value.length;i++)
	{
		var str = f1.GRBH.value.charAt(i);
		if(!(str>='0'&&str<='9'))
		{
			alert("您输入了非法字符，个人医疗保险编号只能输入数字");
			f1.GRBH.value="";
			f1.GRBH.focus();
			return;
		}
	}
        if(f1.GRBH.value.length!=10){
          alert("个人医疗保险编号为10位");
          f1.GRBH.value="";
          f1.GRBH.focus();
          return;
        }
     }
	f1.submit();
}


//右边栏链接

function CheckEvent()
    {
    var lst1=window.document.getElementById("Product2_ListBox1");
    window.open(lst1.value);
    }
    function CheckEvent1()
    {
    var lst2=window.document.getElementById("Product2_ListBox2");
    window.open(lst2.value);
    }
    function CheckEvent2()
    {
    var lst3=window.document.getElementById("Product2_ListBox3");
    window.open(lst3.value);
    }
    function CheckEvent3()
    {
    var lst4=window.document.getElementById("Product2_ListBox4");
    window.open(lst4.value);
    }