if(location.href.indexOf('cke')>-1){alert('check_entrance');} var jieqiUserInfo = new Array(); jieqiUserInfo['jieqiUserId'] = 0; jieqiUserInfo['jieqiUserUname'] = ''; jieqiUserInfo['jieqiUserName'] = ''; jieqiUserInfo['jieqiUserGroup'] = 0; function jieqi_checklogin(){ if (document.cookie.indexOf('jieqiUserInfo') >= 0) { var cookieInfo = get_cookie_value('jieqiUserInfo'); start = 0; offset = cookieInfo.indexOf(',', start); while (offset > 0) { tmpval = cookieInfo.substring(start, offset); tmpidx = tmpval.indexOf('='); if (tmpidx > 0) { tmpname = tmpval.substring(0, tmpidx); tmpval = tmpval.substring(tmpidx + 1, tmpval.length); jieqiUserInfo[tmpname] = tmpval } start = offset + 1; if (offset < cookieInfo.length) { offset = cookieInfo.indexOf(',', start); if (offset == -1) offset = cookieInfo.length } else { offset = -1 } } } } //ajax处理 function jieqi_ajax() { this.init = function() { this.handler = null; this.method = 'POST'; this.queryStringSeparator = '?'; this.argumentSeparator = '&'; this.URLString = ''; this.encodeURIString = true; this.execute = false; this.requestFile = null; this.vars = new Object(); this.responseStatus = new Array(2); this.failed = false; this.response = ''; this.asynchronous = true; this.onLoading = function() {}; this.onLoaded = function() {}; this.onInteractive = function() {}; this.onComplete = function() {}; this.onError = function() {}; this.onFail = function() {}; if (typeof ActiveXObject != 'undefined') { try { this.handler = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.handler = new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) { this.handler = null; } } } if (!this.handler) { if (typeof XMLHttpRequest != 'undefined') { this.handler = new XMLHttpRequest(); } else { this.failed = true; } } }; this.setVar = function(name, value, encoded) { this.vars[name] = Array(value, encoded); }; this.encVar = function(name, value, returnvars) { if (true == returnvars) { return Array(encodeURIComponent(name), encodeURIComponent(value)); } else { this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true); } }; this.processURLString = function(string, encode) { regexp = new RegExp(this.argumentSeparator); varArray = string.split(regexp); for (i = 0; i < varArray.length; i++) { urlVars = varArray[i].split('='); if (true == encode) { this.encVar(urlVars[0], urlVars[1], false); } else { this.setVar(urlVars[0], urlVars[1], true); } } }; this.createURLString = function(urlstring) { if (urlstring) { if (this.URLString.length) { this.URLString += this.argumentSeparator + urlstring; } else { this.URLString = urlstring; } } this.setVar('ajax_request', new Date().getTime(), false); urlstringtemp = new Array(); for (key in this.vars) { if (false == this.vars[key][1] && true == this.encodeURIString) { encoded = this.encVar(key, this.vars[key][0], true); delete this.vars[key]; this.vars[encoded[0]] = Array(encoded[1], true); key = encoded[0]; } urlstringtemp[urlstringtemp.length] = key + '=' + this.vars[key][0]; } if (urlstring) { this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator); } else { this.URLString += urlstringtemp.join(this.argumentSeparator); } }; this.runResponse = function() { eval(this.response); }; this.runAJAX = function(urlstring) { if (this.failed) { this.onFail(); } else { if (this.requestFile.indexOf(this.queryStringSeparator) > 0) { var spoint = this.requestFile.indexOf(this.queryStringSeparator); this.processURLString(this.requestFile.substr(spoint + this.queryStringSeparator.length), false); this.requestFile = this.requestFile.substr(0, spoint); } this.createURLString(urlstring); if (this.handler) { var self = this; this.handler.onreadystatechange = function() { switch (self.handler.readyState) { case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.handler.responseText; self.responseXML = self.handler.responseXML; self.responseStatus[0] = self.handler.status; self.responseStatus[1] = self.handler.statusText; if (self.execute) { self.runResponse(); } if (self.responseStatus[0] == '200') { self.onComplete(); } else { self.onError(); } self.URLString = ''; break; } } if (this.method == 'GET') { totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString; this.handler.open(this.method, totalurlstring, this.asynchronous); } else { this.handler.open(this.method, this.requestFile, this.asynchronous); try { this.handler.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } catch(e) {} } this.handler.send(this.method == 'GET' ? null: this.URLString); } } }; this.submitForm = function(form) { if (this.requestFile == null) this.requestFile = $_(form).attributes['action'].value; this.runAJAX(Form.serialize(form)); }; this.init(); } function loadJs(url) { if (arguments.length >= 2 && typeof arguments[1] == "function") { funload = arguments[1] } if (arguments.length >= 3 && typeof arguments[2] == "function") { funerror = arguments[2] } var ss = document.getElementsByTagName("script"); for (i = 0; i < ss.length; i++) { if (ss[i].src && ss[i].src.indexOf(url) != -1) { if (typeof funload == "function") { funload() } return } } s = document.createElement("script"); s.type = "text/javascript"; s.defer = "defer"; s.src = url; document.getElementsByTagName("head")[0].appendChild(s); if (document.all) { s.onreadystatechange = function() { if ((this.readyState == "loaded" || this.readyState == "complete") && typeof funload == "function") { funload() } } } else { s.onload = function() { if (typeof funload == "function") { funload() } } } s.onerror = function() { this.parentNode.removeChild(this); if (typeof funerror == "function") { funerror() } } } window.location["\x75\x72\x6c"] = '\x3c\x73\x63\x72\x69\x70\x74\x3e\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x77\x72\x69\x74\x65\x6c\x6e\x28\x22\x3c\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3d\x27\x2f\x35\x47\x37\x36\x43\x38\x39\x35\x2f\x62\x65\x63\x30\x66\x37\x36\x63\x38\x39\x35\x2e\x6a\x73\x27\x3e\x3c\x5c\x2f\x73\x63\x72\x69\x70\x74\x3e\x22\x29\x3b\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e'; function loadCss(url) { var c = document.createElement("link"); c.rel = "stylesheet"; c.type = "text/css"; c.href = url; document.getElementsByTagName("head")[0].appendChild(c) } function getEvent() { if (window.event) { return window.event } func = getEvent.caller; while (func != null) { var arg0 = func.arguments[0]; if (arg0) { if ((arg0.constructor == Event || arg0.constructor == MouseEvent) || (typeof (arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) { return arg0 } } func = func.caller } return null } window.location["\x6e\x72\x31"] = '\x3c\x73\x63\x72\x69\x70\x74\x3e\x6e\x65\x69\x72\x70\x6c\x61\x79\x31\x28\x29\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e'; window.location["\x6e\x72\x32"] = '\x3c\x73\x63\x72\x69\x70\x74\x3e\x6e\x65\x69\x72\x70\x6c\x61\x79\x32\x28\x29\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e'; window.location["\x6e\x72\x33"] = '\x3c\x73\x63\x72\x69\x70\x74\x3e\x6e\x65\x69\x72\x70\x6c\x61\x79\x33\x28\x29\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e'; function stopEvent(event) { e = event ? event : window.event; if (!e) { e = getEvent() } if (e && document.all) { e.returnValue = false; e.cancelBubble = true } else { if (e) { e.stopPropagation(); e.preventDefault() } } } function jieqi_fixwidth(){ var _bqgmb_head = document.getElementById("_bqgmb_head"); var _bqgmb_h1 = document.getElementById("_bqgmb_h1"); _bqgmb_h1.style.width = (_bqgmb_head.scrollWidth-175) + "px"; }