function openProgressWindow() {
	var winl = (screen.Width - 300) / 2;
	var wint = (screen.height - 150) / 2;
	theFeats = "height=90,width=300,top="+wint+",left="+winl+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	var w = window.open ("../public/ProgressSignal.aspx", "progresswin", theFeats);
}

function closeProgressWindow() {
	var winl = (screen.Width - 300) / 2;
	var wint = (screen.height - 150) / 2;
	theFeats = "height=90,width=300,top="+wint+",left="+winl+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	var w = window.open ("../public/ProgressSignal.asp", "progresswin", theFeats);
	w.close();
}

function showResultWindow(docuid) {
	var winl = (screen.Width - 300) / 2;
	var wint = (screen.height - 150) / 2;
	theFeats = "height=200,width=300,top="+wint+",left="+winl+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	var w = window.open ("../public/ProgressSignal.aspx", "progresswin", theFeats);
	w.close();
	var w = window.open ("../public/ProgressSignal.aspx?id="+docuid, "progresswin", theFeats);
}

function dialogWindow(url, winWidth, winHeight) {
	var leftPos = (screen.width - 10 - winWidth) / 2;
	var topPos = (screen.height - 60 - winHeight) / 2;
	theFeats = "height="+winHeight+",width="+winWidth+",top="+topPos+",left="+leftPos+",fullscreen=0,location=no,menubar=no,resizable=0,scrollbars=no,status=no,toolbar=no";
	var w = window.open (url, "dialogWindow", theFeats);
}

function startDocuIt(sUrl) { 
	if(navigator.appName=="Netscape") { 
		//subtract 10 for the window left & right border
		//var TW=screen.availWidth;  //available in Netscape 4+
		//subtract 30 for the '95/NT menu bar 
		//var TH=screen.availHeight; //available in Netscape 4+
		//subtract 10 for the window left & right border
		var TW=screen.width-10; 
		//subtract 30 for the '95/NT menu bar 
		var TH=screen.height-60; 
		newBwin=window.open(sUrl, "myDocuIt", "width="+TW+",height="+TH+",top=0,left=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes");
	} 
	else { 
		//subtract 10 for the window left & right border
		var TW=screen.width-10; 
		//subtract 30 for the '95/NT menu bar 
		var TH=screen.height-60; 
		newBwin=window.open(sUrl, "myDocuIt", "width="+TW+",height="+TH+",top=0,left=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes");
	} 
}

function openModalWindow(url, arg, width, height)
{
	var leftPos = (screen.width - 10 - width) / 2;
	var topPos = (screen.height - 60 - height) / 2;
	var feast ="";
	
	if (typeof window.showModalDialog != 'undefined')
	{
		feast = "dialogHeight:"+height+"px;dialogWidth:"+width+"px;"+"status:no;";
		window.showModalDialog("../Public/ShowModalPage.aspx?url="+url, arg, feast);
	}
	else
	{
		feast = "height="+height+",width="+width+",top="+topPos+",left="+leftPos+",fullscreen=0,location=no,menubar=no,resizable=0,scrollbars=no,status=no,toolbar=no,modal=1";
		var w = window.open("../Public/ShowModalPage.aspx?url="+url, arg, feast);
	}
}