function validateContact(rights){
	var $form = document.contactForm; 
	var $output = "";

	if(rights==1&&!$form.sendTo[0].checked&&!$form.sendTo[1].checked){$output += "\t•  Please select a message type.\n";}
	if(!$form.contactFormName.value){$output += "\t•  Please provide your name.\n";}
	if(!$form.contactFormPhone.value&&!$form.contactFormEmail.value){$output += "\t•  Please provide a way for us to contact you.\n";}
	if($form.contactFormPhone.value&&!validPhone($form.contactFormPhone.value).st){$output += "\t•  The provided phone number is invalid.\n";}
	if($form.contactFormEmail.value&&!validEmail($form.contactFormEmail.value)){$output += "\t•  The provided e-mail address is invalid.\n";}
	if(!$form.contactFormPhone.value&&!$form.contactFormComment.value){$output += "\t•  Please provide a detailed message.\n";}
	if($output){alert("This form could not be submitted. Please make the following changes and resubmit.\t\n\n"+$output);return false;} else {return true;}
}