	
	
	//If javascript is enabled make form viewable & validate
	document.getElementById("form").style.display = 'block';
	document.getElementById("sp").value = 'jsval'
	

	
	function validate(){
		
		
		//Check Customer Type
		if (document.Form1.customerType.value=="" ){
			window.alert("Please select who you are");
			return false;
		}
		
		//Check Contact Name
		if (document.Form1.contactName.value=="" ){
			window.alert("Please fill in customer contact name.");
			return false;
		}
		
		//Check Company
		if (document.Form1.Company.value=="" ){
			window.alert("Please fill in customer company name.");
			return false;
		}
		
		//Check Address
		if (document.Form1.Address.value=="" ){
			window.alert("Please fill in customer address.");
			return false;
		}
		
		//Check City
		if (document.Form1.City.value=="" ){
			window.alert("Please fill in customer city.");
			return false;
		}
		
		//Check State
		if (document.Form1.State.value=="" ){
			window.alert("Please fill in customer state.");
			return false;
		}
		
		//Check Country
		if (document.Form1.Country.value=="" ){
			window.alert("Please fill in customer country.");
			return false;
		}
		
		//Check Postal Code
		if (document.Form1.PostalCode.value=="" ){
			window.alert("Please fill in cutomer postal code.");
			return false;
		}
		
		//Check Phone Number
		if (document.Form1.PhoneNumber.value=="" ){
			window.alert("Please fill in customer phone number.");
			return false;
		}
		
		//Check Email
		if (document.Form1.Email.value=="" ){
			window.alert("Please fill customer email address.");
			return false;
		}
		
		//Check Email Address
		if (document.Form1.Email2.value=="" ){
			window.alert("Please fill in re-enter customer email address for verification purposes.");
			return false;
		}
		
		//Compare two email addresses
		if (document.Form1.Email.value!=document.Form1.Email2.value ){
			window.alert("The two customer email addresses entered don't match. Please update so they do.");
			return false;
		}
		
		//Compare two email addresses (sales rep)
		if (document.Form1.srEmail.value!=document.Form1.srEmail2.value ){
			window.alert("The two sales represntative email addresses entered don't match. Please update so they do.");
			return false;
		}
		
		
		//Check Quote Type
		if (document.Form1.quoteType.value=="" ){
			window.alert("Please select the type of quote this is.");
			return false;
		}
		
		//Check Quote Type
		if (document.Form1.purchasePlan.value=="" ){
			window.alert("Please select the when you plan to purchase.");
			return false;
		}
		
		//Check Project Name
		if (document.Form1.pName.value=="" ){
			window.alert("Please fill in project name.");
			return false;
		}
		
		//Check Purchase Date
		if (document.Form1.purchaseDate.value=="" ){
			window.alert("Please fill in purchase date.");
			return false;
		}
		
		//Check Production Date
		if (document.Form1.productionDate.value=="" ){
			window.alert("Please fill in production date.");
			return false;
		}
		
		//Check Part #1
		if (document.Form1.part1.value=="" ){
			window.alert("Please fill in part #1.");
			return false;
		}
		
		//Check Part #1 Annual Quantity
		if (document.Form1.annualQuantity1.value=="" ){
			window.alert("Please fill in annual quantity for part #1.");
			return false;
		}
		
		
		
		
		//submit form
		document.Form1.setAttribute("action","buy-requestQuote-process.asp");

	}
	
	