function formCheck() { //v3.0
	var errors="";//clear error var
	
	//require document info for the masterspec request form
	if (document.contact.id.value == 8 && document.contact.document_type.value == "") {
		errors+='- Please enter a document type.\n';
	}
	if (document.contact.id.value == 8 && document.contact.document_length.value == "") {
		errors+='- Please enter a document length.\n';
	}
	if (document.contact.id.value == 8 && document.contact.masterformat_version.value == "") {
		errors+='- Please enter a MasterFormat version.\n';
	}
	
	if (document.contact.fullname.value == "") {
    	errors+='- Please enter your full name.\n';
    }
	
	
	if (document.contact.address1.value == "") {
    	errors+='- Please enter your address.\n';
    }
	
	if (document.contact.city.value == "") {
    	errors+='- Please enter your city.\n';
    }
	
	if (document.contact.state.value == "") {
		errors+='- Please enter your State.\n';
    }
	
	if (document.contact.zip.value == "") {
    	errors+='- Please enter your ZIP Code.\n';
    }

	
	//check if e-mail contains @ character

	if (document.contact.email.value.indexOf("@") == -1 || document.contact.email.value == "") {
		errors+='- Please include a proper e-mail address.\n';
	}

	if (document.contact.comment.value == "") {
    	errors+='- Comment field is blank.\n';
    }

   

  	if (errors) {
		alert('The following error(s) occurred:\n'+errors);
  		return false;
  	}

}
