
function MessageBoxClass(msgWidth, msgHeight)
{
	var fTRfFW1  = false;
	var WQ2   = null;
	
	var VFdm3 = 0;
	var vDD4 = 0;
	var O$gSBjgg5 = (window["document"]["documentElement"] && (window["document"]["documentElement"]["clientWidth"] > 0)) ? window["document"]["documentElement"] : window["document"]["body"];
	var GP6 = 0;
	var QEDv7 = 0;
	var S8     = 450;
	if(msgWidth && typeof(msgWidth) != "undefined")
	{
		S8     = msgWidth;
	}
	var KzPkC9    = 350;
	if(msgHeight && typeof(msgHeight) != "undefined")
	{
		KzPkC9    = msgHeight;
	}
	var PDsw10 = 23;
	var hzudZekeN11   = null;
	//var oDragItem  = null;
	var snOhDeMf12   = null;
	var _MoFqQX13    = null;
	var X14    = null;
	var nJyYgY15 = null;
	var ASvIjaPl16   = null;//显示的层对像
	var jGdm17      = null;
	var U18      = false;//是否为移动
	var lpyhusOAL19   = null;//关闭按钮
	var zn20 = null;
	var __mVqQV21   = 0;//父级窗口的高度
	var CVsrTRn22   = 0;//父级窗口的宽度

	//oDragItem  = document.createElement("div");
	snOhDeMf12   = window["document"]["createElement"]("div");
	ASvIjaPl16   = window["document"]["createElement"]('div');
	snOhDeMf12["innerHTML"] = "<table bgcolor='#000000' style='filter:alpha(opacity=30);-moz-opacity:0.3; opacity: 0.3;'  width='100%' height='100%'  border='0' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
	
	ASvIjaPl16["style"]["position"]     = 'absolute';
	ASvIjaPl16["style"]["left"]         = 0;
	ASvIjaPl16["style"]["top"]          = 0;
	ASvIjaPl16["style"]["zIndex"]       = 10011;
	
	ASvIjaPl16["innerHTML"] = "<table id='__MainTable' border='0' cellspacing='1' cellpadding='0' bgcolor='#b9bed9' style='top: 0; left: 0; width: "+ S8["toString"]() +"px;'>"
						+"	<tr bgcolor='#FFFFFF'>"
						+"		<td height='"+ PDsw10["toString"]() +"' style='cursor:move;' id='__MoveTD' class='MessageTop'> "
						+"			<table width='100%' height='18' border='0' cellpadding='0' cellspacing='0'>"
						+"				<tr>"
						+"					<td></td><td width='28'></td>"
						+"				</tr>"
						+"			</table></td>"
						+"	</tr>"
						+"	<tr bgcolor='#FFFFFF'>"
						+"		<td style='height="+ (KzPkC9 - PDsw10)["toString"]() +"px;' id='_ChildTD' class='MessageBottom'>"
						+"			<div style='overflow:hidden;width:100%;height:"+ (KzPkC9 - PDsw10 - 20)["toString"]() +"px;' id='__MainTd'></div>"
						+"		</td>"
						+"	</tr>"
						+"</table>";
	nJyYgY15 = ASvIjaPl16["childNodes"][0];
	jGdm17      = window["document"]["createElement"]("font");
	jGdm17["style"]["cursor"]   = "pointer";
	jGdm17["style"]["fontSize"] = '12';
	if(window["document"]["all"])
	{
		_MoFqQX13 = nJyYgY15["rows"][0]["cells"][0]["childNodes"][0]["rows"][0];
	}
	else
	{
		_MoFqQX13 = nJyYgY15["rows"][0]["cells"][0]["childNodes"][1]["rows"][0];
	}
	hzudZekeN11             = _MoFqQX13["cells"][0];
	_MoFqQX13["cells"][0]["style"]["fontSize"] = 12;
	_MoFqQX13["cells"][1]["appendChild"](jGdm17);
	jGdm17["innerHTML"]      = '关闭';


	//移动表格
	this["fnMoveTable"] = function(e)
	{
		if(fTRfFW1)
		{
			var QgnRCRJ23;
			var LwqkGAF24;
		    if(!__bIsIE)
		    {
			    LwqkGAF24 = GP6 + e["pageX"] - VFdm3;
			    QgnRCRJ23  = QEDv7 + e["pageY"] - vDD4;
		    }
		    else
		    {
			    LwqkGAF24 = GP6 + e["clientX"] - VFdm3;
			    QgnRCRJ23  = QEDv7 + e["clientY"] - vDD4;
		    }
		    if((QgnRCRJ23 - O$gSBjgg5["scrollTop"]) < 0)
		    {
			    QgnRCRJ23 = O$gSBjgg5["scrollTop"];
		    }
		    else if((QgnRCRJ23 - O$gSBjgg5["scrollTop"]) > ( O$gSBjgg5["clientHeight"] - window["parseInt"](ASvIjaPl16["clientHeight"])))
		    {
			    QgnRCRJ23 = O$gSBjgg5["scrollTop"] + O$gSBjgg5["clientHeight"] - window["parseInt"](ASvIjaPl16["clientHeight"]);
		    }
		    if((LwqkGAF24 - O$gSBjgg5["scrollLeft"]) < 0)
		    {
			    LwqkGAF24 = O$gSBjgg5["scrollLeft"];
		    }
		    else if(LwqkGAF24 - O$gSBjgg5["scrollLeft"] > (O$gSBjgg5["clientWidth"] - window["parseInt"](ASvIjaPl16["clientWidth"])))
		    {
			    LwqkGAF24 = O$gSBjgg5["scrollLeft"] + O$gSBjgg5["clientWidth"] - window["parseInt"](ASvIjaPl16["clientWidth"]);
		    }
			ASvIjaPl16["style"]["left"] = (LwqkGAF24)["toString"]() + "px";
			ASvIjaPl16["style"]["top"]  = (QgnRCRJ23)["toString"]() + "px";
			U18 = true;
		}
	}
	
	//重新设置大小
	this["ReSetSize"] = function(nCx, QHOrhsW25)
	{
		ASvIjaPl16["style"]["width"]    = nCx["toString"]() + "px";
		ASvIjaPl16["style"]["height"]   = QHOrhsW25["toString"]() + "px";
		S8                  = nCx;
		KzPkC9                 = QHOrhsW25;
		__MainTable["style"]["width"] = nCx["toString"]() + "px";
		__MainTd["style"]["height"]   = (QHOrhsW25 - PDsw10 - 20)["toString"]() + "px";
		_ChildTD["style"]["height"]   = (QHOrhsW25 - PDsw10)["toString"]() + "px";
	}
	
	//鼠标按下
	this["fnMouseDown"] = function(e)
	{
		fTRfFW1  = true;
		var GV_ZAMU26;
		var PcAtGL27;
		if(e["pageX"])
		{
			GV_ZAMU26 = e["pageX"];
			PcAtGL27 = e["pageY"];
		}
		else
		{
			GV_ZAMU26 = e["clientX"];
			PcAtGL27 = e["clientY"];
		}
		VFdm3 = GV_ZAMU26;
		vDD4 = PcAtGL27;
		GP6      = window["parseInt"](ASvIjaPl16["style"]["left"]);
		QEDv7      = window["parseInt"](ASvIjaPl16["style"]["top"]);
		
		if(__bIsIE)
        {
	        _getObj("__MoveTD")["setCapture"]();
        }
        else
        {
		
	        window["captureEvents"](Event["MOUSEMOVE"]|Event["MOUSEUP"]);
        }
	}
	

	//鼠标释放
	this["fnMouseUp"] = function(e)
	{
		if(fTRfFW1)
		{
			//oShowDiv.style.top      = oDragItem.style.top;
			//oShowDiv.style.left     = oDragItem.style.left;
			//oDragItem.style.display = 'none';
			fTRfFW1 = false;
			U18  = false;
			if(__bIsIE)
		    {
			    _getObj("__MoveTD")["releaseCapture"]();
		    }
		    else
		    {

			    window["releaseEvents"](Event["MOUSEMOVE"]|Event["MOUSEUP"]);
		    }
		}
		
	}
	//关闭窗口
	this["fnClose"] = function(bState)
	{
		ASvIjaPl16["style"]["display"] = 'none';
		snOhDeMf12["style"]["display"] = 'none';
		if(typeof(bState) != "boolean" && zn20 != null)
		{
			window["eval"](zn20);
		}
	}
	
	//显示信息窗口
	//sText 标题
	//fnMethod 可以为函数或 字符串
	//appfnClose 关闭时附加的函数
	this["ShowMessageBox"] = function(sText, Hj28, CoiIm29, Q30)
	{
		zn20           = null;
		sText                = "　"+ sText;
		hzudZekeN11["innerHTML"]   = sText;
		var hLYqr31       = typeof(Q30) == "boolean" ? Q30 : false;
		ASvIjaPl16["style"]["left"]  = (O$gSBjgg5["scrollLeft"] + (window["parseInt"](O$gSBjgg5["clientWidth"])   - S8  - __mVqQV21)/2)["toString"]() + "px";
		ASvIjaPl16["style"]["top"]   = (O$gSBjgg5["scrollTop"]  + (window["parseInt"](O$gSBjgg5["clientHeight"])  - KzPkC9)/2 - CVsrTRn22 + 10)["toString"]() + "px";


		ASvIjaPl16["style"]["display"] = '';
		snOhDeMf12["style"]["width"]   = O$gSBjgg5["scrollWidth"]["toString"]() + "px";
	    snOhDeMf12["style"]["height"]  = O$gSBjgg5["scrollHeight"]["toString"]() + "px";
		snOhDeMf12["style"]["display"] = '';
		ASvIjaPl16["focus"]();
		_getObj("__MainTd")["innerHTML"] = "\r\n\r\n\r\n　　　　　　　正在处理中，请等待!......";
		
		if(Hj28 != null)
		{
			if(typeof(Hj28) == "function")
			{
				_getObj("__MainTd")["innerHTML"] = Hj28();
			}
			else if(typeof(Hj28) == "string")
			{
			    if(!hLYqr31)
			    {
			        _getObj("__MainTd")["innerHTML"] = "<table align='right' width='96%' height='90%' border='0' cellpadding='0' cellspacing='0'><tr><td align='center' style='text-align:center' id='__oWaitID'>"+ Hj28 +"</td><td width='28'></td></tr></table>";
			    }
			    else
			    {
				    _getObj("__MainTd")["innerHTML"] = "<table align='right' width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'><tr><td align='center' id='__oWaitID'><iframe id='ifrChatDocument' name='ifrChatDocument' frameborder='0' scrolling='no' width='100%' height='"+ (KzPkC9 - 40)["toString"]() +"' src='"+ Hj28 +"'></iframe></td></tr></table>";
				}
			}
		}
		
		if(CoiIm29 != null)
		{
			if(typeof(CoiIm29) == "function")
			{
				AttachEvent(lpyhusOAL19, "click", CoiIm29);
			}
			else if(typeof(CoiIm29) == "string")
			{
				zn20 = CoiIm29;
			}
		}
	}

	//设置标题
	this["ReSetTitle"] = function(strTitle)
	{
		hzudZekeN11["innerHTML"] = "　" + strTitle;
	}
	
	//按下按钮
	this["fnKeyDown"] = function(e)
	{
		if(ASvIjaPl16["style"]["display"] == "" && !fTRfFW1)
		{
			var yAqH$Sj32 = 0;
			if(window["event"])
			{
				yAqH$Sj32 = e["keyCode"];
			}
			else
			{
				yAqH$Sj32 = e["which"];
			}
			switch(yAqH$Sj32)
			{
				case 13://enter
					ASvIjaPl16["style"]["display"] = 'none';
					snOhDeMf12["style"]["display"] = 'none';
					if(zn20 != null)
					{
						window["eval"](zn20);
					}
					return false;
				default:
					return true;
			}
		}
	}
	lpyhusOAL19 = _MoFqQX13["cells"][1];
	AttachEvent(lpyhusOAL19, "click",   this["fnClose"]);
	
	this["SetClose"] = function(fnName)
	{
		if(typeof(fnName) == "function")
		{
			AttachEvent(lpyhusOAL19, "click", fnName);
		}
	}
	
	snOhDeMf12["style"]["position"]     = 'absolute';
	snOhDeMf12["style"]["left"]         = "0px";
	snOhDeMf12["style"]["top"]          = "0px";
	snOhDeMf12["style"]["zIndex"]       = 10010;

	window["document"]["body"]["appendChild"](snOhDeMf12);
	window["document"]["body"]["appendChild"](ASvIjaPl16);
	ASvIjaPl16["style"]["display"] = 'none';
	snOhDeMf12["style"]["display"] = 'none';
	var __MainTable = _getObj("__MainTable");
	var __MainTd    = _getObj("__MainTd");
	var _ChildTD    = _getObj("_ChildTD");
	
	AttachEvent(_getObj("__MoveTD"),  "mousedown",   this.fnMouseDown);
	AttachEvent(window.document.body, "mousemove",   this.fnMoveTable);
	AttachEvent(window.document.body, "mouseup",     this.fnMouseUp);
}




