function showDialog(txt,title,width,height){
	var eSrc=(document.all)?window.event.srcElement:arguments[1];
	var shield = document.createElement("DIV");
	shield.id = "shield";
	shield.style.position = "absolute";
	shield.style.left = "0px";
	shield.style.top = "0px";
	shield.style.height=document.body.scrollHeight;
	shield.style.width=document.body.scrollWidth;
	shield.style.background = "#333";
	shield.style.textAlign = "center";
	shield.style.zIndex = "10000";
	shield.style.filter = "alpha(opacity=50)";
	shield.style.opacity = 0;
	
	var alertFram = document.createElement("DIV");
	alertFram.id="alertFram";
	alertFram.style.position = "absolute";
	alertFram
	if(width==null&&height==null){
		alertFram.style.width = "750px";
		alertFram.style.height = "500px";
		//alertFram.style.left=(document.body.clientWidth-750)/2;
		//alertFram.style.top=(document.body.clientHeight-500)/2;
		
		alertFram.style.left=(document.body.scrollWidth+document.body.scrollTop-750)/2;
		alertFram.style.top=(document.body.scrollHeight+document.body.scrollLeft-500)/2;
		
	}else{
		alertFram.style.width = width;
		alertFram.style.height=height;
		//alertFram.style.left=(document.body.clientWidth-width)/2;
		//alertFram.style.top=(document.body.clientHeight-height)/2;
		
		alertFram.style.left=(document.body.scrollWidth+document.body.scrollTop-width)/2;
		alertFram.style.top=20;
	}
		
	alertFram.style.background = "#ccc";
	alertFram.style.textAlign = "center";
	alertFram.style.lineHeight = "150px";
	alertFram.style.zIndex = "10001";
	
	
		var s=document.createElement("DIV");

	// 设置层的相关属性
	s.style.visibility="";
	
	// 定义层的样式
	s.style.position="absolute";
	s.style.left=alertFram.style.left;
	s.style.top=alertFram.style.top;
	s.style.width=width-5;
	s.style.height=height-5;
	
	// 生成iframe
	var L=document.createElement("IFRAME");
	L.name="completionFrame";
	
	// 定义iframe的样式，宽高与s相同
	L.width=s.style.width;
	L.height=s.style.height;
	
	// 附加L到s
	s.appendChild(L);


	strHtml="<div id=\"loading\" style=\"left:40%; top:40%; position:absolute;z-index:10005;\" align=\"center\">"
	strHtml+="<table bgColor=\"#FFFFFF\" width=\"200\" height=\"38\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
	strHtml+="<tr><td><div align=\"center\"><img src=\"images/loading.gif\" alt=\"loading\"></div></td>"
	strHtml+="<td style=\"color:#000000\">正在处理,请稍候...</td></tr></table></div>"

	strHtml+="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">";
	strHtml+="<tr><td  style=\"background:#D6E0EF;text-align:left;padding-left:20px;font-size:12px;height:25px;line-height:25px;border:1px solid #CCCCCC;\">";
	strHtml+="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">";
	strHtml+="<tr><td width=\"90%\" style=\"font-weight:bold;\">"+title+"</td><td width=\"10%\" align=\"center\">";
	//strHtml+="<span id=\"do_OK\" onclick=\"doOk()\" style=\"cursor:hand;\">关 闭</span>";
	strHtml+="<a href=\"javascript:doOk()\">关 闭</span>";
	strHtml+="</td></tr></table></td></tr>";
	strHtml+="<tr><td valign=\"top\" height=\"100%\" style=\"background:#fff;text-align:center;font-size:12px;border-left:1px solid #CCCCCC;border-right:1px solid #CCCCCC;\"><div id=\"center\"></div></td></tr>";
	strHtml+="</table>";
	
	
	alertFram.innerHTML = strHtml;
	document.body.appendChild(s);
	document.body.appendChild(alertFram);
	document.body.appendChild(shield);
	
	this.setOpacity = function(obj,opacity){
		if(opacity>=1)opacity=opacity/100;
		try{ obj.style.opacity=opacity; }catch(e){}
			try{ 
			if(obj.filters.length>0&&obj.filters("alpha")){
			obj.filters("alpha").opacity=opacity*100;
			}else{
			obj.style.filter="alpha(opacity=\""+(opacity*100)+"\")";
			}
		}catch(e){}
	}
	
	
	var c = 0;
	if(!document.uniqueID){
		shield.style.opacity = 0;
		this.doAlpha = function(){
			//if (++c > 20){clearInterval(ad);return 0;}
			//setOpacity(shield,c);
			setOpacity(shield,0);
		}
		var ad = setInterval("doAlpha()",1);
	}
	
	
	this.doOk = function(){

		document.body.removeChild(s);
		document.body.removeChild(alertFram);
		document.body.removeChild(shield);
		//eSrc.focus();
		document.body.onselectstart = function(){return true;}
		document.body.oncontextmenu = function(){return true;}
		
		var codeDetail=getElement("viewWzxw");
		if(codeDetail!=null && codeDetail.style.display==""){
			closeCodeDetail();
		}	
	}
	this.doCanCel = function(){
		document.body.removeChild(s);
		document.body.removeChild(alertFram);
		document.body.removeChild(shield);
		//eSrc.focus();
		document.body.onselectstart = function(){return true;}
		document.body.oncontextmenu = function(){return true;}
	
	}
	//document.getElementById("do_OK").focus();
	//eSrc.blur();
	//document.body.onselectstart = function(){return false;}
	//document.body.oncontextmenu = function(){return false;}
	return true;
}
