function winForm(){
	var title = '';
	var width = 450;
	var height = 150;
	var bodyheight = 210;
	var X;
	var Y;
	//HeaderHTML : "<div id='poptitle' class='community_boxstyle'><div class='community_titlestyle'>
	//<h2>收益计算器</h2></div><div id='popcon' class='community_bgstyle'><p onclick=\"(new Popup()).close()\" style=\"cursor:pointer;\">点击关闭</p></div></div></div>"
	var path = "/Happy8/V2/images/";
	var sClose = '<input type="image" id="dialogBoxClose" onclick="winfm.close();" src="'+ path +'close_btn.gif" border="0" align="absmiddle" />';
	//var sBody = '<div id="dialogbodyBox" valign="top"><div id="dialogMsg" style="position:absolute;font-size:12px;overflow:auto;overflow-x:hidden;height:293px;z-index:100;scrollbar-face-color:#D6E3EB;scrollbar-highlight-color:#CCCCCC;scrollbar-3dlight-color:#F5F5F5;scrollbar-shadow-color:#CCCCCC;scrollbar-darkshadow-color:#F5F5F5;scrollbar-track-color:#F0F0F0;scrollbar-arrow-color:#FFFFFF;"></div></div>';
	var sBody = '<div id="dialogMsg" style="float:left;font-size:12px;overflow:auto;overflow-x:hidden;height:23px;z-index:100;scrollbar-face-color:#D6E3EB;scrollbar-highlight-color:#CCCCCC;scrollbar-3dlight-color:#F5F5F5;scrollbar-shadow-color:#CCCCCC;scrollbar-darkshadow-color:#F5F5F5;scrollbar-track-color:#F0F0F0;scrollbar-arrow-color:#FFFFFF;"></div>';
	//var sBody = '<div id="dialogMsg" style="position:relative;font-size:12px;overflow:auto;overflow-x:hidden;height:293px;z-index:100;scrollbar-face-color:#D6E3EB;scrollbar-highlight-color:#CCCCCC;scrollbar-3dlight-color:#F5F5F5;scrollbar-shadow-color:#CCCCCC;scrollbar-darkshadow-color:#F5F5F5;scrollbar-track-color:#F0F0F0;scrollbar-arrow-color:#FFFFFF;"></div>';
	
	var ifBox='<iframe id="iframeBox" style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank"></iframe>';

	var sBox = '\
		<table id="dialogBox" width="' + width + '" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #335D55;display:none;z-index:10;">\
		<tr height="1" bgcolor="#D6E3EB"><td></td></tr>\
		<tr height="25">\
		<td background="' + path + 'table_bg.jpg"  bgcolor="#CFDBD9">\
			<table onselectstart="return false;" style="-moz-user-select:none;" width="100%" border="0" cellpadding="0" cellspacing="0">\
			<tr>\
			<td width="6"></td>\
			<td id="dialogBoxTitle" onmousedown="new winForm().moveStart(event, \'dialogBox\')" style="color:#335D55;cursor:move;font-size:12px;font-weight:bold;text-align:center"></td>\
			<td id="dialogClose" width="27" align="right" valign="middle">\
				' + sClose + '\
			</td>\
			</tr>\
			</table>\
		</td>\
		</tr>\
		<tr id="dialogHeight" style="height:' + height + '">\
			<td id="dialogBody" bgcolor="#ffffff" valign="top" style="position:relative">' + sBody + '</td>\
		</tr>\
		</table>\
		<div id="dialogBoxShadow" style="display:none;z-index:2;"></div>\
	';
//if (winfrmname=="") winfrmname="dialogBoxBG"

	var sBG = '\
		<div id="dialogBoxBG" style="position:absolute;top:0px;left:0px;opacity:0.5;filter:Alpha(Opacity=50);z-index:102;"></div>\
	';

	this.show = function(){
		this.shadow();
		$('dialogMsg').scrollTop = $('dialogMsg').scrollHeight; 
	}
	this.close = function(){
		$('dialogBox').style.display='none';
		$('dialogBoxBG').style.display='none';
		$('dialogBoxShadow').style.display = "none";
		$('completionFrame').style.display='none';
		$('dialogBody').innerHTML = sBody;
		this._changeSelect(true);
	}
	
	this.init = function(){
		
		$('dialogCase') ? $('dialogCase').parentNode.removeChild($('dialogCase')) : function(){};
		var oDiv = document.createElement('span');
		oDiv.id = "dialogCase";
		oDiv.innerHTML = sBG + sBox;
		//oDiv.innerHTML =sBox;

		//生成iframe
		var L=document.createElement("IFRAME");
		L.name="completionFrame";
		L.id="completionFrame";
		// 定义iframe的样式，宽高与s相同
		L.width=width;
		L.height=height;
		L.style.border=0;

		// 附加L到s
		oDiv.appendChild(L);
		document.body.appendChild(oDiv);
		$('dialogBoxBG').style.height = document.body.scrollHeight;
		$('dialogMsg').style.width = "100%";
		$('dialogBody').style.height = $('dialogMsg').style.height;			
	}
	this.button = function(_sId, _sFuc){
		if($(_sId)){
			$(_sId).style.display = '';
			if($(_sId).addEventListener){
				if($(_sId).act){$(_sId).removeEventListener('click', function(){eval($(_sId).act)}, false);}
				$(_sId).act = _sFuc;
				$(_sId).addEventListener('click', function(){eval(_sFuc)}, false);
			}else{
				if($(_sId).act){$(_sId).detachEvent('onclick', function(){eval($(_sId).act)});}
				$(_sId).act = _sFuc;
				$(_sId).attachEvent('onclick', function(){eval(_sFuc)});
			}
		}
	}
	this.shadow = function(){
		
		var oShadow = $('dialogBoxShadow');
		var oDialog = $('dialogBox');
		var iframeDlg=$('completionFrame');
		var oMsg=$('dialogMsg');
		/*
		oShadow['style']['position'] = "absolute";
		oShadow['style']['background']	= "#000";
		oShadow['style']['display']	= "";
		oShadow['style']['opacity']	= "0.2";
		oShadow['style']['filter'] = "alpha(opacity=20)";
		oShadow['style']['top'] = oDialog.offsetTop;
		oShadow['style']['left'] = oDialog.offsetLeft;
		oShadow['style']['width'] = oDialog.offsetWidth;
		oShadow['style']['height'] = oDialog.offsetHeight;
		*/

		iframeDlg['style']['position'] = "absolute";
		iframeDlg['style']['display']	= "";
		iframeDlg['style']['top'] = oDialog.offsetTop;
		iframeDlg['style']['left'] = oDialog.offsetLeft;
		iframeDlg['style']['width'] = oDialog.offsetWidth;
		iframeDlg['style']['height'] = oDialog.offsetHeight;
	}
	this.set = function(_oAttr, _sVal){
		if(_sVal != ''){
			switch(_oAttr){
				case 'title':
					$('dialogBoxTitle').innerHTML = _sVal;
					title = _sVal;
					break;
				case 'content':
					$('dialogMsg').innerHTML = _sVal;
					$('dialogMsg').scrollTop = $('dialogMsg').scrollHeight; 
					break;
				case 'width':
					$('dialogBox')['style']['width'] = _sVal;
					width = _sVal;
					break;
				case 'height':
					$('dialogHeight')['style']['height'] = _sVal;
					height = _sVal;
					break;
				case 'bodyheight':
					//$('dialogbodyBox')['style']['height'] = _sVal;
					$('dialogMsg')['style']['height'] = _sVal+40;
					break;
			}
		}
		//this.center();
		this.shadow();
	}

	this.moveStart = function (event, _sId){
		var oObj = $(_sId);
		oObj.onmousemove = mousemove;
		oObj.onmouseup = mouseup;
		oObj.setCapture ? oObj.setCapture() : function(){};
		oEvent = event || window.event;
		var dragData = {x : oEvent.clientX, y : oEvent.clientY};
		var backData = {x : parseInt(oObj.style.top), y : parseInt(oObj.style.left)};

		function mousemove(_ev){
			var oEvent = _ev || window.event;
			var iLeft = oEvent.clientX - dragData["x"] + parseInt(oObj.style.left);
			var iTop = oEvent.clientY - dragData["y"] + parseInt(oObj.style.top);
			oObj.style.left = iLeft+"px";
			oObj.style.top = iTop+"px";
			$('dialogBoxShadow').style.left = (iLeft + 6)+"px";
			$('dialogBoxShadow').style.top = (iTop + 6)+"px";

			$('completionFrame').style.left = (iLeft)+"px";
			$('completionFrame').style.top = (iTop)+"px";

			dragData = {x: oEvent.clientX, y: oEvent.clientY};
		}
		function mouseup(_ev){
			var oEvent = _ev || window.event;
			oObj.onmousemove = null;
			oObj.onmouseup = null;
			if(oEvent.clientX < 1 || oEvent.clientY < 1 || oEvent.clientX > document.body.clientWidth || oEvent.clientY > document.body.clientHeight){
				oObj.style.left = backData.y+"px";
				oObj.style.top = backData.x+"px";
				$('dialogBoxShadow').style.left = backData.y + 6+"px";
				$('dialogBoxShadow').style.top = backData.x + 6+"px";

				$('completionFrame').style.left = backData.y+"px";
				$('completionFrame').style.top = backData.x+"px";
			}
			oObj.releaseCapture ? oObj.releaseCapture() : function(){};
		}
		function fixE(ig_){
			if (typeof ig_ == "undefined"){
				ig_ = window.event;
			}
			if (typeof ig_.layerX == "undefined"){
				ig_.layerX = ig_.offsetX;
			}
			if (typeof ig_.layerY == "undefined"){
				ig_.layerY = ig_.offsetY;
			}
			if (typeof ig_.which == "undefined"){
					ig_.which = ig_.button;
			}
			return ig_;
		}		
	}
	this.center = function(){
		var _o = $('dialogBox');
		var _b = document.body;
		_o['style']['display'] = '';
		_o['style']['position'] = "absolute";
		//_o['style']['left'] = (_b.clientWidth / 2) - (_o.offsetWidth / 2) + "px";
		//_o['style']['top'] = Math.ceil((_b.clientHeight - _o.offsetHeight)/2)*0.6 + _b.scrollTop + "px";
		_o['style']['left'] = X-300;
		_o['style']['top']  = Y;
	}
	this.center1 = function(){
		var _o = $('dialogBox');
		var _b = document.body;
		_o['style']['display'] = '';
		_o['style']['position'] = "absolute";
		_o['style']['left'] = (_b.clientWidth / 2) - (_o.offsetWidth / 2) + "px";
		_o['style']['top'] = Math.ceil((_b.clientHeight - _o.offsetHeight)/2)*0.6 + _b.scrollTop + "px";
	}
	this.custom = function(title,msg,okEvent,height,x,y){
		X = x;
		Y = y;
		/*if(height>275)
			bodyheight = 275;
		else	
			bodyheight = height; */
		this.init();
		//this._changeSelect(false);
		this.set('title',title);
		this.set('content',msg);
		this.button("dialogBoxClose",okEvent);
		this.center();
		this.show();
	}
	this.custom1 = function(title,msg,width,height,x,y){
		X = x;
		Y = y;
		
		if(height>275)
			height = 275;
		this.init();
		//this._changeSelect(false);
		this.set('title',title);
		this.set('width',width);
		this.set('height',height);
		bodyheight = height;
		this.set('content',msg);
		this.set('bodyheight',height);
		this.button("dialogBoxClose",null);
		this.center();
		this.show();
	}
	this.updateHtml = function(html){
		Element.update('dialogMsg',html);
		this.shadow();
	}
	this._changeSelect = function(flg) {
		if(typeof(flg)=='boolean' && flg==false){
			var _width = 1; var _height = 1;
			var _display = 'none';	var _method = 'doPause';
		}else{
			var _width = 460; var _height = 390;
			var _display = '';	var _method = 'doPlay';
		}
		if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) {
			var _inputs = document.getElementsByTagName("input");
			 for(var i=0;i<_inputs.length;i++){
				var vi = _inputs.item(i);
				if(vi.type.toLowerCase() == "select"){
					vi.style.display = _display;
				}
			 }
			var _selects = document.getElementsByTagName("select");
			 for(var i=0;i<_selects.length;i++){
				var vi = _selects.item(i);
				//if(vi.type.toLowerCase() == "select"){
					vi.style.display = _display;
				//}
			 }

			var _object = document.getElementsByTagName("object");
			for(var i=0;i<_object.length;i++){
				var vo = _object.item(i);
				vo.style.display = _display;
				var _oid = vo.id ? vo.id : vo.name;
				try{
					if(_oid == 'video_player'){
						vo.SetVariable('PlayListener', _method);
					}
				}catch(e){}
			}
		}else{
			var _embed = document.getElementsByTagName("embed");
			for(var i=0;i<_embed.length;i++){
				_embed.item(i).width = _width;
				_embed.item(i).height = _height;
				var _eid = _embed.item(i).id ? _embed.item(i).id : _embed.item(i).name;
				try{
					if(_eid == 'video_player'){_embed.SetVariable('PlayListener', _method);}
				}catch(e){}
			}
		}
	}
}
function winForm1(){
	var title = '';
	var width = 450;
	var height = 150;
	var bodyheight = 210;
	var X;
	var Y;
	//HeaderHTML : "<div id='poptitle' class='community_boxstyle'><div class='community_titlestyle'>
	//<h2>收益计算器</h2></div><div id='popcon' class='community_bgstyle'><p onclick=\"(new Popup()).close()\" style=\"cursor:pointer;\">点击关闭</p></div></div></div>"
	var path = "/Happy8/V2/images/";
	var sClose = '<input type="image" id="dialogBoxClose1" onclick="closeData();" src="'+ path +'close_btn.gif" border="0" align="absmiddle" />';
	//var sBody = '<div id="dialogbodyBox" valign="top"><div id="dialogMsg" style="position:absolute;font-size:12px;overflow:auto;overflow-x:hidden;height:293px;z-index:100;scrollbar-face-color:#D6E3EB;scrollbar-highlight-color:#CCCCCC;scrollbar-3dlight-color:#F5F5F5;scrollbar-shadow-color:#CCCCCC;scrollbar-darkshadow-color:#F5F5F5;scrollbar-track-color:#F0F0F0;scrollbar-arrow-color:#FFFFFF;"></div></div>';
	var sBody = '<div id="dialogMsg1" style="float:left;font-size:12px;overflow:auto;overflow-x:hidden;height:23px;z-index:100;scrollbar-face-color:#D6E3EB;scrollbar-highlight-color:#CCCCCC;scrollbar-3dlight-color:#F5F5F5;scrollbar-shadow-color:#CCCCCC;scrollbar-darkshadow-color:#F5F5F5;scrollbar-track-color:#F0F0F0;scrollbar-arrow-color:#FFFFFF;"></div>';
	//var sBody = '<div id="dialogMsg" style="position:relative;font-size:12px;overflow:auto;overflow-x:hidden;height:293px;z-index:100;scrollbar-face-color:#D6E3EB;scrollbar-highlight-color:#CCCCCC;scrollbar-3dlight-color:#F5F5F5;scrollbar-shadow-color:#CCCCCC;scrollbar-darkshadow-color:#F5F5F5;scrollbar-track-color:#F0F0F0;scrollbar-arrow-color:#FFFFFF;"></div>';
	
	var ifBox='<iframe id="iframeBox1" style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank"></iframe>';

	var sBox = '\
		<table id="dialogBox1" width="' + width + '" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #335D55;display:none;z-index:10;">\
		<tr height="1" bgcolor="#D6E3EB"><td></td></tr>\
		<tr height="25">\
		<td background="' + path + 'table_bg.jpg"  bgcolor="#CFDBD9">\
			<table onselectstart="return false;" style="-moz-user-select:none;" width="100%" border="0" cellpadding="0" cellspacing="0">\
			<tr>\
			<td width="6"></td>\
			<td id="dialogBoxTitle1" onmousedown="new winForm1().moveStart(event, \'dialogBox1\')" style="color:#335D55;cursor:move;font-size:12px;font-weight:bold;"></td>\
			<td id="dialogClose1" width="27" align="right" valign="middle">\
				' + sClose + '\
			</td>\
			</tr>\
			</table>\
		</td>\
		</tr>\
		<tr id="dialogHeight1" style="height:' + height + '">\
			<td id="dialogBody1" bgcolor="#ffffff" valign="top" style="position:relative">' + sBody + '</td>\
		</tr>\
		</table>\
		<div id="dialogBoxShadow1" style="display:none;z-index:2;"></div>\
	';
//if (winfrmname=="") winfrmname="dialogBoxBG"

	var sBG = '\
		<div id="dialogBoxBG1" style="position:absolute;width:100%;height:500px;top:0px;left:0px;opacity:0.5;filter:Alpha(Opacity=50);z-index:;"></div>\
	';

	this.show = function(){
		this.shadow();
		//$('dialogMsg1').scrollTop = $('dialogMsg1').scrollHeight; 
	}
	this.close = function(){
		$('dialogBox1').style.display='none';
		$('dialogBoxBG1').style.display='none';
		$('dialogBoxShadow1').style.display = "none";
		$('completionFrame1').style.display='none';
		$('dialogBody1').innerHTML = sBody;
		this._changeSelect(true);
	}
	
	this.init = function(){
		
		$('dialogCase1') ? $('dialogCase1').parentNode.removeChild($('dialogCase1')) : function(){};
		var oDiv = document.createElement('span');
		oDiv.id = "dialogCase1";
		oDiv.innerHTML = sBG + sBox;
		//oDiv.innerHTML =sBox;

		//生成iframe
		var L=document.createElement("IFRAME");
		L.name="completionFrame1";
		L.id="completionFrame1";
		// 定义iframe的样式，宽高与s相同
		L.width=width;
		L.height=height;
		L.style.border=0;

		// 附加L到s
		oDiv.appendChild(L);
		document.body.appendChild(oDiv);
		$('dialogBoxBG1').style.height = document.body.scrollHeight;
		$('dialogMsg1').style.width = "100%";
		$('dialogBody1').style.height = $('dialogMsg1').style.height;			
	}
	this.button = function(_sId, _sFuc){
		if($(_sId)){
			$(_sId).style.display = '';
			if($(_sId).addEventListener){
				if($(_sId).act){$(_sId).removeEventListener('click', function(){eval($(_sId).act)}, false);}
				$(_sId).act = _sFuc;
				$(_sId).addEventListener('click', function(){eval(_sFuc)}, false);
			}else{
				if($(_sId).act){$(_sId).detachEvent('onclick', function(){eval($(_sId).act)});}
				$(_sId).act = _sFuc;
				$(_sId).attachEvent('onclick', function(){eval(_sFuc)});
			}
		}
	}
	this.shadow = function(){
		
		var oShadow = $('dialogBoxShadow1');
		var oDialog = $('dialogBox1');
		var iframeDlg=$('completionFrame1');
		var oMsg=$('dialogMsg1');
		/*
		oShadow['style']['position'] = "absolute";
		oShadow['style']['background']	= "#000";
		oShadow['style']['display']	= "";
		oShadow['style']['opacity']	= "0.2";
		oShadow['style']['filter'] = "alpha(opacity=20)";
		oShadow['style']['top'] = oDialog.offsetTop;
		oShadow['style']['left'] = oDialog.offsetLeft;
		oShadow['style']['width'] = oDialog.offsetWidth;
		oShadow['style']['height'] = oDialog.offsetHeight;
		*/

		iframeDlg['style']['position'] = "absolute";
		iframeDlg['style']['display']	= "";
		iframeDlg['style']['top'] = oDialog.offsetTop;
		iframeDlg['style']['left'] = oDialog.offsetLeft;
		iframeDlg['style']['width'] = oDialog.offsetWidth;
		iframeDlg['style']['height'] = oDialog.offsetHeight;
	}
	this.set = function(_oAttr, _sVal){
		if(_sVal != ''){
			switch(_oAttr){
				case 'title':
					$('dialogBoxTitle1').innerHTML = _sVal;
					title = _sVal;
					break;
				case 'content':
					$('dialogMsg1').innerHTML = _sVal;
					//$('dialogMsg1').scrollTop = $('dialogMsg1').scrollHeight; 
					break;
				case 'width':
					$('dialogBox1')['style']['width'] = _sVal;
					width = _sVal;
					break;
				case 'height':
					$('dialogHeight1')['style']['height'] = _sVal;
					height = _sVal;
					break;
				case 'bodyheight':
					//$('dialogbodyBox')['style']['height'] = _sVal;
					$('dialogMsg1')['style']['height'] = _sVal+40;
					break;
			}
		}
		//this.center();
		this.shadow();
	}

	this.moveStart = function (event, _sId){
		var oObj = $(_sId);
		oObj.onmousemove = mousemove;
		oObj.onmouseup = mouseup;
		oObj.setCapture ? oObj.setCapture() : function(){};
		oEvent = event || window.event;
		var dragData = {x : oEvent.clientX, y : oEvent.clientY};
		var backData = {x : parseInt(oObj.style.top), y : parseInt(oObj.style.left)};

		function mousemove(_ev){
			var oEvent = _ev || window.event;
			var iLeft = oEvent.clientX - dragData["x"] + parseInt(oObj.style.left);
			var iTop = oEvent.clientY - dragData["y"] + parseInt(oObj.style.top);
			oObj.style.left = iLeft+"px";
			oObj.style.top = iTop+"px";
			$('dialogBoxShadow1').style.left = (iLeft + 6)+"px";
			$('dialogBoxShadow1').style.top = (iTop + 6)+"px";

			$('completionFrame1').style.left = (iLeft)+"px";
			$('completionFrame1').style.top = (iTop)+"px";

			dragData = {x: oEvent.clientX, y: oEvent.clientY};
		}
		function mouseup(_ev){
			var oEvent = _ev || window.event;
			oObj.onmousemove = null;
			oObj.onmouseup = null;
			if(oEvent.clientX < 1 || oEvent.clientY < 1 || oEvent.clientX > document.body.clientWidth || oEvent.clientY > document.body.clientHeight){
				oObj.style.left = backData.y+"px";
				oObj.style.top = backData.x+"px";
				$('dialogBoxShadow1').style.left = backData.y + 6+"px";
				$('dialogBoxShadow1').style.top = backData.x + 6+"px";

				$('completionFrame1').style.left = backData.y+"px";
				$('completionFrame1').style.top = backData.x+"px";
			}
			oObj.releaseCapture ? oObj.releaseCapture() : function(){};
		}
		function fixE(ig_){
			if (typeof ig_ == "undefined"){
				ig_ = window.event;
			}
			if (typeof ig_.layerX == "undefined"){
				ig_.layerX = ig_.offsetX;
			}
			if (typeof ig_.layerY == "undefined"){
				ig_.layerY = ig_.offsetY;
			}
			if (typeof ig_.which == "undefined"){
					ig_.which = ig_.button;
			}
			return ig_;
		}		
	}
	this.center = function(){
		var _o = $('dialogBox1');
		var _b = document.body;
		_o['style']['display'] = '';
		_o['style']['position'] = "absolute";
		//_o['style']['left'] = (_b.clientWidth / 2) - (_o.offsetWidth / 2) + "px";
		//_o['style']['top'] = Math.ceil((_b.clientHeight - _o.offsetHeight)/2)*0.6 + _b.scrollTop + "px";
		_o['style']['left'] = X-300;
		_o['style']['top']  = Y;
	}
	this.center1 = function(){
		var _o = $('dialogBox1');
		var _b = document.body;
		_o['style']['display'] = '';
		_o['style']['position'] = "absolute";
		_o['style']['left'] = (_b.clientWidth / 2) - (_o.offsetWidth / 2) + "px";
		_o['style']['top'] = Math.ceil((_b.clientHeight - _o.offsetHeight)/2)*0.6 + _b.scrollTop + "px";
	}
	this.custom = function(title,msg,okEvent,height,x,y){
		X = x;
		Y = y;
		/*if(height>275)
			bodyheight = 275;
		else	
			bodyheight = height; */
		this.init();
		//this._changeSelect(false);
		this.set('title',title);
		this.set('content',msg);
		this.button("dialogBoxClose1",okEvent);
		this.center();
		this.show();
	}
	this.custom1 = function(title,msg,width,height,x,y){
		X = x;
		Y = y;
		
		if(height>275)
			height = 275;
		this.init();
		//this._changeSelect(false);
		this.set('title',title);
		this.set('width',width);
		this.set('height',height);
		bodyheight = height;
		this.set('content',msg);
		this.set('bodyheight',height);
		this.button("dialogBoxClose1",null);
		this.center();
		this.show();
	}
	this.updateHtml = function(html){
		Element.update('dialogMsg1',html);
		this.shadow();
	}
	this._changeSelect = function(flg) {
		if(typeof(flg)=='boolean' && flg==false){
			var _width = 1; var _height = 1;
			var _display = 'none';	var _method = 'doPause';
		}else{
			var _width = 460; var _height = 390;
			var _display = '';	var _method = 'doPlay';
		}
		if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) {
			var _inputs = document.getElementsByTagName("input");
			 for(var i=0;i<_inputs.length;i++){
				var vi = _inputs.item(i);
				if(vi.type.toLowerCase() == "select"){
					vi.style.display = _display;
				}
			 }
			var _selects = document.getElementsByTagName("select");
			 for(var i=0;i<_selects.length;i++){
				var vi = _selects.item(i);
				//if(vi.type.toLowerCase() == "select"){
					vi.style.display = _display;
				//}
			 }

			var _object = document.getElementsByTagName("object");
			for(var i=0;i<_object.length;i++){
				var vo = _object.item(i);
				vo.style.display = _display;
				var _oid = vo.id ? vo.id : vo.name;
				try{
					if(_oid == 'video_player'){
						vo.SetVariable('PlayListener', _method);
					}
				}catch(e){}
			}
		}else{
			var _embed = document.getElementsByTagName("embed");
			for(var i=0;i<_embed.length;i++){
				_embed.item(i).width = _width;
				_embed.item(i).height = _height;
				var _eid = _embed.item(i).id ? _embed.item(i).id : _embed.item(i).name;
				try{
					if(_eid == 'video_player'){_embed.SetVariable('PlayListener', _method);}
				}catch(e){}
			}
		}
	}
}