
// Function to control navigation mouseovers
	
	function selCurrent(target,state) {
	
		myTarget = document.getElementById(target).parentElement;
		
		if(state == "on")
		{
			curState = myTarget.style.backgroundColor;
			myTarget.style.backgroundColor = navColor_highlight;
			
		}
		else
		{
			myTarget.style.backgroundColor = curState;
			
		}
	
	}

	function enableButton(which,status)
	{
		if(status == 'enable')
		{
			document.forms["registrationForm"].elements["next"].disabled = false;
		}
		else
		{
			document.forms["registrationForm"].elements["next"].disabled = true;
		}
	}
	
	function confirmCancelRegistration()
	{
		var answer = confirm("Are you sure you want to cancel the registration process?\n\nSelect 'Ok' to quit, or 'Cancel' to return.");
		if (answer) 	window.location.href = "./index.php/register?action=CancelRegistration";
	}
			
	function loadNewWindow(URL, wHeight, wWidth) {
	    var myWidth       = (window.screen.width/2) - wWidth/2;
	    var myHeight      = (window.screen.height/2) - wHeight/2;
	    var windowName    = "remote";
	    var windowProps   = "toolbar=no,menubar=yes,scrollbars=yes,height=" + wHeight + ",width=" + wWidth + ",resizable=yes,left=" + myWidth + ",top=" + myHeight + ",screenX=" + myWidth + ",screenY=" + myHeight;
	    var popupWindow   = window.open(URL,windowName,windowProps);
	    popupWindow.focus();
	}
			