
// CSS Top Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
// Adopted from SuckerFish menu
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// Please keep this credit intact

startMenu = function() {
if (document.all&&document.getElementById) {
cssmenu = document.getElementById("csstopmenu");
for (i=0; i<cssmenu.childNodes.length; i++) {
node = cssmenu.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function(){                  
this.className=this.className.replace(" over", "")
}
}
}
}
}

if (window.attachEvent)
window.attachEvent("onload", startMenu)
else
window.onload=startMenu;




function validate(thisForm){		
	if (thisForm.First_Name.value == "" ){
    window.alert("Please enter your first name!");
		thisForm.First_Name.focus();
    return false;
  }	
	if (thisForm.Last_Name.value == "" ){
    window.alert("Please enter your last name!");
		thisForm.Last_Name.focus();
    return false;
  }	
	if (thisForm.Company.value == "" ){
    window.alert("Please enter your company name!");
		thisForm.Company.focus();
    return false;
  }
	

	if (thisForm.Country[thisForm.Country.selectedIndex].value == "" ){
    window.alert("Please select your Country!");
		thisForm.Country.focus();
    return false;
  }	

	
	if (thisForm.Email.value == "" ){
    window.alert("Please enter an email address!");
		thisForm.Email.focus();
    return false;
  }
	
	
	if (thisForm.Email.value != "" ){
   var emailexp = /.*\@.*\..*/;
    if (!emailexp.test(thisForm.Email.value)) {
      window.alert("Invalid email address! Please enter your correct email address!");
			thisForm.Email.focus();
      return false;
    }   
  }
		
	if (thisForm.FindUs[thisForm.FindUs.selectedIndex].value == "")
	{
		window.alert("Please enter how you found us!");
		thisForm.FindUs.focus();
    return false;
	}
	
	//a variable that will hold the index number of the selected radio button
	var found = false;
	for (i=0;i<thisForm.ProductUsage.length;i++)
	{
		if (thisForm.ProductUsage[i].checked==true)
		{
			found = true;
		}
	}
	
	if (found == false)
	{
		window.alert("Please enter how you will use the product!");
		thisForm.ProductUsage[0].focus();
    return false;
	}
	
	if (thisForm.Occupation[thisForm.Occupation.selectedIndex].value == "")
	{
		window.alert("Please select a category!");
		thisForm.Occupation.focus();
    return false;
	}
	
	return true;	
}