﻿
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"]("div");
	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"]      = '关闭';
	jGdm17["className"]   = "MessageText2";

	//移动表格
	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;
		hzudZekeN11["className"]   = "MessageText2";
		
		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' 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 oBodyObj = (document.body && document.body.clientWidth) ? document.body : document.documentElement;
	var WrFes6 = window["document"]["createElement"]("div");
	WrFes6["style"]["display"]  = 'none';
	WrFes6["style"]["backgroundColor"] = '#ffffff';
	WrFes6["style"]["position"] = "absolute";
	WrFes6["style"].zIndex      = 10020;
	WrFes6["style"]["left"]     = (oBodyObj["clientWidth"] - dXH$WPWhg1 - 4)["toString"]() + "px";
	WrFes6["style"]["top"]      = (oBodyObj["clientHeight"] - nCXz$j3 - 4)["toString"]() + "px";
	WrFes6["style"]["width"]    = dXH$WPWhg1.toString() + "px"
	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 topTitleDiv = document.createElement("div");
	topTitleDiv.style.width = "100%";
	topTitleDiv.className = "ChatTitle";
	
	var K7 = window["document"]["createElement"]("div");
	var UCEEwk8 = window["document"]["createElement"]("div");
	var nUserID = 0;
	K7["style"]["width"]  = "80px";
	
	K7["style"]["padding"] = "5px";
	//UCEEwk8.style.styleFloat = "left";
	
	if(__bIsIE)
	{
	    topTitleDiv.style.styleFloat = "left";
	    K7["style"]["styleFloat"] = "left";
	    UCEEwk8.style.styleFloat = "right";
	}
	else
	{
	    topTitleDiv.style.cssFloat = "left";
	    K7["style"]["cssFloat"] = "left";
	    UCEEwk8.style.cssFloat = "right";
	}
	WrFes6.appendChild(topTitleDiv);
	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"];
	topTitleDiv["appendChild"](UCEEwk8);
	topTitleDiv["appendChild"](K7);
	var sZCtips10 = window["document"]["createElement"]("div");
	sZCtips10["style"]["width"]  = dXH$WPWhg1["toString"]() + "px";
	sZCtips10["style"]["height"] = "1px";
	sZCtips10["style"]["backgroundColor"] = '#B9D0E8';
	if(__bIsIE)
	{
	    sZCtips10.style.styleFloat = "left";
	}
	else
	{
	    sZCtips10.style.cssFloat = "left";
	}
	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";
	if(__bIsIE)
	{
	    glkTi11["style"]["styleFloat"] = "left";
	}
	else
	{
	    glkTi11["style"]["cssFloat"] = "left";
	}
	var MQsJHbnX12 = null;
	this["ClickContent"] = function(e)
	{
		if(typeof(MQsJHbnX12) == "function" )
		{
			MQsJHbnX12(nUserID);
		}
		fY9();
	}
	this.SetCommand = function(fnCmd)
	{
	    MQsJHbnX12 = fnCmd;
	}
	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)
	{
	    if(kDjpgCEU5 != 0)
	    {
	        window.clearTimeout(kDjpgCEU5);
	    }
		MhTjys13();
		WrFes6["style"]["height"]  = (nCXz$j3)["toString"]() + "px";
		WrFes6["style"]["top"] =  (oBodyObj["scrollTop"] + oBodyObj["clientHeight"] - nCXz$j3 - 4)["toString"]() + "px";
		WrFes6["style"]["display"] = '';
		K7["innerHTML"]    = strTitle;
		glkTi11["innerHTML"]  = LcGmqwlj14;
		if(LUbovc15 != null)
		{
			nUserID = LUbovc15;
		}
		oPlay();
	}
	this["Play"] = function()
	{
		if(WrFes6["clientHeight"] < HUeYdRpd$2)
		{
			WrFes6["style"]["top"]    =  (oBodyObj["scrollTop"] + oBodyObj["clientHeight"] - WrFes6["clientHeight"] - NamfRQob4 - 4)["toString"]() + "px";
			WrFes6["style"]["height"] = (WrFes6["clientHeight"] + NamfRQob4)["toString"]() + "px";
			window["setTimeout"](oPlay, kDjpgCEU5);
		}
		else
		{
		    kDjpgCEU5 = 0;
		}
	}
	var oPlay = this["Play"];
}

var __strSiteUrl = null;


