<!-- Help Script in the Header to show PopUps - Jason Banyai 10/03 -->
<!-- Help Toggle checkbox MUST be in a form named "Form1" -->
<!-- Changed it to two functions to reduce the number of parameters (was three) -->
<!-- Added corrections to X and Y positions but must adjust the Function Calls -->

function ShowPopUp(PopDiv,HelpToggle) {
//function ShowPopUp(PopDiv,nXPlus,nYPlus,HelpToggle) {
	var XPos = window.event.x	// X coord of Mouse
	var YPos = window.event.y	// y coord of Mouse
	var nXPlus = 0			// Remove this if adding X Corrections
	var nYPlus = 0			// Remove this if adding Y Corrections
	var nXPos = window.event.x
	var nYPos = window.event.y

	if (HelpToggle == 'Toggle'){
		if (!document.Form1.ShowHelp.checked) {
			PopDiv = help_ToggleOff;
		}
	}
	if (document.Form1.ShowHelp.checked || HelpToggle == 'Toggle') {
		PopDiv.style.visibility = 'visible';	// Set Visibility On
		PopDiv.style.left = nXPos + 5 + nXPlus;	// Show PopUp near mouse x location
		PopDiv.style.top = nYPos + 10 + nYPlus;	// Show PopUp near mouse y location
	}
}

function HidePopUp(PopDiv,HelpToggle) {
	if (HelpToggle == 'Toggle'){
		if (!document.Form1.ShowHelp.checked) {
			PopDiv = help_ToggleOff;
		}
	}
	PopDiv.style.visibility = 'hidden';	// Set Visibility Off
}
