// JavaScript Document

function clearInputName(e){ 
if(e.value==' Your Name')e.value=""; 
} 
function clearInputemail(e){ 
if(e.value==' Your Email')e.value=""; 
} 
function clearInputMessage(e){ 
if(e.value==' How can we help you?')e.value=""; 
} 

function submitQuickContact() {
		if(document.QuickContact.Name.value.length < 1) {
			alert("A name is required.");
			document.QuickContact.Name.focus();
			return;
		} else if(document.QuickContact.email.value.length < 7) {
			alert("A valid email address is required.");
			document.QuickContact.email.focus();
			return;
		} else if(document.QuickContact.Message.value.length < 1) {
			alert("Please leave a message.");
			document.QuickContact.Message.focus();
			return;
		} document.QuickContact.submit();
}
function submitCaseReview() {
		if(document.CaseReview.Name.value.length < 2) {
			alert("The Injured's Name Is Required.");
			document.CaseReview.Name.focus();
			return;
		} else if(document.CaseReview.email.value.length < 5) {
			alert("An Email Address Is Required.");
			document.CaseReview.email.focus();
			return;
		} else if(document.CaseReview.Phone.value.length < 10) {
			alert("The Injured's Phone Number Is Required.");
			document.CaseReview.Phone.focus();
			return;
		} document.CaseReview.submit();
}

