	
	//If javascript is enabled check if cookies are enabled
	if (document.cookie != "") 
  	{
		//Cookies are enabled enabled
		document.getElementById("form").style.display="block"
  	}else{
		document.getElementById("cookies").style.display="block"
	}
	
	
	function validate(){
		
		//Check Company
		if (document.Form1.Company.value=="" ){
			window.alert("Please fill in company name.");
			return false;
		}
		
		//Check First Name
		if (document.Form1.FirstName.value=="" ){
			window.alert("Please fill in first name.");
			return false;
		}
		
		//Check Last Name
		if (document.Form1.LastName.value=="" ){
			window.alert("Please fill in last name.");
			return false;
		}
		
		//Check city
		if (document.Form1.City.value=="" ){
			window.alert("Please fill in city.");
			return false;
		}
		
		//Check state
		if (document.Form1.State.value=="" ){
			window.alert("Please fill in state.");
			return false;
		}
		
		//Check postal code
		if (document.Form1.PostalCode.value=="" ){
			window.alert("Please fill in postal code.");
			return false;
		}
		
		//Check country
		if (document.Form1.Country.value=="" ){
			window.alert("Please fill in country.");
			return false;
		}
		
		//Check Phone
		if (document.Form1.Phone.value=="" ){
			window.alert("Please fill in telephone number.");
			return false;
		}
		
		//Check Email Address
		if (document.Form1.EmailAddress.value=="" ){
			window.alert("Please fill in email address.");
			return false;
		}
		
		//Check Email Address
		if (document.Form1.EmailAddress2.value=="" ){
			window.alert("Please fill in re-enter email address for verification purposes.");
			return false;
		}
		
		//Compare two email addresses
		if (document.Form1.EmailAddress.value!=document.Form1.EmailAddress2.value ){
			window.alert("The two email addresses entered don't match. Please update so they do.");
			return false;
		}
		
		//Check Email Address
		if (document.Form1.Questions.value=="" ){
			window.alert("Please fill in question.");
			return false;
		}
		
		//submit form
		document.Form1.setAttribute("action","../contactForm/contact_pop.asp");

	}
	
	