<!-- Invisible to Non-JavaScript Browers

// Copyrighted 2001-2002 By Boulevard Group, LLC.  All Rights Reserved

var DebugWindow;
var AppWindow;

function PMISWin(URL, DNAME)
{
var winParms = new String("");

var calcWidth = screen.width - (.15 * screen.width);
var calcHeight = screen.height - (.15 * screen.height);

	// Format WinParms
	
	winParms += "height=" + calcHeight.toString() + ",";
	winParms += "width=" + calcWidth.toString() + ",";
	winParms += "location=no,";
	winParms += "menubar=no,";
	winParms += "resizable=yes,";
	winParms += "scrollbars=yes,";
	winParms += "titlebar=no,";
	winParms += "dependent=yes,";
	winParms += "directories=no,";
	winParms += "toolbar=no";
	
	// Pop Window
	
	var PMISWindow = window.open('', DNAME, winParms);

	PMISWindow.location.href = URL;
	
	//PMISWindow.document.close();
	PMISWindow.focus();

} // End of PMISWin

function initWin(LinkTo) {
	
	// Full Screen
	
	window.moveTo(0, 0);
	window.resizeTo(window.screen.availWidth - (.10 * window.screen.availWidth), window.screen.availHeight - (.10 * window.screen.availHeight));
	
	if (LinkTo != "") {
		window.location.href = LinkTo
	}
	
	// Show SESSION Variables
	
	//ShowSV();
	
}  // End of initWin

function ShowSV(AppID)
{
	// Open DisplaySV.asp Window
	
	DebugWindow = window.open("PMISDisplaySV.asp", AppID, "directories=no,height=300,width=450,resizeable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no"); 

	return false;
	
} // End of ShowSV

function popAppWin(appURL, appCaption)
{

	// Open Application Window
	
	AppWindow = window.open(appURL, appCaption, "directories=no,height=500,width=650,resizeable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes"); 

	//return false;
	
} // End of popAppWin

/* Save as Sample Select
function selectStatus() {

	var bIndx = document.ProjectSelect.StatusCode.selectedIndex; // Selected Index
	
	var holdstatuscode = document.ProjectSelect.StatusCode.options[bIndx].value; 
	var holdstatusdescription = document.ProjectSelect.StatusCode.options[bIndx].text; 
	
	document.ProjectSelect.holdstatuscode.value = holdstatuscode;
	document.ProjectSelect.holdstatusdescription.value = holdstatusdescription;

}  // End of selectStatus
End of Sample */

function getSelectedButton(buttonGroup) 
{
	for (var i = 0; i < buttonGroup.length; i++) {
		if (buttonGroup[i].checked) {
			return i;
		}
	}
	return -1;		

} // End of getSelectedButton

function getGroupValue(form, buttonGroup)  
{
var i;
var selectedOption;

	// Get Option
	
	i = getSelectedButton(buttonGroup);
	if (i < 0) {
		//alert("System Error: Please Call Support.  Thanks.");
		selectedOption = "";
	} else {
		selectedOption = form.buttonGroup[i].value;
	}
	
	// Outa Here
	
	return selectedOption;
	
} // End of getGroupValue

// Misc

function autoselect(a,b,c,d) {
	document.ProjectSelect[a].selectedIndex = b;
	document.ProjectSelect[c].selectedIndex = d;
}

function showalert(msg)
{
	alert(msg);
	
} // End of showalert

// Make Visible -->

