// IEWin only allows the :hover pseudo-class to be applied to a link — so the li:hover that makes the sub-menus appear means nothing to IE.
// A tiny jot of JavaScript is required to kick IE back into action.

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navUL");
		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 validateMailingList()	{
	var name		= document.mailingList.name;
	var address 		= document.mailingList.address;
	var phoneCell = document.mailingList.phoneCell;
	var phoneDaytime 	= document.mailingList.phoneDaytime;
	var email		= document.mailingList.email;
	var dob 		= document.mailingList.dob;
	
	// Name Checker
	if (name.value == 0 )
	{
		alert("Please enter your name.");
		name.focus();
		return false;
	}

	// Address Checker
	if (address.value == 0 )
	{
		alert("Please enter your address.");
		address.focus();
		return false;
	}

	// dob Checker
	if (dob.value == 0 )
	{
		alert("Please enter your date of birth for promotional discounts and programs.");
		dob.focus();
		return false;
	}
		
	// email checker
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email.value))
	{
		return true;
	}
	else
	{
		alert("Invalid e-mail Address! Please re-enter.")
		email.focus();
		return false;
	}

return true;
}