var IF_errStr;
var IF_errNum;
//var myform = document.forms.Application; // convenience: copy the document object




function checkData() {
	var correct = true;
	IF_errStr = "Please correct the following errors:\n";
	IF_errNum = 0; // we use this for the phone number check later

	thecontactform() 


// alert (IF_errNum); // im debuggin here

	if ( IF_errNum > 0 ) {
		alert( IF_errStr );
		correct = false;
	}
//	if (correct) { alert("Thank you for taking the time to fill out this form.") }
	return correct
}




function thecontactform() {
var myform = document.forms.contact; // convenience: copy the document object

	if ( myform.FirstName.value == "" ) {
		IF_errStr +=( "\t- Please enter your first name.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.LastName.value == "" ) {
		IF_errStr +=( "\t- Please enter your last name.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.Email.value == "" ) {
		IF_errStr +=( "\t- Please enter your email address.\n" );
		IF_errNum++; correct = false;
	}
	if ( myform.referred.value == "" ) {
		IF_errStr +=( "\t- Please enter how you heard about us.\n" );
		IF_errNum++; correct = false;
	}
/*
	if ( myform.Street1.value == "" ) {
		IF_errStr +=( "\t- Please enter your address.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.Street2.value == "" ) {
		IF_errStr +=( "\t- Please enter your address.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.City.value == "" ) {
		IF_errStr +=( "\t- Please enter your city.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.State.value == "" ) {
		IF_errStr +=( "\t- Please enter your state.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.Zip.value == "" ) {
		IF_errStr +=( "\t- Please enter your zip code.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.Phone.value == "" ) {
		IF_errStr +=( "\t- Please enter your phone number.\n" );
		IF_errNum++; correct = false;
	}

	if ( myform.comments.value == "" ) {
		IF_errStr +=( "\t- Please enter your comments.\n" );
		IF_errNum++; correct = false;
	}
*/

}





