function checkForm () {
	//we check the values for blank
	var errorMsg='';
	if ((document.myForm.company_contact_name.value=='') || (document.myForm.company_contact_name.value==' Your Name')) { errorMsg += "\n - Must fill in Your Name."; }
	if ((document.myForm.contact_email.value=='') || (document.myForm.contact_email.value==' Email')) { errorMsg += "\n - Must fill in Email."; }
	if ((document.myForm.phone.value=='') || (document.myForm.phone.value==' Primary Phone')){ errorMsg += "\n - Must fill in Primary Phone."; }
	if ((document.myForm.business_type.selectedIndex==0)){ errorMsg += "\n - Must select an option for how majority of sales are conducted."; }
	
	var phone_num=document.myForm.phone.value;
	phone_num=phone_num.replace(/\D/ig,'');
	
	if ((phone_num!='') && (!(phone_num.match(/^\d{10}$/)))) { errorMsg += "\n - Primary Phone is not formatted correctly."; }
	var email=document.myForm.contact_email.value;
	if ((email!='') && (!(email.match(/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/)))) { errorMsg += "\n - Email is not formatted correctly."; }
	
	//If err, fail, else sub.
	if (errorMsg!='') {
		var msg='';
		msg += "Please correct the items below and re-submit.\n";
		msg += "________________________________________________\n";
		alert(msg + errorMsg);
		return false;
	} else {
		document.myForm.submit();
	}
}
