startList = function() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

function checkUncheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
			theForm[z].checked = theElement.checked;
		}
	}
}

function confirmDelete(){
	if (confirm('Are you sure you want to delete this item?') == false){ 
		return false;
	} else {
		return true;
	}
}

function toggleCheckBox(elm) {
	if (elm.checked){ elm.checked = false; } else { elm.checked = true; }
}

function hideElm(elm) {
	elm.style.display = "none";
	elm.style.visibility = "hidden";
}

function decryptEmail(email) {
	// Creates a new array in the form of variable decryptedEmail
	var decryptedEmail = new Array();
	email.split("");
	
	for (i = email.length - 1; i > - 1; i--) {
		decryptedEmail += [email[i]];
	}
	
	document.write(decryptedEmail.replace(/\|/g, ""));
}