﻿var patterns=new Object();patterns.email=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;patterns.IdCode=/^\d{15,15}(?:\d{2,2}[\dxX]{1,1})?$/;patterns.IsNumeric=/^-?\d+(?:\.\d+)?$/;patterns.IsInt=/^-?\d+$/;patterns.NotNull=/\s/g;patterns.mobileP=/^1[358]\d{9}$/;patterns.Phone=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;function verify(c,b){var a=false;thePat=patterns[b];switch(b){case"NotNull":if(c.replace(thePat,"").length!=0){a=true}break;default:if(thePat.test(c)){a=true}}return a}function GetCookie(d){var b=document.cookie.split("; ");for(var c=0;c<b.length;c++){var a=b[c].split("=");if(d==a[0]){return a[1]}}return null}function delCookie(b){var a=new Date();a.setTime(a.getTime()-1);document.cookie=b+"=42; expires="+a.toGMTString()}function HideSpace(b){var a=(window.event?b.keyCode:b.which);if(a==32){return false}}function sAlert(){var h,d,f;h=260;d=230;titleheight=25;f="#336699";titlecolor="#99CCFF";var c,e;c=document.body.clientWidth;e=2500;var b=document.createElement("div");b.setAttribute("id","bgDiv");b.style.position="absolute";b.style.top="0";b.style.background="#777";b.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";b.style.opacity="0.6";b.style.left="0";b.style.width=c+"px";b.style.height=e+"px";b.style.zIndex="10000";document.body.appendChild(b);var a=document.createElement("div");a.setAttribute("id","msgDiv");a.setAttribute("align","center");a.style.background="white";a.style.border="1px solid "+f;a.style.position="absolute";a.style.left="50%";a.style.top="50%";a.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";a.style.marginLeft="-225px";a.style.marginTop=-75+document.documentElement.scrollTop+"px";a.style.width=h+"px";a.style.height=d+"px";a.style.textAlign="center";a.style.lineHeight="25px";a.style.zIndex="10001";var k=document.createElement("h4");k.setAttribute("id","msgTitle");k.setAttribute("align","right");k.style.margin="0";k.style.padding="3px";k.style.background=f;k.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";k.style.opacity="0.75";k.style.border="1px solid "+f;k.style.height="18px";k.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";k.style.color="white";k.style.cursor="pointer";k.innerHTML="关闭";k.onclick=function(){document.getElementById("logn").appendChild(document.getElementById("l"));document.body.removeChild(b);document.getElementById("msgDiv").removeChild(k);document.body.removeChild(a);var l=document.getElementById("loginNewsRight").getElementsByTagName("select");for(i=0;i<l.length;i++){l[i].disabled=false}var m=document.getElementById("bottom").getElementsByTagName("select");for(i=0;i<m.length;i++){m[i].disabled=false}};document.body.appendChild(a);document.getElementById("msgDiv").appendChild(k);var g=document.getElementById("l");document.getElementById("msgDiv").appendChild(g.cloneNode(true));var j=document.getElementById("logn");j.removeChild(g)}function toc(){document.getElementById("logn").appendChild(document.getElementById("l"));var b=document.getElementById("msgDiv");document.body.removeChild(b);var a=document.getElementById("bgDiv");document.body.removeChild(a);window.location.href=document.getElementById("url").value}function bookmark(){try{window.external.AddFavorite("http:///www.zuche668.com","畅行租车－－中国汽车租赁服务新标杆")}catch(a){try{window.sidebar.addPanel("畅行租车网—汽车租赁服务新标杆","http:///www.zuche668.com","")}catch(a){alert("加入收藏失败，请使用Ctrl+D进行添加")}}}function SetHome(c,d){try{c.style.behavior="url(#default#homepage)";c.setHomePage(d)}catch(b){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(b){alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'")}var a=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);a.setCharPref("browser.startup.homepage",d)}}};