﻿// JScript 文件

// JavaScript Document
// 返回XML文档
var __bIsCallBack = true;
var __bIsIE = false;
var __nDx = 0;
var __nDy = 0;

var __oWaitMessage = null;
var __nWaitTimeID  = 0;

var __xmlHttp       = null;
var __fnCallBack    = null;
var __fnArray       = new Array();
var __nWaitCallBack = 0;
var stroldFnName = null;
var __oBodyObjToPopup = null;


function __fnGetRequestString(YPfV1)
{
    if(typeof(YPfV1) == "string" && YPfV1["length"] > 0)
    {
        YPfV1 = YPfV1["toLowerCase"]();
        var RgIqasK2 = window["location"]["href"]["toLowerCase"]();
        var FZNUvaWK3 = RgIqasK2["indexOf"]("?");
        if(FZNUvaWK3 > -1)
        {
            RgIqasK2 = RgIqasK2["substring"](FZNUvaWK3 + 1);
        }
        var ZR4 = RgIqasK2["split"]("&");
        var dE5 = YPfV1["length"] + 1;
        for(var skeR6=0; skeR6<ZR4["length"]; skeR6++)
        {
            if((ZR4[skeR6]["length"] > dE5) && ZR4[skeR6]["substring"](0, dE5) == (YPfV1 + "="))
            {
                return window["unescape"](ZR4[skeR6]["substring"](dE5));
            }
        }
        return "";
    }
    else
    {
        return "";
    }
}

function ImportScript(OneNal7, rXZn8, oMQ9)
{
  if(rXZn8)
  {
    window["document"]["write"]('<script type="text/javascript" src="' + encodeURI(OneNal7) + '"></script>');
  }
  else {
    var woocD10 = window["document"]["getElementsByTagName"]("head")["appendChild"](window["document"]["createElement"]("script"));
    woocD10["type"] = "text/javascript";
    woocD10["src"] = OneNal7;
    woocD10["onload"] = oMQ9;
  }
}

function NewXmlDoc()
{
	var Mfff$$11 = null;
	if(window["ActiveXObject"])
	{
		//MSXML2.DOMDocument.3.0    Msxml2.DOMDocument
		Mfff$$11 = new ActiveXObject("MSXML2.DOMDocument.3.0");
		if(Mfff$$11 != null)
		{
			Mfff$$11["async"] = false;
			Mfff$$11["preserveWhiteSpace"] = true;
		}
	}
	else if(window["document"]["implementation"] && window["document"]["implementation"]["createDocument"])
	{
		Mfff$$11 = window["document"]["implementation"]["createDocument"]("", "", null);
	}
	Mfff$$11["async"] = false;
	return Mfff$$11;
}


if(window["ActiveXObject"])
{
    __bIsIE = true;
}

//得到所有节点
function GetNodesByPath(DabZ12, oXkc$APz13)
{
    var c14 = GetXmlDocByXml(DabZ12);
    if(c14["hasChildNodes"] && c14["documentElement"]["hasChildNodes"])
    {
        return __fnGetXmlList(c14["documentElement"], oXkc$APz13);
    }
    else
    {
        return null;
    }
}

//得到XML加载strXML,返回 xml文档
function GetXmlDocByXml(nsfLXic15)
{
    var Qu16 = NewXmlDoc();
    if(typeof(nsfLXic15) == "string" && nsfLXic15["length"] > 0)
    {
        if(__bIsIE)
        {
            Qu16["loadXML"](nsfLXic15);
        }
        else
        {
            var mWqAid17 = new DOMParser();
			Qu16 = mWqAid17["parseFromString"](nsfLXic15, "text/xml");
			//alert(xmlDoc.documentElement.childNodes.length);
        }
    }
    return Qu16;
}

