﻿/*
*
By Auntion

QQ:82874972

Blog:Auntion@blogbus.com

Email:Auntion@Gmail.com

请勿删除此部分注释.谢谢!

ver date-2007-02-01
*
*/
var isIe=/msie/i.test(navigator.userAgent),TAGDom={fromId:function(A){return document.getElementById(A)},fromName:function(A){return document.getElementById(A)},fromClass:function(G){var D=document.getElementsByTagName("*")||document.all,A=null,C=null,E=[];for(var B=0;B<D.length;B++){A=D[B];C=A.className.split(" ");for(var F=0;F<C.length;F++)if(C[F]==G)E.push(A)}return E}};function externalStyle(A,B){this.setReturn;if(A.currentStyle)this.setReturn=A.currentStyle[B];else if(window.getComputedStyle)this.setReturn=getComputedStyle(A,"").getPropertyValue(B);return this.setReturn}String.prototype.toInt=function(){return parseInt(this.replace(/[a-zA-Z]+/,""))};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.isEmpty=function(){this.trim();return this.length==0};Function.prototype.bind=function(B){var A=this;return function(){return A.apply(B,arguments)}};function CookieClass(){ this.expires = 0 ; this.path = ""; this.domain = ""; this.secure = false; this.setCookie = function(name,value){ var str = name+"="+escape(value); if (this.expires>0){ var date=new Date(); var ms=this.expires * 60 * 1000; date.setTime(date.getTime()+ms); str+="; expires="+date.toGMTString() } ;if(this.path!="")str+="; path="+this.path; if(this.domain!="")str+="; domain="+this.domain; if(this.secure!="")str+="; true"; document.cookie=str; }; this.getCookie=function(name){ var cookieArray=document.cookie.split("; ");var cookie=new Object(); for(var i=0;i<cookieArray.length;i++){ var arr=cookieArray[i].split("=");if(arr[0]==name)return unescape(arr[1]);} ;return ""; }; this.deleteCookie=function(name){ var date=new Date(); var ms= 1 * 1000; date.setTime(date.getTime() - ms); var str = name+"=no; expires=" + date.toGMTString(); document.cookie=str; }; this.showCookie=function(){ alert(unescape(document.cookie)); } ;} ;