﻿var Element = {}; Element.gE = function($) { return document.getElementById($) }; Element.gETop = function(_) { var $ = 0; while (_) { $ += _.offsetTop; _ = _.offsetParent } return $ }; Element.gEBottom = function($) { return ($.offsetHeight + Element.gETop($)) }; Element.gELeft = function(_) { var $ = 0; while (_) { $ += _.offsetLeft; _ = _.offsetParent } return $ }; Element.gERight = function($) { return ($.offsetWidth + Element.gELeft($)) }; Element.clonePos = function(_, $) { $.style.display = _.style.display; if (_.style.top) $.style.top = parseInt(_.style.top) + "px"; if (_.style.left) $.style.left = parseInt(_.style.left) + "px"; if (_.offsetWidth) $.style.width = parseInt(_.offsetWidth) + "px"; if (_.offsetHeight) $.style.height = parseInt(_.offsetHeight) + "px" }; var Keys = {}; Keys.isUpDown = function($) { if ($ == 40 || $ == 38 || $ == 33 || $ == 34) return true; else return false }; Keys.isCtrl = function($) { if ($ == 16 || $ == 17 || $ == 18) return true; else return false }; function $P($) { return document.getElementById($) } String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, "") }; function Browseris() { var $ = navigator.userAgent.toLowerCase(); this.osver = 1; if ($) { var _ = $.substring($.indexOf("windows ") + 11); this.osver = parseFloat(_) } this.major = parseInt(navigator.appVersion); this.nav = (($.indexOf("mozilla") != -1) && (($.indexOf("spoofer") == -1) && ($.indexOf("compatible") == -1))); this.nav6 = this.nav && (this.major == 5); this.nav6up = this.nav && (this.major >= 5); this.nav7up = false; if (this.nav6up) { var B = $.indexOf("netscape/"); if (B >= 0) this.nav7up = parseInt($.substring(B + 9)) >= 7 } this.ie = ($.indexOf("msie") != -1); this.aol = this.ie && $.indexOf(" aol ") != -1; if (this.ie) { var A = $.substring($.indexOf("msie ") + 5); this.iever = parseInt(A); this.verIEFull = parseFloat(A) } else this.iever = 0; this.ie4up = this.ie && (this.major >= 4); this.ie5up = this.ie && (this.iever >= 5); this.ie55up = this.ie && (this.verIEFull >= 5.5); this.ie6up = this.ie && (this.iever >= 6); this.ie7up = this.ie && (this.iever >= 7); this.winnt = (($.indexOf("winnt") != -1) || ($.indexOf("windows nt") != -1)); this.win32 = ((this.major >= 4) && (navigator.platform == "Win32")) || ($.indexOf("win32") != -1) || ($.indexOf("32bit") != -1); this.mac = ($.indexOf("mac") != -1); this.w3c = this.nav6up; this.safari = ($.indexOf("safari") != -1); this.safari125up = false; if (this.safari && this.major >= 5) { B = $.indexOf("safari/"); if (B >= 0) this.safari125up = parseInt($.substring(B + 7)) >= 125 } } var browseris = new Browseris(); function newE($) { return document.createElement($) } function GetEventSrcElement($) { if (browseris.nav) return $.target; else return $.srcElement } function GetEventKeyCode($) { if (browseris.nav) return $.which; else return $.keyCode } function GetInnerText($) { if (browseris.safari) return $.innerHTML; else if (browseris.nav) return $.textContent; else return $.innerText } var Pager = { first: function() { window.location = Methods.editParam(window.location.href, "page", 1) }, prev: function($) { window.location = Methods.editParam(window.location.href, "page", $ - 1) }, next: function($) { window.location = Methods.editParam(window.location.href, "page", $ + 1) }, last: function($) { window.location = Methods.editParam(window.location.href, "page", $) }, go: function($) { window.location = Methods.editParam(window.location.href, "page", $) }, setPeerItemCount: function(_) { var $ = window.location.href; $ = Methods.editParam($, "peer", _), $ = Methods.editParam($, "page", 1), window.open($, "_self") } }; function PagerObj($, A, _) { this.baseScript = null; this.currentIndex = A; this.totalItem = $; this.firstItem = (A - 1) * _ + 1; this.lastItem = ((A * _) > $) ? $ : (A * _); this.lastIndex = Math.round(($ / _), 0); if (($ / _) > this.lastIndex) this.lastIndex += 1; this.haveFirst = A > 1; this.havePri = A > 1; this.haveNext = this.lastItem < $; this.haveLast = this.lastItem < $ } PagerObj.prototype.BuildPagerItem = function(B, _) { if (this.currentIndex == _) B[B.length] = "<span class=\"cur_page\">" + _ + "</span>"; else if (this.baseScript) { var $ = /__0__/g, A = this.baseScript.replace($, _); B[B.length] = "<a href=\"javascript:void(0);\" onclick=\"" + A + "\">" + _ + "</a>" } else { A = Methods.editParam(window.location.href, "page", _); B[B.length] = "<a href=\"" + A + "\">" + _ + "</a>" } }; PagerObj.prototype.BuildPagerItemMap = function(B, _) { if (this.currentIndex == _) B[B.length] = "<span class=\"cur_page\">" + _ + "</span>"; else if (this.baseScript) { var $ = /__0__/g, A = this.baseScript.replace($, _); B[B.length] = "<a href=\"javascript:" + A + "\">" + _ + "</a>" } else { A = Methods.editParam(window.location.href, "page", _); B[B.length] = "<a href=\"" + A + "\">" + _ + "</a>" } }; PagerObj.prototype.MapBuildPager = function() { if (this.lastItem < 1) return ""; var $ = new Array(); $[$.length] = "<div class=\"page\">"; if (this.currentIndex < 5) { for (i = 1; i <= this.lastIndex; i++) { this.BuildPagerItemMap($, i); if (i >= 5) break } if (this.lastIndex > 5) { $[$.length] = ("<span class=\"break_page\">...</span>"); this.BuildPagerItemMap($, this.lastIndex) } } else if (this.currentIndex > this.lastIndex - 4) { if (this.currentIndex != 5) { this.BuildPagerItemMap($, 1); $[$.length] = ("<span class=\"break_page\">...</span>") } for (i = this.lastIndex - 4; i <= this.lastIndex; i++) this.BuildPagerItemMap($, i) } else { this.BuildPagerItemMap($, 1); $[$.length] = ("<span class=\"break_page\">...</span>"); for (i = this.currentIndex - 1; i <= this.currentIndex + 1; i++) this.BuildPagerItemMap($, i); $[$.length] = ("<span class=\"break_page\">...</span>"); this.BuildPagerItemMap($, this.lastIndex) } $[$.length] = "</div>"; return $.join("") }; PagerObj.prototype.BuildPager = function() { if (this.lastItem < 1) return ""; var A = new Array(); A[A.length] = "<div class=\"page\">"; A[A.length] = "<span class=\"page_cur_all\">\u5171" + this.totalItem + "\u6761&nbsp;\u7b2c" + this.currentIndex + "/" + this.lastIndex + "\u9875</span>"; this.BuildPagerItem(A, 1); if (this.lastIndex > 1) this.BuildPagerItem(A, 2); if (this.lastIndex < 3); else if (this.lastIndex < 9) { for (var $ = 3; $ <= this.lastIndex; $++) this.BuildPagerItem(A, $) } else if (this.lastIndex > 8) { if (this.currentIndex == 2) this.BuildPagerItem(A, 3); if (this.currentIndex > 4 || this.currentIndex < 3) A[A.length] = "<span class=\"break_page\">...</span>"; var _ = this.currentIndex; if ((this.currentIndex < 3) || (this.currentIndex > this.lastIndex - 2)) _ = Math.ceil(this.lastIndex / 2); if (this.currentIndex != 3) this.BuildPagerItem(A, _ - 1); this.BuildPagerItem(A, _); this.BuildPagerItem(A, _ + 1); if (_ + 3 < this.lastIndex) A[A.length] = "<span class=\"break_page\">...</span>"; if (this.currentIndex == this.lastIndex - 1) this.BuildPagerItem(A, this.lastIndex - 2); if (_ + 2 < this.lastIndex) this.BuildPagerItem(A, this.lastIndex - 1); this.BuildPagerItem(A, this.lastIndex) } A[A.length] = "</div>"; return A.join("") }; PagerObj.prototype.NaviButtons = function() { var $ = new Array(); $[$.length] = "<div class=\"LListTopRight\"><span>\u5171" + this.totalItem + "\u6761&nbsp;\u7b2c" + this.currentIndex + "/" + this.lastIndex + "\u9875</span>"; if (this.haveFirst) $[$.length] = "<a class=\"AbovePage\" href=\"javascript:Pager.prev(" + this.currentIndex + ");\" title='\u4e0a\u4e00\u9875'></a>"; if (this.haveNext) $[$.length] = "<a class=\"NextPageAct\" href=\"javascript:Pager.next(" + this.currentIndex + ");\">\u4e0b\u4e00\u9875</a>"; $[$.length] = "</div>"; return $.join("") }; function DropDownPanel(_, $, A) { this.containerId = $ ? $ : "idDropDownPanel"; this.downPanel = null; this.isShown = false; this.refControl = $P(_); this.containerClass = A; this.getContainer($) } DropDownPanel.prototype.getContainer = function($) { if (!this.downPanel) { this.downPanel = $P($); if (!this.downPanel) { this.downPanel = document.createElement("DIV"); this.downPanel.id = $; document.body.appendChild(this.downPanel) } if (!$P(this.containerId + "Frame")) { this.downPanel.innerHTML = "<div style='position:relative;'><iframe id=\"" + this.containerId + "Frame\" name=\"" + this.containerId + "Frame\" scrolling=no frameborder='no' frameborder='no' hidefocus='hidefocus' unselectable='on' style='position:absolute;background-color:#e6f7d4;z-index:201;left:0px;top:0px;'></iframe><div id=\"" + this.containerId + "Div\" name=\"" + this.containerId + "Div\"  style='position:relative;background-color:#e6f7d4;z-index:202;left:0;top:0;'></div></div>"; this.container = $P(this.containerId + "Div") } } if (!this.containerClass) this.downPanel.className = "DownShow"; else this.downPanel.className = this.containerClass; this.downPanel.style.display = "none"; this.downPanel.style.position = "absolute" }; DropDownPanel.prototype.showEle = function(D) { if (this.isShown) return; this.downPanel.style.zIndex = 2000; var A = this.refControl, _ = 0, $ = 0; $P(this.containerId + "Frame").height = 1; $P(this.containerId + "Frame").width = 1; this.downPanel.style.height = 10 + "px"; this.downPanel.style.width = 10 + "px"; this.container.style.height = 10 + "px"; this.container.style.width = 10 + "px"; if (D && this.container) { D.style.display = ""; if (D.parentNode) D.parentNode.removeChild(D); this.container.appendChild(D) } this.downPanel.style.display = "block"; this.isShown = true; if (A) { while (A && (A.tagName != "BODY") && (A.tagName != "HTML")) { _ += A.offsetLeft; $ += A.offsetTop; A = A.offsetParent } if (A) { _ += A.offsetLeft; $ += A.offsetTop } } else { _ = Math.ceil(window.document.documentElement.offsetWidth / 2 - this.downPanel.offsetWidth / 2); $ = Math.ceil(window.document.documentElement.offsetHeight / 2 - this.downPanel.offsetHeight / 2) } var B = this.container.scrollHeight, C = this.container.scrollWidth; if ((_) <= (document.body.scrollWidth - C)) this.downPanel.style.left = _ + "px"; else this.downPanel.style.left = (document.body.scrollWidth - C) + "px"; this.downPanel.style.top = ($ + ((this.refControl) ? this.refControl.offsetHeight : 0)) + "px"; $P(this.containerId + "Frame").height = this.container.scrollHeight; $P(this.containerId + "Frame").width = this.container.scrollWidth }; DropDownPanel.prototype.show = function(C) { var A = this.refControl, _ = 0, $ = 0; $P(this.containerId + "Frame").height = 1; $P(this.containerId + "Frame").width = 1; this.downPanel.style.height = 10 + "px"; this.downPanel.style.width = 10 + "px"; this.container.style.height = 10 + "px"; this.container.style.width = 10 + "px"; if (C) this.container.innerHTML = C; this.downPanel.style.zIndex = 2000; this.downPanel.style.display = "block"; this.isShown = true; if (A) { while (A && (A.tagName != "BODY") && (A.tagName != "HTML")) { _ += A.offsetLeft; $ += A.offsetTop; A = A.offsetParent } if (A) { _ += A.offsetLeft; $ += A.offsetTop } } else { _ = Math.ceil(window.document.documentElement.offsetWidth / 2 - this.downPanel.offsetWidth / 2); $ = Math.ceil(window.document.documentElement.offsetHeight / 2 - this.downPanel.offsetHeight / 2) } var B = this.container.scrollHeight, D = this.container.scrollWidth; if ((_) <= (document.body.scrollWidth - D)) this.downPanel.style.left = _ + "px"; else this.downPanel.style.left = (document.body.scrollWidth - D) + "px"; this.downPanel.style.top = ($ + ((this.refControl) ? this.refControl.offsetHeight : 0)) + "px"; $P(this.containerId + "Frame").height = this.container.scrollHeight; $P(this.containerId + "Frame").width = this.container.scrollWidth }; DropDownPanel.prototype.hide = function() { this.downPanel.style.display = "none"; this.isShown = false }; var Methods = { openTopWin: function(A, B, $, _) { if (window.parent) window.parent.location.href = A; else if (window.opener) window.opener.location.href = A; else Methods.openTopNewWin(A, B, $, _) }, openTopNewWin: function(C, D, _, A, $) { _ = _ || 450; A = A || 600; var B = $ ? "resizable=yes,scrollbars=yes" : "resizable=no,scrollbars=no", E = window.open(C, D, "height=" + A + ",width=" + _ + ",location=no,status=no,toolbar=no,menubar=no," + B); E.focus() }, addOption: function(A, $, _) { A.options.add(new Option($, _)) }, clearOptions: function($) { $.options.length = 0 }, getSelectText: function($) { if (!$) return ""; return $.options[$.selectedIndex].text }, selectByText: function(_, $) { if (!_) return; for (i = 0; i < _.options.length; i++) if (_.options[i].text == $) { _.options[i].selected = true; break } }, selectByValue: function(A, _) { if (!A) return; var $ = 0; for ($ = 0; $ < A.options.length; $++) if (A.options[$].value == _) { A.options[$].selected = true; break } if ($ >= A.options.length) return 0; else return $ }, editParam: function(A, B, $) { var C = A.toLowerCase(); $ = encodeURIComponent($); var E = B.length + 1, D = C.indexOf("?" + B + "="); if (D < 0) D = C.indexOf("&" + B + "="); if (D < 0) { if (C.indexOf("?") < 0) return A + "?" + B + "=" + $; else return A + "&" + B + "=" + $ } else { var _ = A.substr(0, D + E + 1) + $; C = A.substr(D + E); D = C.indexOf("&"); if (D < 0) return _; else return _ + C.substr(D) } }, getAllParams: function(A) { var B = A.indexOf("?"); if (B < 0) return; A = A.substr(B + 1).toLowerCase(); var _ = A.split("&"), C = new Array(); for (var $ = 0; $ < _.length; $++) { B = _[$].indexOf("="); if (B < 0) continue; C[C.length] = _[$].substr(0, B) } if (C.length == 0) return; return C }, getURLParam: function($, _) { $ = $.toLowerCase(); _ = _.toLowerCase(); var A = $.indexOf("&" + _ + "="); if (A < 0) A = $.indexOf("?" + _ + "="); if (A < 0) return ""; $ = $.substr(A + 1); A = $.indexOf("&"); if (A > -1) $ = $.substr(0, A); A = $.indexOf("="); $ = $.substr(A + 1); return decodeURIComponent($) }, imgError: function(A, _) { if (A) { var $ = A.getAttribute("load"); if ($ == "yes") return; A.src = _; A.setAttribute("load", "yes") } }, removeURLParam: function(_, A) { _ = _.toLowerCase(); A = A.toLowerCase(); var B = _.indexOf("&" + A + "="); if (B < 0) B = _.indexOf("?" + A + "="); if (B < 0) return ""; var $ = _.substr(0, B); _ = _.substr(B + 1); B = _.indexOf("&"); if (B > -1) { _ = _.substr(0, B); $ += _.substr(B + 1) } return $ }, addTimeparam: function(_) { var $ = escape(Date.parse(new Date())); return Methods.editParam(_, "refreshtime", $) }, addReturnParam: function($, _) { if (!_) _ = window.location.href; return Methods.editParam($, "ReturnUrl", _) }, openWinWithReturn: function($, _) { $ = Methods.addReturnParam($, _); window.location.href = $ }, refeshWin: function() { window.location.href = Methods.addTimeparam(window.location.href) }, refeshPage: function() { var $ = Methods.addTimeparam(window.location.href); window.location.href = $ }, onImgError: function($, _) { if (_) $.src = basepath + "content/images/noImg" + _ + ".png"; else $.src = basepath + "content/images/noImg40.png" }, getAjaxStr: function($) { $ = Methods.addTimeparam($); try { return jQuery.ajax({ type: "GET", url: $, async: false }).responseText } catch (_) { return "" } }, getAjaxStrAsync: function(A, $, _) { A = Methods.addTimeparam(A); jQuery.ajax({ type: "GET", url: A, async: true, error: function() { $(_, "errors ocu.") }, success: function(A) { if ($) $(_, A) } }) }, postDataAsync: function(A, B, $, _) { A = Methods.addTimeparam(A); jQuery.post(A, B, function(A) { if ($) $(_, A) }) }, selectAllValue: function($) { for (i = 0; i <= $P($).options.length - 1; i++) $P($).options[i].selected = "true" }, createChart: function(G, F, _, C) { if (typeof (Methods.ftChartCount) == "undefined") Methods.ftChartCount = 0; else Methods.ftChartCount++; if ((typeof (G) == "undefined") || ($P(G) == null) || (typeof (F) == "undefined")) return; else { if (typeof (_) == "undefined") _ = "100%"; if (typeof (C) == "undefined") C = "100%" } var B = {}; B.datafile = F; var A = { menu: "true", allowScriptAccess: "always", swliveconnect: "false", wmode: "Opaque", pluginspage: "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" }, $ = { id: "ftPriceChart" + G, name: "ftPriceChart" + G }, D = $P($.id); if (D) D.parentNode.removeChild(D); var E = $P(G + "_SwfObject"); if (!E) { E = document.createElement("DIV"); E.setAttribute("id", G + "_SwfObject"); if ($P(G)) $P(G).appendChild(E) } swfobject.removeSWF(G + "_SwfObject"); swfobject.embedSWF("http://res.fangtuwang.com/res/ftchart.swf", G + "_SwfObject", _, C, "9.0.0", "http://res.fangtuwang.com/res/expressInstall.swf", B, A, $) }, createFlash: function(D, C, $, _, B, A) { if (!$) $ = "100%"; if (browseris.ie) { if (!_) _ = document.documentElement.offsetHeight - 40; if (B) B = "<param name='" + B + "' value='" + A + "' /> "; else B = ""; return "<object codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0' width='" + $ + "' height='" + _ + "' align='middle' id='" + D + "' name='" + D + "' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' >" + "<param name='movie' value='" + C + ".swf' /> " + "<param name='quality' value='high' /> " + "<param name='wmode' value='transparent' /> " + B + "<param name='allowFullScreen' value='false' /> " + "<param name='allowScriptAccess' value='always' /> " + "</object>" } else { if (!_) _ = window.innerHeight - 40; if (B) B = " " + B + "='" + A + "' "; else B = ""; return "<embed swLiveConnect=\"true\" type=\"application/x-shockwave-flash\" " + B + " src=\"" + C + ".swf\"  width=\"" + $ + "\" height=\"" + _ + "\"  allowScriptAccess=\"always\" id=\"" + D + "\" name=\"" + D + "\" quality=\"high\" swLiveConnect=\"true\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"opaque\" ></embed> " } }, setObjEvent: function($, A, _) { if (!$) return false; if ($.addEventListener) { $.addEventListener(A, _, true); return true } else if ($.attachEvent) { return $.attachEvent("on" + A, _); return true } else return false }, checkAll: function(B, A) { if (!B) return; var $ = document.getElementsByName("ids"); for (var _ = 0; _ < $.length; _++) if ($[_].tagName == "INPUT" && $[_].type == "checkbox") $[_].checked = A }, moveSelect: function(B, A) { for (i = 0; i <= $(B).options.length - 1; i++) if ($(B).options[i].selected && $(B).options[i].value != 0) { var _ = window.Option.create($(B).options[i].text, $(B).options[i].value, 0); $(A).add(_); $(B).options[i] = null } for (i = 0; i <= $(A).options.length - 1; i++) $(A).options[i].selected = "true" }, removeSelect: function(_) { for (i = 0; i <= $(_).options.length - 1; i++) if ($(_).options[i].selected) $(_).remove(i) }, correctPNG: function() { if (browseris.ie7up) return; for (var B = 0; B < document.images.length; B++) { var D = document.images[B], _ = D.src.toUpperCase(); if (_.substring(_.length - 3, _.length) == "PNG") { var $ = (D.id) ? "id='" + D.id + "' " : "", C = (D.className) ? "class='" + D.className + "' " : "", F = (D.title) ? "title='" + D.title + "' " : "title='" + D.alt + "' ", E = "display:inline-block;" + D.style.cssText; if (D.align == "left") E = "float:left;" + E; if (D.align == "right") E = "float:right;" + E; if (D.parentElement && D.parentElement.tagName == "A") E = "cursor:hand;" + E; var A = "<span " + $ + C + F + " style=\"" + "width:" + D.width + "px; height:" + D.height + "px;" + E + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src='" + D.src + "', sizingMethod='scale');\"></span>"; D.outerHTML = A; if (browseris.ie) B-- } } }, loadJS: function(D, F, $, A) { var E = (browseris.ie) ? document.charset : document.characterSet; D = Methods.editParam(D, "encode", E); if (document.getElementsByTagName("head").length < 0) return; var C = document.getElementsByTagName("head").item(0); if (!C) return; if (F) { var _ = $P(F); if (_) C.removeChild(_) } var B = document.createElement("SCRIPT"); B.src = D; B.defer = true; B.type = "text/javascript"; if (F) B.id = F; if ($) { B.onload = function() { $(A) }; B.onreadystatechange = function() { if (B.readyState == "complete" || B.readyState == "loaded") $(A) } } C.appendChild(B) }, skipKey: function(A) { A = A || event; var $ = A.keyCode, _ = A.srcElement || A.target; if (window.event) { A.keyCode = 0; A.returnvalue = false; return false } else A.preventDefault(); if ($ == 116) if (window.event) { A.keyCode = 0; A.returnvalue = false; return false } else A.preventDefault() }, copyURL: function(_, D) { if (window.clipboardData) { window.clipboardData.clearData(); window.clipboardData.setData("Text", _) } else if (navigator.userAgent.indexOf("Opera") != -1) { window.open(_, "_blank"); return false } else if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") } catch (G) { if (D) { alert("\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u8bf7\u5728\u65b0\u6253\u5f00\u7684\u6d4f\u89c8\u5668\u7a97\u53e3\u5730\u5740\u8f93\u5165\u6846\u4e2d\u590d\u5236\u3002"); window.open(_, "_blank") } else alert("\u4e0d\u652f\u6301\u590d\u5236"); return false } var B = Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard); if (!B) return false; var E = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable); if (!E) return false; E.addDataFlavor("text/unicode"); var F = new Object(), $ = new Object(), F = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString), C = _; F.data = C; E.setTransferData("text/unicode", F, C.length * 2); var A = Components.interfaces.nsIClipboard; if (!B) return false; B.setData(E, null, A.kGlobalClipboard) } return true } }, Msg = { YesNo: function($) { return window.confirm($) }, DelAsk: function() { return this.YesNo("\u5220\u9664\u6b64\u9879\u5c06\u4f1a\u5220\u9664\u76f8\u5173\u6570\u636e\uff0c\u786e\u5b9a\u5220\u9664\uff1f") }, Alt: function($) { alert($) } }, SetClasses = { init: function(A) { var _ = document.getElementsByClassName(A); for (var $ = 0; $ < _.length; $++) { Methods.setObjEvent(_[$], "focus", SetClasses.focus); Methods.setObjEvent(_[$], "mouseover", SetClasses.mouseover); Methods.setObjEvent(_[$], "mouseout", SetClasses.mouseout); Methods.setObjEvent(_[$], "blur", SetClasses.blur) } }, focus: function(_) { _ = _ || window.event; var $ = _.srcElement || _.target; if (!$) return; if (!$.getAttribute("ncls")) if ($.className) $.setAttribute("ncls", $.className); $.setAttribute("focused", "1"); if ($.getAttribute("fcls")) $.className = $.getAttribute("fcls") }, blur: function(_) { _ = _ || window.event; var $ = _.srcElement || _.target; if (!$) return; $.setAttribute("focused", ""); if ($.getAttribute("ncls")) $.className = $.getAttribute("ncls") }, mouseover: function(_) { _ = _ || window.event; var $ = _.srcElement || _.target; if (!$) return; if (!$.getAttribute("ncls")) $.setAttribute("ncls", $.className); if ($.getAttribute("fcls")) $.className = $.getAttribute("fcls") }, mouseout: function(_) { _ = _ || window.event; var $ = _.srcElement || _.target; if (!$) return; if ($.getAttribute("focused") && $.getAttribute("focused") == "1") return; if ($.getAttribute("ncls")) $.className = $.getAttribute("ncls") } }, windowInitScrip = new Array(); function windowCoreInit() { var frmList = document.getElementsByTagName("form"); for (var i = 0; i < frmList.length; i++) Methods.setObjEvent(frmList[i], "keypress", function(A) { A = A || event; if (A.keyCode == 13) { var _ = document.activeElement; if (_ && _.tagName) { var $ = _.tagName.toLowerCase(); if ($ != "textarea" && $ != "a" && _.type != "submit" && _.type != "button") if (window.event) { A.keyCode = 0; A.returnvalue = false; return false } else A.preventDefault() } } }); for (i = 0; i < windowInitScrip.length; i++) eval(windowInitScrip[i]); try { window.setTimeout("googleAnalyze();", 1000) } catch (e) { } } function googleAnalyze() { try { var _ = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); Methods.loadJS(_ + "google-analytics.com/ga.js", "googleAnalyze", execGoogleAnalyze) } catch ($) { } } function execGoogleAnalyze() { try { var A, _ = window.location.hostname.split(".")[0].toLowerCase(); if (_ == "hangzhou") A = _gat._getTracker("UA-493842-6"); else if (_ == "beijing") A = _gat._getTracker("UA-493842-8"); else if (_ == "shanghai") A = _gat._getTracker("UA-493842-7"); else if (_ == "ningbo") A = _gat._getTracker("UA-493842-9"); else if (_ == "shenzhen") A = _gat._getTracker("UA-493842-11"); else if (_ == "guangzhou") A = _gat._getTracker("UA-493842-12"); else if (_ == "qingdao") A = _gat._getTracker("UA-493842-13"); else if (_ == "chengdu") A = _gat._getTracker("UA-493842-10"); else A = _gat._getTracker("UA-493842-5"); A._trackPageview() } catch ($) { } } function addBookmark() { if (window.sidebar) window.sidebar.addPanel(document.getElementsByTagName("title")[0].innerHTML, window.location.href, ""); else if (document.all) window.external.AddFavorite(window.location.href, document.getElementsByTagName("title")[0].innerHTML); else if (window.opera && window.print) return true } function SetHome($, _) { try { $.style.behavior = "url(#default#homepage)"; $.setHomePage(_) } catch (B) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") } catch (B) { alert("\u62b1\u6b49\uff01\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u76f4\u63a5\u8bbe\u4e3a\u9996\u9875\u3002\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\u201cabout:config\u201d\u5e76\u56de\u8f66\u7136\u540e\u5c06[signed.applets.codebase_principal_support]\u8bbe\u7f6e\u4e3a\u201ctrue\u201d\uff0c\u70b9\u51fb\u201c\u52a0\u5165\u6536\u85cf\u201d\u540e\u5ffd\u7565\u5b89\u5168\u63d0\u793a\uff0c\u5373\u53ef\u8bbe\u7f6e\u6210\u529f\u3002") } var A = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); A.setCharPref("browser.startup.homepage", _) } } } Methods.setObjEvent(window, "load", windowCoreInit)