//得到节点下所有附合节点名的节点
function __fnGetXmlList(uJulTFk18, Sr$zX$19)
{
    if(uJulTFk18 != null && uJulTFk18["hasChildNodes"])
	{
	    var azJYvVTOi20 = null;
	    var jCL21  = 0;
	    if(__bIsIE)
	    {
		    azJYvVTOi20 = uJulTFk18["selectNodes"](Sr$zX$19);
	    }
	    else
	    {
    	    
	        azJYvVTOi20 = new window["Array"](uJulTFk18["childNodes"]["length"]);
	        for(var BA22=0; BA22<uJulTFk18["childNodes"]["length"]; BA22++)
	        {
		        if(uJulTFk18["childNodes"][BA22]["nodeName"] == Sr$zX$19)
		        {
			        azJYvVTOi20[jCL21] = uJulTFk18["childNodes"][BA22];
			        jCL21++;
		        }
	        }
	        azJYvVTOi20["length"] = jCL21;
	    }
	    return azJYvVTOi20;
	}
	else
	{
	    return null;
	}
}


//显示等待信息 处理大数据时使用
//bState 为true时 显示 为false 为隐藏
function __fnWaitMessage(Y23)
{
	if(Y23)
	{
		__oWaitMessage = GetMessageBox();
		if(__oWaitMessage != null)
		{
			__oWaitMessage["ShowMessageBox"]("请您稍候", "<font color='#663399' id='__oWaitFont'>正在处理中...</font>", "window.clearInterval(__nWaitTimeID);");
			__nWaitTimeID  = window["setInterval"](__fnChangeWaitMessage, 1000);
		}
	}
	else
	{
		if(__oWaitMessage != null)
		{
			__oWaitMessage["fnClose"]();
			__oWaitMessage = null;
			window["clearInterval"](__nWaitTimeID);
			__nWaitTimeID  = 0;
		}
	}
}

function __fnChangeWaitMessage()
{
	if(_getObj("__oWaitFont") != null)
	{
		var HUMS24 = _getObj("__oWaitFont")["innerHTML"];
		if(HUMS24["length"] < 12)
		{
			_getObj("__oWaitFont")["innerHTML"] = HUMS24 + ".";
		}
		else
		{
			_getObj("__oWaitFont")["innerHTML"] = "正在处理中...";
		}
	}
}


