function startList() {
	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", "");
				}
			}
		}
	}
}
function validateMailingList() {
     var ok = true;
	 var msg = '';
	 
	 if (document.getElementById('_1').value == 'Your Name' || document.getElementById('_1').value == '') {
	 	ok = false;
		msg += "Please enter your Name.\n\n";
	 }
	 if (document.getElementById('_2').value == 'Your Email' || document.getElementById('_2').value == '' || !checkemail(document.getElementById('_2').value)) {
	 	ok = false;
		msg += "Please enter a valid Email Address.\n\n";
	 }
	 if (document.getElementById('_3').value == 'Phone No.' || document.getElementById('_3').value == '') {
	 	ok = false;
		msg += "Please enter your Phone No.\n\n";
	 }
	 if (document.getElementById('_4').value == 'Town / County' || document.getElementById('_4').value == '') {
	 	ok = false;
		msg += "Please enter your Town / County.\n\n";
	 }
	
	if (!ok) 
		alert(msg);
		
	return ok;
}

function checkemail(str){
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	var ok = true;
	
	if (!filter.test(str))
		ok=false;
	
	return ok;
}

function showDate() {
	var datediv = document.getElementById('datediv');
	var thedate = new Date();
	thedate=dateFormat(thedate, "fullDate");
	if(datediv!=null) datediv.innerHTML = thedate;
}
addEvent(window, 'load', showDate);