function j_setck(cookieName,cookieValue,expiredays,domain){if(0===cookieValue){cookieValue=0}else if(!cookieValue){cookieValue=""}cookieValue=encodeURIComponent(cookieValue);var cookieStr=cookieName+"="+cookieValue;if(expiredays&&!isNaN(expiredays)){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);cookieStr+="; path="+"/; domain="+domain+"; expires="+exdate.toUTCString()}document.cookie=cookieStr;return cookieValue}function j_getckDomain(){var host=location.hostname;var ip=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;if(ip.test(host)===true||host==="localhost")return host;var regex=/([^/]*).*/;var match=host.match(regex);if(typeof match!=="undefined"&&null!==match)host=match[1];if(typeof host!=="undefined"&&null!==host){var strAry=host.split(".");if(strAry.length==7){host=strAry[strAry.length-6]+"."+strAry[strAry.length-5]+"."+strAry[strAry.length-4]+"."+strAry[strAry.length-3]+"."+strAry[strAry.length-2]+"."+strAry[strAry.length-1];}if(strAry.length==6){host=strAry[strAry.length-5]+"."+strAry[strAry.length-4]+"."+strAry[strAry.length-3]+"."+strAry[strAry.length-2]+"."+strAry[strAry.length-1];}if(strAry.length==5){host=strAry[strAry.length-4]+"."+strAry[strAry.length-3]+"."+strAry[strAry.length-2]+"."+strAry[strAry.length-1];}if(strAry.length==4){host=strAry[strAry.length-3]+"."+strAry[strAry.length-2]+"."+strAry[strAry.length-1];}if(strAry.length==3||strAry.length==2){host=strAry[strAry.length-2]+"."+strAry[strAry.length-1];}}return"."+host;}function j_getck(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i=1){if(window.addEventListener){FixPrototypeForGecko();}}function FixPrototypeForGecko(){HTMLElement.prototype.__defineGetter__("runtimeStyle",element_prototype_get_runtimeStyle);window.constructor.prototype.__defineGetter__("event",window_prototype_get_event);Event.prototype.__defineGetter__("srcElement",event_prototype_get_srcElement);}function element_prototype_get_runtimeStyle() {return this.style;}function window_prototype_get_event() {return SearchEvent();}function event_prototype_get_srcElement() {return this.target;}function SearchEvent(){if(document.all) return window.event;func = SearchEvent.caller;while(func!=null){var arg0=func.arguments[0];if(arg0 instanceof Event) {return arg0;}func=func.caller;}return null;}