
// Function to open windows
function OpenWindow(Url,Width,Height)
{
	var l_Width=(screen.availWidth * .80);
	if(Width!=null)
		l_Width=Width;
	var l_Height=(screen.availHeight * .80);
	if(Height!=null)
		l_Height=Height;
	var l_Left=(screen.availWidth-l_Width)*0.5;
	var l_Top=(screen.availHeight-l_Height)*0.5;
	window.open(Url,"_blank",
						"left="+l_Left+",top="+l_Top+","+
						"height=" + l_Height + ",width=" + l_Width + "," +
						"scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=1");
}

function OpenDialog(Url,QueryString,DialogArguments,Width,Height)
{
	var l_Width=Width;
	if(l_Width==null)
	{
		l_Width=600;
	}
	var l_Height=Height;
	if(l_Height==null)
	{
		l_Height=500;
	}
	
	var l_DialogUrl="DialogOuterFrame.aspx?InnerUrl="+Url;
	if( (QueryString!=null)&&(QueryString!="") )
	{
		l_DialogUrl+="&"+QueryString;
	}
	
//alert("OpenDialog Url="+l_DialogUrl);
		
	var l_DialogResults=showModalDialog(l_DialogUrl,DialogArguments,
				"dialogHeight:"+l_Height+"px ; dialogWidth:"+l_Width+"px ; resizable:yes; center:yes; status:no; help:no; scroll:no;");
//	window.open(l_DialogUrl,"_blank");
//	var l_DialogResults=null;

	return l_DialogResults;
}

function DialogResults()
{
	this.m_DialogResult="";
	this.m_DialogMessage="";	// 21/09/05, NJP, V2.00e
}
