//                       Javascript .ASP file Popup Help Window Function
//
// Include the following code to reference this file in the <head> section of your HTML page:
// 	<SCRIPT SRC="includes/popuphelp.js" Language="javascript" Type="text/javascript"></script>
// ... make sure the script is called before your onclick routine(s), and make sure this 
// script is stored in the "includes" folder of the site.

	function popUpHelp(sFileName, sPageName, wid, hgt)
		{
		var oFile = new String(sFileName);
		if (oFile != "" && sPageName != '')
			{
			var popupWindow = window.open(oFile + '?content=' + sPageName,"","width=" + wid + ",height=" + hgt + ",left=50,top=20,scrollbars");
			popupWindow.focus();
			}
		else
			{
			if (oFile == '')
				{
				alert("There was no filename passed to this function.");
				}
			else
				{
				alert("No page identifier was passed to this function.");
				}
			}
		return false;
		}

	function confirmLogout(appName)
		{
		if(confirm('Are you sure you want to leave ' + appName + '?') == true)
			{
			document.location = 'xt_logout.asp';
			return false;
			}
		return false;
		}