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;
	
	
	
var emailFormat = /^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;

function validate()
{
dets=true;
 

  if(document.enquiry.name.value=="")
{
  alert("Please enter your Name.");
  dets=false;
 }

 else
 if(document.enquiry.email.value=="")
  {
   alert("Please enter your Email.");
 dets=false;
 
  } else
  if(document.enquiry.email.value.search(emailFormat)==-1)
{
          alert("The email you entered is not valid.");
		  dets=false;
}
 



 return dets;


}