//替换表单特殊字符
function fnReplaceBadChar(e25)
{
	var uba26 = _getObj(e25);
	if(uba26 != null)
	{
		var HdsdKOrG27 = uba26["elements"]["length"];
		for(var hYMlq28=0; hYMlq28<HdsdKOrG27; hYMlq28++)
		{
			if(uba26["elements"][hYMlq28] != null  && typeof(uba26["elements"][hYMlq28]["type"]) != 'undefined' && uba26["elements"][hYMlq28]["type"]["toLowerCase"]()["indexOf"]("text") > -1)
			{
				uba26["elements"][hYMlq28]["value"] = uba26["elements"][hYMlq28]["value"]["replace"](/['<>`\"]/g, "");
				uba26["elements"][hYMlq28]["value"] = uba26["elements"][hYMlq28]["value"]["replace"](/^\s{0,}|\s{0,}$/g, "");
				uba26["elements"][hYMlq28]["value"] = uba26["elements"][hYMlq28]["value"]["replace"](/(我靠|我日|我操|操你|你妈|fuck|FUCK|bitch|他妈的|性爱|法\s{0,}轮\s{0,}功|法\s{0,}轮|falundafa|falun|江泽民|操你妈|三级片|普光网络|月赚千元)/g, "");
			}
		}
	}
}

//替换表单特殊字符
function fnClearFormValue(rejQQFFJS29)
{
	var SeFGgyrzS30 = _getObj(rejQQFFJS29);
	if(SeFGgyrzS30 != null)
	{
		var yZIImF31 = SeFGgyrzS30["elements"]["length"];
		for(var w_souImv32=0; w_souImv32<yZIImF31; w_souImv32++)
		{
			if(SeFGgyrzS30["elements"][w_souImv32]["getAttribute"]("type")["toLowerCase"]() != "submit" && SeFGgyrzS30["elements"][w_souImv32]["getAttribute"]("type")["toLowerCase"]() != "button")
			{
				SeFGgyrzS30["elements"][w_souImv32]["value"] = "";
			}
		}
	}
}


// 打开窗口
function OpenModalDialog(YWcjOhccp33, X34, rFWgdvcg35, GK36, EmJegbq37, kvnzQb38)
{
    if(typeof(strPath) == "string")
    {
        YWcjOhccp33 
    }
	var slY39           = new window["Array"]();
	slY39["InParam"]    = EmJegbq37;
	slY39["DialogURL"]  = YWcjOhccp33;
	slY39["WindowHand"] = window;
	slY39["FnCallBack"] = kvnzQb38;
	rFWgdvcg35                   = window["parseInt"](rFWgdvcg35)  + 20;
	if(__bIsIE)
	{
	    GK36 = window["parseInt"](GK36) + 20;
	}
	var bTSo40 = null;
	if(__bIsIE)
	{
	    bTSo40 = 'dialogWidth:'+ rFWgdvcg35["toString"]() +'px; dialogHeight:'+ GK36["toString"]() +'px; scroll:no; status:no; help:no; resizable:no; center:yes';
	    return showModalDialog("openWindowEx.aspx?title="+window["escape"](X34), slY39, bTSo40);
	}
	else
	{
	    bTSo40 = 'width='+ rFWgdvcg35["toString"]() +', height='+ GK36["toString"]() +', scroll=no, status=no, resizable=no, center=yes,modal=yes';
	    window["open"](YWcjOhccp33, 'newWin', bTSo40);
	}
}

function OpenModalLess(HNX41, zSHI42, O43, D_hT44, cKHI45)
{
	var zgyrcuf46           = new window["Array"]();
	zgyrcuf46["InParam"]    = cKHI45;
	zgyrcuf46["DialogURL"]  = HNX41;
	zgyrcuf46["WindowHand"] = window;
	O43                   = window["parseInt"](O43)  + 20;
	D_hT44                  = window["parseInt"](D_hT44) + 40;
	var aLHwAYez47            = 'dialogWidth:'+ O43["toString"]() +'px; dialogHeight:'+ D_hT44["toString"]() +'px; scroll:no; status:no; help:no; resizable:no; center:yes';
	showModelessDialog(HNX41, zgyrcuf46, aLHwAYez47);
}

function fnGetEvent(q48)
{
    var BQ49 = null;
    if(q48 == null)
    {
        BQ49 = __bIsIE ? window["event"] : fnSearchEvent();
    }
    else
    {
        BQ49 = q48;
    }
    return BQ49;
}

function Cookie()
{
	this["SetValue"]=function(IZGYIGMj50, bqVYV51, pQeKuR52, swsi53, TIGiYJcp54, CjGqWmRY55)
	{
		var GfFPs56 = null;
		var GAqlPsYB57= IZGYIGMj50 + "=" + window["escape"](bqVYV51);
		if(typeof(pQeKuR52) != "undefined")
		{
		    var l58=new window["Date"]();
		    if(typeof(swsi53) == "number")
		    {
		        switch(swsi53)
		        {
		            case 0:
		                l58["setSeconds"](l58["getSeconds"]() + pQeKuR52);
		                break;
		            case 1:
		                l58["setMinutes"](l58["getMinutes"]() + pQeKuR52);
		                break;
		            case 2:
		                l58["setHours"](l58["getHours"]() + pQeKuR52);
		                break;
		            case 3:
		                l58["setMonth"](l58["getMonth"]() + pQeKuR52);
		                break;
		            default:
		                l58["setFullYear"](l58["getFullYear"]() + pQeKuR52);
		                break;
		        }
		    }
		    else
		    {
		        l58["setDate"](l58["getDate"]()+pQeKuR52);
		    }
			GAqlPsYB57+=";expires="+l58["toGMTString"]();
	    }
		if(TIGiYJcp54)
		{
			GAqlPsYB57+=";path="+TIGiYJcp54;
		}
		else
		{
		    GAqlPsYB57 += ";path=/"
		}
		//str+=";domain="+sDomain;
		if(CjGqWmRY55)
			GAqlPsYB57+=";secure";
		window["document"]["cookie"] = GAqlPsYB57 + ";";
	};
	
	this["GetValue"]=function(uTPVA59)
	{
	    var aZsLSKEFt60 = window["document"]["cookie"]["split"]("; ");
	    uTPVA59 = uTPVA59["toLowerCase"]();
	    for(var VNRBTOAZJ61=0; VNRBTOAZJ61<aZsLSKEFt60["length"]; VNRBTOAZJ61++)
	    {
	        if(aZsLSKEFt60[VNRBTOAZJ61]["toLowerCase"]()["indexOf"](uTPVA59) == 0)
	        {
	            return window["unescape"](aZsLSKEFt60[VNRBTOAZJ61]["substring"](uTPVA59["length"] + 1));
	        }
	    }
		//var rs=new RegExp("(^|)"+name+"=([^;]*)(;|$)","gi").exec(document.cookie),tmp;
		//if(tmp=rs)
		//	return unescape(tmp[2]);
		return "";
	};
}

function fnReplaceBadStr(rDHblZQib62)
{
	if(rDHblZQib62 == null)
		return null;
	rDHblZQib62 = rDHblZQib62["replace"](/['|&<>`!;#$=\"]/g, "");
	return rDHblZQib62["replace"](/^\s{1,}|\s{1,}$/g, "")["replace"](/(我靠|我日|我操|操你|你妈|fuck|FUCK|bitch|他妈的|性爱|法\s{0,}轮\s{0,}功|falundafa|falun|江泽民|操你妈|三级片|普光网络|月赚千元)/g, "");
}

// 当openWindow的确定按钮按下时
function btnClickOnOpenWindow()
{
	var hc63 = false;
	if(typeof(ifrOpenMain["SetOutParams"]) == 'undefined')
	{
		hc63 = null;
	}
	else
	{
		hc63 = ifrOpenMain["SetOutParams"]();
	}
	if(hc63 == false)
	{
		return;
	}
	if(window["dialogArguments"]["InParam"] != null)
	{
		try
		{
			window["returnValue"] = window["dialogArguments"]["InParam"]["ToString"]();
		}
		catch(err)
		{
		}
	}else
	{
		window["returnValue"] = null;
	}
	window["close"]();
}
// 呼叫服务器方法
function Call(m64, RhJkiMEk65, aMGaye66, sGPtjmO67)
{
	if(RhJkiMEk65 == null)
	{
		RhJkiMEk65 = new ParamClass();
	}
	RhJkiMEk65["__XmlDoc"]["documentElement"]["setAttribute"]("FunctionName", m64);
	var wsDh68 = GethttpRequest();
	wsDh68["open"]("POST", sGPtjmO67, false);
	wsDh68["send"](RhJkiMEk65["ToString"]());
	if(wsDh68["responseText"] == null || wsDh68["responseText"] == "")
	{
		window["alert"](aMGaye66);
		return false;
	}
	//alert(XmlHttp.responseText);
	RhJkiMEk65 = new ParamClass(wsDh68["responseText"]);
	return RhJkiMEk65["GetValue"]("Result");
}


function __fnWaitCallBack()
{
	if(__fnArray["length"] == 0)
	{
		window["clearInterval"](__nWaitCallBack);
		__nWaitCallBack = 0;
	}
	else
	{
		fnCallEx(__fnArray[0][0], __fnArray[0][1], __fnArray[0][2], __fnArray[0][3], true, __fnArray[0][4]);
	}
}

function fnPushWaitArray(BiWMpId69, bdTmRzVTL70, hbrbz71, tLB72, Ld$jgMdL73)
{
    var _bmPP74 = new window["Array"](5);
    _bmPP74[0] = BiWMpId69;
    _bmPP74[1] = bdTmRzVTL70;
    _bmPP74[2] = hbrbz71;
    _bmPP74[3] = tLB72;
    _bmPP74[4] = Ld$jgMdL73;
    if(__fnArray != null)
    {
        __fnArray["push"](_bmPP74);
	    if(__nWaitCallBack == 0)
	    {
		    __nWaitCallBack = window["setInterval"](__fnWaitCallBack, 100);
	    }
	}
}

function fnCallEx(bEPY75, AlO76, guuofTme77, sN78, itlGJd79, PTV_h80)
{
    if(typeof(__fnArray) != "undefined" && __fnArray != null)
    {
	    if(navigator["appName"] == "Microsoft Internet Explorer" && window["document"]["readyState"] != "complete")
	    {
		    var l81 = false;
		    for(var zwX_fqvM82=0; zwX_fqvM82<__fnArray["length"]; zwX_fqvM82++)
		    {
			    if(__fnArray[zwX_fqvM82][0] == bEPY75 && __fnArray[zwX_fqvM82][1] == AlO76 && __fnArray[zwX_fqvM82][2] == guuofTme77 && __fnArray[zwX_fqvM82][3] == sN78)
			    {
				    l81 = true;
				    break;
			    }
		    }
		    if(!l81)
		    {
			    fnPushWaitArray(bEPY75, AlO76, guuofTme77, sN78, PTV_h80);
		    }
		    return;
	    }
	}
	if(__fnCallBack != null && __fnCallBack != sN78 && (typeof(itlGJd79) == 'undefined'))
	{
		fnPushWaitArray(bEPY75, AlO76, guuofTme77, sN78, PTV_h80);
		return;
	}
	if((typeof(itlGJd79) != 'undefined') && itlGJd79 && __fnCallBack != null)
	{
		return;
	}
	else if(itlGJd79)
	{
		if(__fnArray["length"] > 0)
		{
			__fnArray["shift"]();
		}
	}
	if(AlO76 == null)
	{
		AlO76 = new ParamClass();
	}
	if(__xmlHttp != null)
	{
	    __xmlHttp = null;
	    if(__bIsIE)
	    {
	        CollectGarbage();
	    }
	}
	__xmlHttp = GethttpRequest();
	var AmsJulS83 = typeof(PTV_h80) == "boolean" && PTV_h80 ? fnHandleStateChangeEx : fnHandleStateChange;
	__xmlHttp["onreadystatechange"] = AmsJulS83;
	stroldFnName = bEPY75;
	AlO76["__XmlDoc"]["documentElement"]["setAttribute"]("FunctionName", bEPY75);
	__fnCallBack = sN78;
	__xmlHttp["open"]("POST", guuofTme77, true);
	__xmlHttp["send"](AlO76["ToString"]());
}

Function["prototype"]["bind"] = function(obj)
{
	var reRAhqbg84 = this,
	temp = function() {
	return reRAhqbg84["apply"](obj, arguments);
	};

	return temp;
}

function RequestXmlHttpEx(ounPlb85)
{
    ounPlb85[0]["onreadystatechange"] = fnHandleStateChange["bind"](ounPlb85)
	ounPlb85[0]["open"]("POST", ounPlb85[4], true);
	ounPlb85[0]["send"](ounPlb85[3]);
} 

function GethttpRequest() //创建XMLHTTP对像； 
{
	if ( window["XMLHttpRequest"] )// Gecko
		return new XMLHttpRequest() ;
	else if ( window["ActiveXObject"] )// IE
		return new ActiveXObject("MsXml2.XmlHttp") ;
}

function fnHandleStateChangeEx()
{
    if(typeof(__xmlHttp) != "undefined" && __xmlHttp != null && __xmlHttp["readyState"] == 4)
	{
		if(__xmlHttp["status"] == 200 && __fnCallBack != null)
		{
			__fnCallBack(__xmlHttp["responseText"]);
		}
		__fnCallBack = null;
	}
}

function fnHandleStateChange()
{
	if(typeof(__xmlHttp) != "undefined" && __xmlHttp != null && __xmlHttp["readyState"] == 4)
	{
		if(__xmlHttp["status"] == 200 && __fnCallBack != null)
		{
			if(__oWaitMessage != null)
			{
				__fnWaitMessage(false);
			}
			var gIrl86 = new ParamClass(__xmlHttp["responseText"]);
			__fnCallBack(gIrl86["GetValue"]("Result"));
		}
		__fnCallBack = null;
	}
}


// 参数类
function ParamClass(QbTBwzn87)
{
    if(__bIsIE)
    {
        CollectGarbage();
    }
	this["ParamDoc"] = NewXmlDoc();
	this["oNode"]    = null;
	if(QbTBwzn87 && typeof(QbTBwzn87) == "string")
	{
		if(window["ActiveXObject"] && typeof(this["ParamDoc"]["loadXML"]) != "undefined")
		{
			if(!this["ParamDoc"]["loadXML"](QbTBwzn87))
			{
				this["oNode"] = this["ParamDoc"]["createElement"]("Root");
				this["ParamDoc"]["appendChild"](this["oNode"]);
			}
		}
		else
		{
			var FPbVEbcDS88 = new DOMParser();
			this["ParamDoc"] = FPbVEbcDS88["parseFromString"](QbTBwzn87, "text/xml");
		}
	}
	else
	{
		this["oNode"] = this["ParamDoc"]["createElement"]("Root");
		this["ParamDoc"]["appendChild"](this["oNode"]);
	}
	this["__XmlDoc"] = this["ParamDoc"];
}

//设置节点的值
ParamClass["prototype"]["SetValue"] = function(sName, lKFdDQ89, N90)
{
	this["SearchNode"](sName);
	if(this["oNode"] == null)
	{
		this["oNode"] = this["ParamDoc"]["createElement"]("Node");
		this["oNode"]["setAttribute"]("ParamName",  sName);
		if(typeof(N90) != 'undefined' && N90)
		{
			var srYeNVRX91 = this["ParamDoc"]["createCDATASection"](lKFdDQ89);
			this["oNode"]["appendChild"](srYeNVRX91);
		}
		else
		{
			this["oNode"]["setAttribute"]("ParamValue", lKFdDQ89);
		}
		this["ParamDoc"]["documentElement"]["appendChild"](this["oNode"]);
	}else
	{
		if(typeof(N90) != 'undefined' && N90)
		{
			this["oNode"]["childNodes"][0]["data"] = lKFdDQ89;
		}
		else
		{
			this["oNode"]["setAttribute"]("ParamValue", lKFdDQ89);
		}
	}
}

//得到节点值
ParamClass["prototype"]["GetValue"] = function(sName, BIvHg$Xbg92)
{
	this["SearchNode"](sName);
	if(this["oNode"] == null)
	{
		return "";
	}
	else
	{
		if(typeof(BIvHg$Xbg92) != 'undefined' && BIvHg$Xbg92)
		{
			return this["oNode"]["childNodes"][0]["data"];
		}
		else
		{
			return this["oNode"]["getAttribute"]("ParamValue");
		}
	}
}

//返回参数的?形式
ParamClass["prototype"]["ToParamString"] = function()
{
	var _knDJQnW93 = "?";
	var dJY94 = this["ParamDoc"]["documentElement"];
	for(var Zuw95=0; Zuw95<dJY94["childNodes"]["length"]; Zuw95++)
	{
		_knDJQnW93 +=
				 dJY94["childNodes"][Zuw95]["getAttribute"]("ParamName")
				+ "="
				+ dJY94["childNodes"][Zuw95]["getAttribute"]("ParamValue")
				+ "&";
	}
	return _knDJQnW93;
}

//返回参数的XML
ParamClass["prototype"]["ToString"] = function()
{
	if(window["ActiveXObject"])
	{
		return this["ParamDoc"]["xml"];
	}
	else
	{
		var FdgsjPT96 = this["ParamDoc"]["documentElement"];
		return serializeXml(FdgsjPT96);
	}
}

//搜索节点
ParamClass["prototype"]["SearchNode"] = function(sName)
{
	this["oNode"] = null;
	if(window["ActiveXObject"])
	{
		this["oNode"] = this["ParamDoc"]["selectSingleNode"]("//Root/Node[@ParamName='"+ sName +"']");
	}
	else
	{
		var vXJpCDyo97 = this["ParamDoc"]["documentElement"];
		//alert(root.childNodes.length);
		for(var mtPr98=0; mtPr98<vXJpCDyo97["childNodes"]["length"]; mtPr98++)
		{
			if(vXJpCDyo97["childNodes"][mtPr98]["nodeName"] == "Node" && vXJpCDyo97["childNodes"][mtPr98]["getAttribute"]("ParamName") == sName)
			{
				this["oNode"] = vXJpCDyo97["childNodes"][mtPr98];
				break;
			}
		}
	}
}

function fnSearchEvent()
{
	var iEGHRve$Y99 = fnSearchEvent["caller"];
	while(iEGHRve$Y99 != null)
	{
		for(var LkArYd100=0; LkArYd100<iEGHRve$Y99["arguments"]["length"]; LkArYd100++)
		{
			if(iEGHRve$Y99["arguments"][LkArYd100] && (iEGHRve$Y99["arguments"][LkArYd100]["constructor"]["toString"]()["lastIndexOf"]("Event") > -1))
			{
				return iEGHRve$Y99["arguments"][LkArYd100];
			}
		}
		iEGHRve$Y99 = iEGHRve$Y99["caller"];
	}
	return window["event"];
}

function fnResetIframeHeight()
{
	try
	{
	    if(parent["document"]["getElementById"]("ifrMain") != null)
	    {
		    parent["document"]["getElementById"]("ifrMain")["height"] = window["document"]["body"]["scrollHeight"];
		    
	    }
	}
	catch(err)
	{
	}
}

function AttachEvent(obj, sg101, SJBQSSmUh102, FGN103)
{
	if(obj["addEventListener"])
	{
	    var kLIDiUgg104 = (typeof(FGN103) != "undefined"  && FGN103) ? true : false;
		obj["addEventListener"](sg101, SJBQSSmUh102, kLIDiUgg104);
	}
	else
	{
		obj["attachEvent"]("on"+ sg101, SJBQSSmUh102);
	}
}

function DeleteEvent(_105, cLoGMKy106, uGtFRwhC107)
{
	if(_105["addEventListener"])
	{
		_105["removeEventListener"](cLoGMKy106, uGtFRwhC107, false);
	}
	else
	{
		_105["detachEvent"]("on"+ cLoGMKy106, uGtFRwhC107);
	}
}

function _getObj(RMwP108)
{
	if (typeof(RMwP108) != "string" || RMwP108 == "") return null;
	if (window["document"]["getElementById"]) return window["document"]["getElementById"](RMwP108);
	try {return window["eval"](RMwP108);} catch(e){ return null;}
}

function serializeXml(JrHuoUkIM109)
{
    var oTi110 = new XMLSerializer();
    return oTi110["serializeToString"](JrHuoUkIM109);
}


function __fnGetXmlNodeXml($Cpw111)
{
    if($Cpw111 != null)
    {
        if(__bIsIE)
        {
            return $Cpw111["xml"];
        }
        else
        {
            return serializeXml($Cpw111);
        }
    }
    else
    {
        return "";
    }
}

function fnReSetPage(N$DRVdDp112)
{
	switch(N$DRVdDp112["keyCode"])
	{
		case 37://left
			if(typeof(strPrePage) != 'undefined' && strPrePage != '')
			{
				window["location"]["href"] = strPrePage;
			}
			else if(_getObj("ifrMain") != null && typeof(_getObj("ifrMain")["contentWindow"]["strPrePage"]) != 'undefined' && _getObj("ifrMain")["contentWindow"]["strPrePage"] != "")
			{
				_getObj("ifrMain")["contentWindow"]["location"]["href"] = _getObj("ifrMain")["contentWindow"]["strPrePage"];
			}
		break;
		case 39://right
			if(typeof(strNextPage) != 'undefined' && strNextPage != '')
			{
				window["location"]["href"] = strNextPage;
			}
			else if(_getObj("ifrMain") != null && typeof(_getObj("ifrMain")["contentWindow"]["strNextPage"]) != 'undefined' && _getObj("ifrMain")["contentWindow"]["strNextPage"] != "")
			{
				_getObj("ifrMain")["contentWindow"]["location"]["href"] = _getObj("ifrMain")["contentWindow"]["strNextPage"];
			}
		break;
	}
}

function fnClearLocation()
{
    __nDx = 0;
    __nDy = 0;
}
function fnGetLocation(FSEnj_E113)
{
	if(FSEnj_E113 != null && typeof(FSEnj_E113["offsetTop"]) != "undefined")
	{
		__nDx += window["parseInt"](FSEnj_E113["offsetLeft"]);
		__nDy += window["parseInt"](FSEnj_E113["offsetTop"]);
		if(typeof(FSEnj_E113["offsetParent"]) != "undefined")
		{
			fnGetLocation(FSEnj_E113["offsetParent"]);
		}
	}
}

function __fnClearBaseResource()
{
    if(__nWaitTimeID)
    {
        window["clearInterval"](__nWaitTimeID);
    }
    __fnArray = null;
}

function __fnSetPageAction()
{
    __oBodyObjToPopup = (window["document"]["documentElement"] && (window["document"]["documentElement"]["clientWidth"] > 0)) ? window["document"]["documentElement"] : window["document"]["body"];
	AttachEvent(window["document"], "keydown", fnReSetPage);
}
__fnSetPageAction();