// <!-- Hide Javascript from older browsers
//	Function to pop-up a window centered on screen
//	Input:	urlLink - URL (relative or absolute) of page
//  			to be displayed in pop-up window. (required)
//			winName - name of window for targeting (required)
//			winWidth - width of new window (pass 0 for default)
//			winHeight - height of new window (pass 0 for default)
function makeWindow(urlLink, winName, winWidth, winHeight)
{
	var params;

	if ((navigator.appName.indexOf("Microsoft") != -1) || (2<(navigator.appVersion + "3").charAt(0)))
	{
		// Disable new window toolbars and resizing, keep scrollbars
		params = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";

		// Set window size and center window on screen
		if ((winWidth == '0') || (winHeight == '0'))
		{
			params += ";";
		}
		else
		{
			params += ",width=" + winWidth + ",height=" + winHeight + ",";
			winLeft = (screen.width - winWidth) / 2;
			winTop = (screen.height - winHeight) / 2;
			params += "top=" + winTop + ",left=" + winLeft + ";";
		}

		// Open new window and bring it on top of any other windows
		newWin = window.open(urlLink, winName, params);
		newWin.focus();
	}
}

//	Function to refresh a window with specified URL
function refreshWin(flgWin, strUrl)
{
	var parentWin;

	if (flgWin == 0)
	{
		// Target window that opened this one
		parentWin = opener
		parentWin.window.location = strUrl;
		parentWin.window.focus();
	}
	else
	{
		// Target this window
		window.location = strUrl;
	}
}

// Disables form subit after one click
function KillBtn(objElement)
{
	objElement.disabled = true;
	objElement.value += "...";
	return true;
}
// End hide -->