/* ClearForm: this function has 1 argument: form.
   It clears the input and answer fields on the form. 
   It needs to know the names of the INPUT elements in order
   to do this. */
function ClearForm(form)
{
form.FullName.value = "";
form.Address1.value = "";
form.Email.value = "";
form.Subject.value = "";
form.Comments.value = "";
}

/*The checkform funtion is to used to make sure that the fields on the 
form are filled out before being printed off and sent in.*/
function checkform(thisform) {

var completed = true;
	// Contact form Name field
	if (thisform.FullName.value == null || thisform.FullName.value == "")
	{
	alert ("Please enter your Name");
	thisform.FullName.focus();
	thisform.FullName.select();
	completed = false;
	}
	//
	if (thisform.Email.value == null || thisform.Email.value == "")
	{
	alert ("Please enter your Email Address");
	thisform.Email.focus();
	thisform.Email.select();
	completed = false;
	}
	if (completed == false){
	return false;
	}
	// Contact form Name field
	if (thisform.Subject.value == null || thisform.Subject.value == "")
	{
	alert ("Please enter the Subject of your message");
	thisform.Subject.focus();
	thisform.Subject.select();
	completed = false;
	}
	//
	if (thisform.Comments.value == null || thisform.Comments.value == "")
	{
	alert ("Please enter something in the Comments box");
	thisform.Comments.focus();
	thisform.Comments.select();
	completed = false;
	}
}

/*The print_form funtion is to print the checkout page to mail in.*/
function print_form(thisform) {
	window.print();
	return false;
}	
