function ModeDialog() {
	var title = "";
	var width = 522;
	var height = 134;
	var coverWidth = document.body.clientWidth;
	var coverHeight = document.body.scrollHeight;
	if (coverHeight < document.body.clientHeight) coverHeight = document.body.clientHeight;
	var sBG = '\
		<div id="dialogBoxBG" style="background-color:#222222;position:absolute;top:0px;left:0px;width:'+coverWidth+';height:' +coverHeight+ ';filter:alpha(opacity=30)"></div>\
	';
	this.dialogBody = null;
	
	function $(_sId) { return document.getElementById(_sId);}
	//ÏÔÊ¾
	this.show = function() {
		this.init();
		this.middle("dialogBox");
		this.shadow();
		this.list();
	}
	
	this.reset = function() {
		$("dialogBox").style.display = "none";
		$("dialogBoxBG").style.display = "none";
		$("dialogBoxShadow").style.display = "none";
		this.list();
	}
	
	this.init = function() {
		$("dialogCase")? $("dialogCase").parentNode.removeChild($("dialogCase")) : function(){};
		var oDiv = document.createElement("span");
		oDiv.id = "dialogCase";
		oDiv.innerHTML = sBG + this.dialogBody;
		document.body.appendChild(oDiv);
		$("dialogBoxBG").style.height = document.body.scrollHeight;
	}
	
	this.shadow = function () {
		var oShadow = $("dialogBoxShadow");
		var oDialog = $("dialogBox");
		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 + 6;
		oShadow['style']['left'] = oDialog.offsetLeft + 6;
		oShadow['style']['width'] = oDialog.offsetWidth;
		oShadow['style']['height'] = oDialog.offsetHeight;
	}
	
	this.open = function(){
		this.show();
	}
	
	this.middle = function(_sId) {
		var sClientWidth = parent ? parent.document.body.clientWidth : document.body.clientWidth;
		var sClientHeight = parent ? parent.document.body.clientHeight : document.body.clientHeight;
		var sScrollTop = parent? parent.document.body.scrollTop : document.body.scrollTop;
		$(_sId)['style']['display'] = "";
		$(_sId)['style']['position']= "absolute";
 
        $(_sId)['style']['left'] = (document.body.clientWidth / 2) - ($(_sId).offsetWidth /2);

		var w3c=(document.getElementById)? true: false;
		var agt=navigator.userAgent.toLowerCase();
		var ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1));
 		var scrTop =  ie ? IeTrueBody().scrollTop : window.pageYOffset;

		$(_sId)['style']['top'] =(150 + scrTop);

	}
	
	this.list = function() {
		var oLists = document.getElementsByTagName("SELECT");
		for (var i=0;i<oLists.length; i++) {
			oLists[i]['style']['display'] = (oLists[i]['style']['display'] == "") ? "none" : "";
		}
	}
}
function IeTrueBody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}