function WinOpen(){	//弹出窗口构造函数
	this.Open1 = function(sUrl, Title, Width, Height){	//弹出焦点模态窗.
		if(!sUrl || !Title || !Width || !Height){
			return;
		}else{
			window.link = sUrl;		window.titl = Title;	window.Mode = true;
			window.showModalDialog('./WinOpenHtm.htm', window, "center:1; help:0; resizable:0; status:0; scroll:0; dialogWidth:"+ Width +"px; dialogHeight:"+ Height +"px");
		}
	}
	this.Open2 = function(sUrl, Title, Width, Height){	//弹出无焦点模态窗.
		if(!sUrl || !Title || !Width || !Height){
			return;
		}else{
			window.link = sUrl;		window.titl = Title;	window.Mode = true;
			window.showModelessDialog('./WinOpenHtm.htm', window, "center:1; help:0; resizable:0; status:0; scroll:0; dialogWidth:"+ Width +"px; dialogHeight:"+ Height +"px");
		}
	}
	this.Open3 = function(sUrl, Title, Width, Height, Thetop, Theleft){	//弹出window.open窗.
		if(!sUrl || !Title || !Width || !Height){
			return;
		}else{
			window.link = sUrl;		window.titl = Title;
			window.Widt = Width;	window.Heig = Height;
			window.Ttop = (!Thetop) ? (screen.availHeight-Height)/2 : Thetop;
			window.Tlef = (!Theleft) ? (screen.availWidth-Width)/2 : Theleft;
			window.showModalDialog('./WinOpenHtm.htm', window, "center:1; help:0; resizable:0; status:0; scroll:0; dialogWidth:0px; dialogHeight:0px");
		}
	}
}//End WinOpen
var WinOpen = new WinOpen();