Date.prototype.Format=function(a){a=a.replace(/yyyy|YYYY/,this.getFullYear());a=a.replace(/yy|YY/,this.getYear()%100>9?(this.getYear()%100).toString():"0"+this.getYear()%100);a=a.replace(/MM/,this.getMonth()+1>9?(this.getMonth()+1).toString():"0"+(this.getMonth()+1));a=a.replace(/M/g,this.getMonth()+1);a=a.replace(/w|W/g,"日,一,二,三,四,五,六".split(",")[this.getDay()]);a=a.replace(/dd|DD/,this.getDate()>9?this.getDate().toString():"0"+this.getDate());a=a.replace(/d|D/g,this.getDate());a=a.replace(/hh|HH/,
this.getHours()>9?this.getHours().toString():"0"+this.getHours());a=a.replace(/h|H/g,this.getHours());a=a.replace(/mm/,this.getMinutes()>9?this.getMinutes().toString():"0"+this.getMinutes());a=a.replace(/m/g,this.getMinutes());a=a.replace(/ss|SS/,this.getSeconds()>9?this.getSeconds().toString():"0"+this.getSeconds());return a=a.replace(/s|S/g,this.getSeconds())};
var Cookie={set:function(a,c,d){var b="";d!=void 0&&(b=new Date,b.setTime(b.getTime()+864E5*parseFloat(d)),b="; expires="+b.toGMTString());return document.cookie=escape(a)+"="+escape(c||"")+b},get:function(a){return(a=document.cookie.match(RegExp("(^|;)\\s*"+escape(a)+"=([^;\\s]*)")))?unescape(a[2]):null},erase:function(){var a=Cookie.get(name)||true;Cookie.set(name,"",-1);return a},accept:function(){if(typeof navigator.cookieEnabled=="boolean")return navigator.cookieEnabled;Cookie.set("_test","1");
return Cookie.erase("_test")=="1"}};function h(a){$(a).hide()}function s(a){$(a).show()}function getTimeSpan(){return(new Date).getTime()}String.prototype.trim=function(){return this.replace(/(^[\\s]*)|([\\s]*$)/g,"")};String.prototype.lTrim=function(){return this.replace(/(^[\\s]*)/g,"")};String.prototype.rTrim=function(){return this.replace(/([\\s]*$)/g,"")};
function isNumber(a){if(!a)return false;if(!/^\d+(\.\d+)?$/.test(a))return false;try{if(parseFloat(a)!=a)return false}catch(c){return false}return true}function isTelecom(a){if(!(a.length==11||a.length==12||a.length==8))return false;var c=/^15\d{9}$/,d=/^18\d{9}$/,b=/\d{12}$/,e=/\d{8}$/;return/^13\d{9}$/.test(a)||c.test(a)||d.test(a)||b.test(a)||e.test(a)}function IsMobile(a){return a.length==0?false:a.length!=11||a.length!=12?false:!/^(((13[0-9]{1})|15)+\d{9})$/.test(a)?false:true}
function isMobile(a){if(!(a.length==11||a.length==12||a.length==8))return false;var c=/^15\d{9}$/,d=/^18\d{9}$/,b=/\d{12}$/,e=/\d{8}$/;return/^13\d{9}$/.test(a)||c.test(a)||d.test(a)||b.test(a)||e.test(a)}function isEmail(a){return a.match(/^(.+)@(.+)$/)==null?false:true};