function MessageNoteClass()
{
	var dXH$WPWhg1      = 200;
	var HUeYdRpd$2     = 130;
	var nCXz$j3 = 20;
	var NamfRQob4 = 10;
	var kDjpgCEU5      = 50;
	var WrFes6 = window["document"]["createElement"]("div");
	WrFes6["style"]["display"]  = 'none';
	WrFes6["style"]["backgroundColor"] = '#ffffff';
	WrFes6["style"]["position"] = "absolute";
	WrFes6["style"]["left"]     = (window["document"]["body"]["clientWidth"] - dXH$WPWhg1 - 2)["toString"]() + "px";
	WrFes6["style"]["top"]      = (window["document"]["body"]["clientHeight"] - nCXz$j3 - 2)["toString"]() + "px";
	WrFes6["style"]["width"]    = "200px"
	WrFes6["style"]["height"]   = (nCXz$j3)["toString"]() + "px";
	WrFes6["style"]["borderRight"]  = "#6699CC 1px solid";
	WrFes6["style"]["borderTop"]    = "#6699CC 1px solid";
	WrFes6["style"]["borderLeft"]   = "#6699CC 1px solid"; 
	WrFes6["style"]["borderBottom"] = "#6699CC 1px solid";
	WrFes6["style"]["overflow"]     = "hidden";
	window["document"]["body"]["appendChild"](WrFes6);
	
	var K7 = window["document"]["createElement"]("div");
	var UCEEwk8 = window["document"]["createElement"]("div");
	K7["style"]["width"]  = "130px";
	K7["style"]["styleFloat"] = "left";
	K7["style"]["padding"] = "5px";
	WrFes6["appendChild"](K7);
	UCEEwk8["style"]["styleFloat"] = "right";
	UCEEwk8["style"]["width"]  = "40px";
	UCEEwk8["innerHTML"]   = "关闭";
	UCEEwk8["style"]["padding"] = "5px";
	UCEEwk8["style"]["cursor"]  = "pointer";
	this["Close"] = function()
	{
		WrFes6["style"]["display"] = "none";
	}
	AttachEvent(UCEEwk8, "click", this["Close"]);
	var fY9 = this["Close"];
	WrFes6["appendChild"](UCEEwk8);
	var sZCtips10 = window["document"]["createElement"]("div");
	sZCtips10["style"]["width"]  = dXH$WPWhg1["toString"]() + "px";
	sZCtips10["style"]["height"] = "1px";
	sZCtips10["style"]["backgroundColor"] = '#B9D0E8';
	sZCtips10["innerHTML"] = "<img src='' width='1' height='1' />";
	WrFes6["appendChild"](sZCtips10);
	var glkTi11 = window["document"]["createElement"]("div");
	glkTi11["style"]["overflow"] = "hidden";
	glkTi11["style"]["padding"] = "10px";
	glkTi11["style"]["cursor"]  = "pointer";
	var MQsJHbnX12 = null;
	this["ClickContent"] = function(e)
	{
		if(MQsJHbnX12 != null && typeof(MQsJHbnX12) == "function")
		{
			MQsJHbnX12();
		}
		fY9();
	}
	AttachEvent(glkTi11, "click", this["ClickContent"]);
	WrFes6["appendChild"](glkTi11);
	this["WindowFocus"] = function()
	{
		window["document"]["body"]["focus"]();
	}
	var MhTjys13 = this["WindowFocus"];
	
	this["Show"] = function(strTitle, LcGmqwlj14, LUbovc15)
	{
		MhTjys13();
		WrFes6["style"]["height"]  = (nCXz$j3)["toString"]() + "px";
		WrFes6["style"]["top"] =  (window["document"]["body"]["scrollTop"] + window["document"]["body"]["clientHeight"] - nCXz$j3 - 2)["toString"]() + "px";
		WrFes6["style"]["display"] = '';
		K7["innerHTML"]    = strTitle;
		glkTi11["innerHTML"]  = LcGmqwlj14;
		if(LUbovc15 != null && typeof(LUbovc15) == "function")
		{
			MQsJHbnX12 = LUbovc15;
		}
		oPlay();
	}
	this["Play"] = function()
	{
		if(WrFes6["clientHeight"] < HUeYdRpd$2)
		{
			WrFes6["style"]["top"]    =  (window["document"]["body"]["clientHeight"] - WrFes6["clientHeight"] - NamfRQob4 - 2)["toString"]() + "px";
			WrFes6["style"]["height"] = (WrFes6["clientHeight"] + NamfRQob4)["toString"]() + "px";
			window["setTimeout"](oPlay, kDjpgCEU5);
		}
	}
	var oPlay = this["Play"];
}

var __helpMsg  = null;
var __helpType = 0;
function fnCreateHelpMsg__()
{
	var _pop = window.createPopup();
	if(_pop != null)
	{
		if(typeof(CLASS_MSN_MESSAGE) != "undefined" && __PopupMessage == null)
		{
			__helpMsg = new CLASS_MSN_MESSAGE("PopupMessage", 200, 120);
		}
		__helpType = 1;
	}
	else
	{
		__helpMsg = new MessageNoteClass();
		__helpType = 0;
	}
	return __helpMsg;
}