<!--

// basic script to create popup window
function openWindow(url,width,height,name) {
	var myWin = null

	// if the window has not already been created, then create it now
	if(!myWin || myWin.closed) {
		myWin = window.open(url, name, "width=" + width + ",height=" + height + ",status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no");
	// otherwise, just turn focus to the popup window
	} else {
		myWin.focus(wname);
	}
}


// LOGIN/REGISTRATION SCRIPTS
// function to verify that they have entered something for their login information
function verifyLogin() {
	// check to see if the user entered their user name
	if (document.login.user_name.value == "" ) {
		alert("Please provide your login ID.");
		return false;
		document.login.user_name.focus;
	} 
	// see if they entered a password
	else if (document.login.epassword.value == "" ) {
		alert("Please provide your password.");
		return false;
		document.login.epassword.focus;
	}
	// if both happened, let them attempt to login
	return true;
}


// function to verify they want to reset their password
function ok2ResetPwd() {
	// set the alert message
	var msg = "Are you sure you want to reset your password?" ;
	if (confirm(msg)) {
		// if they say "ok" then redirect them to the screen that e-mails them their password
		document.location.replace('/scc/dbMaintenance/emailLostPwd.asp');
		return true;
	} else return false;
}

function showIt(id) {
	if (document.getElementById) {
		obj = document.getElementById([id]);
		obj.style.visibility="visible";
	}
	else if (document.layers && document.layers[id]) {
		document.layers[id].visibility = 'visible';
	}
	else {
		obj = document.all[id];
		obj.style.visibility = "visible"
	}
}
					  
function hideIt(id) {
	if (document.getElementById) {
		obj = document.getElementById([id]);
		obj.style.visibility = "hidden";
	}
	else if (document.layers && document.layers[id]) {
		document.layers[id].visibility = 'hidden';
	}
	else {
		obj = document.all[id];
		obj.style.visibility = "hidden"
	}
}

// -->

