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 start(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; 
	//	var TW = screen.width;
		//subtract 30 for the '95/NT menu bar 
		var TH=screen.height-60; 
	//	var TH = screen.height;
		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; 
	//	var TW = screen.availWidth;
		//subtract 30 for the '95/NT menu bar 
		var TH=screen.height-60; 
	//	var TH = screen.availHeight;
		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,fullscreen=no");
	//	newBwin.moveTo(0,0);
	//	newBwin.outerWidth = screen.availWidth;
	//	newBwin.outerHeight = screen.availHeight;
	} 
}

function openModalWindow(url, arg, width, height)
{
	var feast ="";
	if ((width != null) && (height != null))
	{
		feast = "dialogHeight:"+height+"px;dialogWidth:"+width+"px;"+"status:no;";
	}
	window.showModalDialog("..\\Shared\\ShowModalPage.aspx?url="+url, arg, feast);
}


//Open ModalDialog and Get the return value
function showModalWindow(url, title, arg, width, height)
{
	var feast ="";
	if ((width != null) && (height != null))
	{
		feast = "dialogHeight:"+height+"px;dialogWidth:"+width+"px;"+"status:no;scrollbars:yes;";
	}
	var o = window.showModalDialog("..\\Shared\\ShowModalPage.aspx?url="+url+"&title="+title, arg, feast);
	
	return o;
}