var msgWindow;
function showProgress()
{
	var wwidth = 200;
	var wheight = 50;
	
	vtop = (screen.height/2) - (wheight/2);
	vleft = (screen.width/2) - (wwidth/2);
	
	msgWindow=window.open("","progress","width=" + wwidth + ",height=" + wheight + ",top=" + vtop + ",left=" + vleft);
	msgWindow.document.write(progressHTML());
}

function progressHTML()
{
	var HTML = '';
	HTML += "<html><HEAD><TITLE>Status<\/TITLE><\/HEAD>";
	HTML += "<body topmargin='0' leftmargin='0'>";
	HTML += "<table width='100%' height='100%'><tr><td valign='middle' align='center'>";
	HTML += "<img src='" + GetPath() + "/images/progress.gif' border='0'>&nbsp;<b>Loading...</b></td></tr></table></body></html>";
	
	return HTML;
}
function hideProgress()
{

	var wwidth = 200;
	var wheight = 50;
		
	vtop = (screen.height/2) - (wheight/2);
	vleft = (screen.width/2) - (wwidth/2);				
	if(msgWindow == null)
	{
		msgWindow = window.open("","progress","width=" + wwidth + ",height=" + wheight + ",top=" + vtop + ",left=" + vleft);
	}
	msgWindow.close();
}


function showProcessing()
{
	var wwidth = 200;
	var wheight = 50;
	
	vtop = (screen.height/2) - (wheight/2);
	vleft = (screen.width/2) - (wwidth/2);
	
	msgWindow=window.open("","progress","width=" + wwidth + ",height=" + wheight + ",top=" + vtop + ",left=" + vleft);
	msgWindow.document.write(processingHTML());
}

function processingHTML()
{
	var HTML = '';
	HTML += "<html><HEAD><TITLE>Status<\/TITLE><\/HEAD>";
	HTML += "<body topmargin='0' leftmargin='0'>";
	HTML += "<table width='100%' height='100%'><tr><td valign='middle' align='center'>";
	HTML += "<img src='" + GetPath() + "/images/progress.gif' border='0'>&nbsp;<b>Processing...</b></td></tr></table></body></html>";
	
	return HTML;
}

function hideProcessing()
{

	var wwidth = 200;
	var wheight = 50;
		
	vtop = (screen.height/2) - (wheight/2);
	vleft = (screen.width/2) - (wwidth/2);				
	if(msgWindow == null)
	{
		msgWindow = window.open("","progress","width=" + wwidth + ",height=" + wheight + ",top=" + vtop + ",left=" + vleft);
	}
	msgWindow.close();
}

