function ValidateContestForm() {
	EmptyFields = "";
		checkString = document.contest.business.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "A business name is required.\n";
	}	

	checkString = document.contest.Fname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "A first name is required.\n";
	}	
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "First Name may consist of letters, - and spaces only.\n";
	}
	
	checkString = document.contest.Lname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "A last name is required.\n";
	}	
	regex = /[^A-Za-z\.\-\'_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Last Name may consist of letters, \',- and spaces only.\n";
	}
	
	checkString = document.contest.phone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter your telephone number.\n";
	}
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Your telephone number must only consist of numbers.\n";
	}
	
	checkString = document.contest.email.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "An email address is required.\n";
	} else if ((checkString.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) == false) {
		EmptyFields = EmptyFields + "The email address doesn't appear to be valid.\n";
	}
	
	checkString = document.contest.address.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "An address is required.\n";
	}	
	
	checkString = document.contest.city.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "A city is required.\n";
	}	
	regex = /[^A-Za-z\.\-\'_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "A city may consist of letters, \',- and spaces only.\n";
	}
	
	checkString = document.contest.country.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a country.\n";
	}
	
	checkString = document.contest.province.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a province.\n";
	}
	
	checkString = document.contest.postalcode.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter your postal code.\n";
	}
	
	checkString = document.contest.numberemployees.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the number of employees at your company.\n";
	}
	
	checkString = document.contest.yearsbusiness.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the number of years in business.\n";
	}
	
	checkString = document.contest.revenue.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter your yearly revenue.\n";
	}
	
	checkString = document.contest.businessdescript.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter your business description.\n";
	}
	
	checkString = document.contest.question1.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter question 1.\n";
	}

checkString = document.contest.question2.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter question 2.\n";
	}

	checkString = document.contest.question3.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter question 3.\n";
	}

	checkString = document.contest.question4.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter question 4.\n";
	}

	checkString = document.contest.question5.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter question 5.\n";
	}

	checkString = document.contest.question6.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter question 6.\n";
	}
	checkString = document.contest.ref1business.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the business name for reference one.\n";
	}	
	checkString = document.contest.ref1address.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the address for reference one.\n";
	}
	checkString = document.contest.ref1city.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the city for reference one.\n";
	}
	checkString = document.contest.ref1province.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a province for reference one.\n";
	}
	checkString = document.contest.ref1postal.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the postal code for reference one.\n";
	}	
	checkString = document.contest.ref1country.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a country for reference one.\n";
	}	
	checkString = document.contest.ref1bphone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the business phone for reference one.\n";
	}
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference one's business phone number must only consist of numbers.\n";
	}
	checkString = document.contest.ref1website.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a website for reference one.\n";
	}
	checkString = document.contest.ref1Fname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a first name for reference one.\n";
	}
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference one's first name may consist of letters, - and spaces only.\n";
	}
	checkString = document.contest.ref1Lname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a last name for reference one.\n";
	}
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference one's last name may consist of letters, - and spaces only.\n";
	}
	checkString = document.contest.ref1title.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a title for reference one.\n";
	}
	checkString = document.contest.ref1cphone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a phone number for reference one.\n";
	}
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference one's phone number must only consist of numbers.\n";
	}	
	checkString = document.contest.ref1email.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter an email for reference one.\n";
	} else if ((checkString.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) == false) {
		EmptyFields = EmptyFields + "The email address for reference one doesn't appear to be valid.\n";
	}
		checkString = document.contest.ref2business.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the business name for reference two.\n";
	}	
	
	checkString = document.contest.ref2address.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the address for reference two.\n";
	}
	
	checkString = document.contest.ref2city.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the city for reference two.\n";
	}
	
	checkString = document.contest.ref2province.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a province for reference two.\n";
	}
	
	checkString = document.contest.ref2postal.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the postal code for reference two.\n";
	}	
	
	checkString = document.contest.ref2country.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a country for reference two.\n";
	}	
	
	checkString = document.contest.ref2bphone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the business phone number for reference two.\n";
	}	
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference two's business phone number must only consist of numbers.\n";
	}	
	checkString = document.contest.ref2website.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a website for reference two.\n";
	}
	
	checkString = document.contest.ref2Fname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter first name for reference two.\n";
	}
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference two's first name may consist of letters, - and spaces only.\n";
	}
	checkString = document.contest.ref2Lname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter lane name for reference two.\n";
	}
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference two's last name may consist of letters, - and spaces only.\n";
	}
	checkString = document.contest.ref2title.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a title for reference two.\n";
	}
	
	checkString = document.contest.ref2cphone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a phone number for reference two.\n";
	}	
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference two's phone number must only consist of numbers.\n";
	}
	checkString = document.contest.ref2email.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter an email for reference two.\n";
	} else if ((checkString.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) == false) {
		EmptyFields = EmptyFields + "The email address for reference two doesn't appear to be valid.\n";
	}
			checkString = document.contest.ref3business.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the business name for reference three.\n";
	}	
	
	checkString = document.contest.ref3address.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the address for reference three.\n";
	}
	
	checkString = document.contest.ref3city.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the city for reference three.\n";
	}
	
	checkString = document.contest.ref3province.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a province for reference three.\n";
	}
	
	checkString = document.contest.ref3postal.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the postal code for reference three.\n";
	}	
	
	checkString = document.contest.ref3country.value;
	if (checkString == "SELECT" ) {		
		EmptyFields = EmptyFields + "Please select a country for reference three.\n";
	}	
	
	checkString = document.contest.ref3bphone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter the business phone number for reference three.\n";
	}	
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference three's business phone number must only consist of numbers.\n";
	}	
	checkString = document.contest.ref3website.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a website for reference three.\n";
	}
	
	checkString = document.contest.ref3Fname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter first name for reference three.\n";
	}
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference three's first name may consist of letters, - and spaces only.\n";
	}
	checkString = document.contest.ref3Lname.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter lane name for reference three.\n";
	}
	regex = /[^A-Za-z\.\-_ ]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference three's last name may consist of letters, - and spaces only.\n";
	}
	checkString = document.contest.ref3title.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a title for reference three.\n";
	}
	
	checkString = document.contest.ref3cphone.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter a phone number for reference three.\n";
	}	
	regex = /[^0-9]/
	if (regex.test(checkString) == true)	{
		EmptyFields = EmptyFields + "Reference three's phone number must only consist of numbers.\n";
	}
	checkString = document.contest.ref3email.value;
	if (checkString == "" ) {		
		EmptyFields = EmptyFields + "Please enter an email for reference three.\n";
	} else if ((checkString.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) == false) {
		EmptyFields = EmptyFields + "The email address for reference three doesn't appear to be valid.\n";
	}

	checkString = document.contest.rules.checked;
	if ( checkString == "0" ) {		
		EmptyFields = EmptyFields + "You must agree to the terms and conditions.\n";
	}	
	if (EmptyFields != "") {
		alert(EmptyFields);
		return false;
	} else {
		return true;
	}
}