function CLASS_MSN_MESSAGE(id, width, height)
{
	this.id	 = id;
	var width	= width?width:200;
	var height	= height?height:120;
	var timeout= 3000;
	var speed	= 20; 
	var step	= 5; 
 
	var left	= 0; 
	var right	= screen.availWidth -1;
	var top	= 0; 
	var bottom = screen.availHeight; 
	var timer = 0;
	var nUserID = 0;
	var _fnClickCommand = null;
	var   Pop = null;
	
	this.SetCommand = function(fnCmd)
	{
	    _fnClickCommand = fnCmd;
	}
	this.hide = function()
    {
	    Pop.hide();
	    if(timer > 0)
	    {
		    window.clearInterval(timer);
		    timer = 0;
	    }
    }
    
    var fnHide = this.hide;
    
    this.oncommand = function()
    {
        if(typeof(_fnClickCommand) == "function")
        {
            _fnClickCommand(nUserID);
        }
	    fnHide();
    }
    
    var fnOnCommand = this.oncommand;
    
    this.Show = function(strCpation, strMessage, UserID)
    {
        if(Pop == null)
        {
	        var oPopup = window.createPopup(); //IE5.5+

	        if(typeof(oPopup) == "undefined" || oPopup == null)
	        {
		        return null;
	        }
	        Pop = oPopup;
	    }
	    
	    nUserID = UserID;
	    
        if(timer != 0)
	    {
	        window.clearInterval(timer);
	    }
	    
	    var w = width;
	    var h = height;

	    var str = "<DIV style='border:#55759C 1px solid; Z-INDEX: 99999; LEFT: 0px;  WIDTH: " + w + "px;  POSITION: absolute; TOP: 0px; HEIGHT: " + h + "px; background-image: url("+ __strSiteUrl +"images/ChatContentBg.gif); '>"
		    str += "<TABLE style='' cellSpacing=0 cellPadding=0 width='100%' border=0>"
		    str += "<TR style='background-image: url("+ __strSiteUrl +"images/ChatTitle.jpg); '>"
		    str += "<TD style='FONT-SIZE: 12px;COLOR: #0f2c8c' width=30 height=24></TD>"
		    str += "<TD style='PADDING-LEFT: 4px; FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #1f336b; PADDING-TOP: 4px;' vAlign=center width='100%'>" + strCpation + "</TD>"
		    str += "<TD style='PADDING-RIGHT: 2px; PADDING-TOP: 2px' vAlign=center align=right width=19>"
		    str += "<SPAN title=关闭 style='FONT-WEIGHT: bold; FONT-SIZE: 12px; CURSOR: pointer; COLOR: red; MARGIN-RIGHT: 4px' id='btSysClose' >×</SPAN></TD>"
		    str += "</TR>"
		    str += "<TR>"
		    str += "<TD style='PADDING:5px' colSpan=3 height=" + (h-28) + " valign='top'>"
		    str += "<DIV style='BORDER: #BED6E0 1px solid; padding:5px; height:100%; FONT-SIZE: 12px; WORD-BREAK: break-all' align=left><A hidefocus=true style='cursor:pointer;' id='btCommand'><FONT color=#ff0000>" + strMessage + "</FONT></A></DIV>"
		    str += "</TD>"
		    str += "</TR>"
		    str += "</TABLE>"
		    str += "</DIV>";

	    Pop.document.body.innerHTML = str;

	    timer = window.setInterval(fnPlay, speed)	

	    var btClose = Pop.document.getElementById("btSysClose");

	    btClose.onclick = function()
	    {
		    fnHide();
	    }

	    var btCommand = Pop.document.getElementById("btCommand");
	    btCommand.onclick = function()
	    {
		    fnOnCommand();
		    window.focus();
	    }
	    tempHeight = 0;
    }
    
    var tempHeight = 0;
    
    this.Play = function()
    {
        var w = width;
	    var h = height;
        var docWidth = right;
	    var docHeight = bottom;
	    var offset	= screen.height - screen.availHeight;
	    Pop.show(docWidth-w, docHeight + offset + tempHeight, w, tempHeight);
	    //alert((docWidth-w) +"," + (docHeight + offset + tempHeight) + "," +  w + "," + tempHeight);
	    if(tempHeight >= h)
	    {
		    window.clearInterval(timer);
		    timer = 0;
	    }
	    tempHeight = tempHeight + step;
    }
    
    var fnPlay = this.Play;
    
    this.Speed = function(s) 
    { 
	    var t = 20; 
	    try 
	    { 
		    t = praseInt(s); 
	    } 
	    catch(e){} 
     
	    this.speed = t; 
    }
    
    this.Step = function(s) 
    { 
	    var t = 5; 
	    try 
	    { 
		    t = praseInt(s); 
	    } 
	    catch(e){} 
     
	    this.step = t; 
    } 
    
    this.rect = function(left,right,top,bottom) 
    { 
	    try 
	    { 
		    left	= left?left:0; 
		    right	= right?right:screen.availWidth -1; 
		    top	= top?top:0; 
		    bottom = bottom?bottom:screen.availHeight; 
	    } 
	    catch(e) 
	    {} 
    } 
}


var __helpMsg  = null;
var __helpType = 0;
function fnCreateHelpMsg__()
{
    if(__strSiteUrl == null)
    {
        __strSiteUrl = window.location.href;

        var __nSiteIndex = __strSiteUrl.lastIndexOf("/");
        if(__nSiteIndex > -1)
        {
            __strSiteUrl = __strSiteUrl.substring(0, __nSiteIndex + 1);
        }
        else
        {
            __strSiteUrl = "";
        }
    }
    if(__helpMsg == null)
    {
	    var _pop = __bIsIE ? window.createPopup() : null;
	    if(_pop != null)
	    {
		    if(typeof(CLASS_MSN_MESSAGE) != "undefined")
		    {
			    __helpMsg = new CLASS_MSN_MESSAGE("PopupMessage", 200, 120);
		    }
		    __helpType = 1;
	    }
	    else
	    {
		    __helpMsg = new MessageNoteClass();
		    __helpType = 0;
	    }
	}
	return __helpMsg;
}