function validateFormOnSubmit() {
	var emailReg = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;
	var numReg = /^(0|[1-9][0-9]*)$/;

	var regex = new RegExp(emailReg);

	if(!document.solderstation.name.value) {
		alert("Please enter the Name.");
		return false;
	}else if(!document.solderstation.company.value) {
		alert("Please enter the Comnpany Name.");
		return false;		
	}else if(!document.solderstation.street.value) {
		alert("Please enter the Street Address.");
		return false;		
	}else if(!document.solderstation.city.value) {
		alert("Please enter the City.");
		return false;		
	}else if(!document.solderstation.state.value) {
		alert("Please enter the State.");
		return false;		
	}else if(!document.solderstation.zip.value) {
		alert("Please enter the Zip Code.");
		return false;		
	}else if(!document.solderstation.phone.value) {
		alert("Please enter the Phone Number.");
		return false;		
	}else if(!document.solderstation.email.value) {
		alert("Please enter the Email Address.");
		return false;		
	}else if(!regex.test(document.solderstation.email.value)) {
		alert("Email you enter is invalid. Please enter correct one.");
		return false;
	}else if(!document.solderstation.productinfo.value) {
		alert("Please enter your Comment in about this product field.");
		return false;		
	}
	
	return true;
}
function validateFormEvolution() {
	var emailReg = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;
	var numReg = /^(0|[1-9][0-9]*)$/;

	var regex = new RegExp(emailReg);

	if(!document.solderstation.writtenby.value) {
		alert("Written By field should not be Empty.");
		return false;
	}else if(!document.solderstation.date.value) {
		alert("Date field should not be Empty.");
		return false;		
	}else if(!document.solderstation.regionalmanager.value) {
		alert("Regional Manager field should not be Empty.");
		return false;		
	}else if(!document.solderstation.rep.value) {
		alert("Rep./Disty field should not be Empty.");
		return false;		
	}else if(!document.solderstation.company.value) {
		alert("Company field should not be Empty.");
		return false;		
	}else if(!document.solderstation.phone.value) {
		alert("Phone field should not be Empty.");
		return false;		
	}else if(!document.solderstation.address.value) {
		alert("Address field should not be Empty.");
		return false;		
	}else if(!document.solderstation.contact.value) {
		alert("Contact field should not be Empty.");
		return false;		
	}else if(!document.solderstation.title1.value) {
		alert("Title field should not be Empty.");
		return false;
	}else if(!document.solderstation.soldered.value) {
		alert("What is the application being soldered? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.year.value) {
		alert("What is the Quantity / Year field should not be Empty.");
		return false;		
	}else if(!document.solderstation.application.value) {
		alert("What is the end application? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.soldering.value) {
		alert("What Soldering Station is currently being used (if not solder what is used)? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.type.value) {
		alert("Type field should not be Empty.");
		return false;		
	}else if(!document.solderstation.mobile.value) {
		alert("Mobile field should not be Empty.");
		return false;		
	}else if(!document.solderstation.cost.value) {
		alert("What is the approximate cost of the current Solder Station? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.connections.value) {
		alert("How many solder connections per hour are you getting with the current method? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.connectionsmueller.value) {
		alert("How many solder connections per hour are you getting with Mueller method? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.production.value) {
		alert("How many solder stations do you have on the production floor? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.costsave.value) {
		alert("What is the cost save of the Mueller solder station per year? field should not be Empty.");
		return false;		
	}else if(!document.solderstation.mostliked.value) {
		alert("What are the items that you liked least about the Mueller Solder Station? field should not be Empty.");
		return false;		
	}
	
	return true;
}
