// JavaScript Document
function submitSideContactForm() {
if(document.sideContactForm.Name.value.length < 1) {
			alert("Your name is required.");
			document.sideContactForm.Name.focus();
			return;
		} else if(document.sideContactForm.email.value.length < 1) {
			alert("Your email address is required.");
			document.sideContactForm.email.focus();
			return;
		} else if(document.sideContactForm.Phone.value.length < 1) {
			alert("A phone number is required.");
			document.sideContactForm.Phone.focus();
			return;
		} else if(document.sideContactForm.Comments.value.length < 1) {
			alert("Please tell us about your claim.");
			document.sideContactForm.Comments.focus();
			return;
		} 
		document.sideContactForm.submit();
}
function submitContactForm() {
if(document.ContactForm.Name.value.length < 1) {
			alert("Your name is required.");
			document.ContactForm.Name.focus();
			return;
		} else if(document.ContactForm.email.value.length < 1) {
			alert("Your email address is required.");
			document.ContactForm.email.focus();
			return;
		} else if(document.ContactForm.Comments.value.length < 1) {
			alert("A message is required.");
			document.ContactForm.Comments.focus();
			return;
		} 
		document.ContactForm.submit();
}
function submitAreaContactForm() {
if(document.areaContactForm.Name.value.length < 1) {
			alert("Your name is required.");
			document.areaContactForm.Name.focus();
			return;
		} else if(document.areaContactForm.email.value.length < 1) {
			alert("Your email address is required.");
			document.areaContactForm.email.focus();
			return;
		} else if(document.areaContactForm.Phone.value.length < 1) {
			alert("Your phone number is required.");
			document.areaContactForm.Phone.focus();
			return;
		} else if(document.areaContactForm.Comments.value.length < 1) {
			alert("Please tell us about your claim.");
			document.areaContactForm.Comments.focus();
			return;
		} 
		document.areaContactForm.submit();
}

function HideContent(d,x) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
document.getElementById(x).style.display = "none";
}
function ShowContent(d,x) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
 document.getElementById(x).style.display = "none";
for (var i = 0; i < document.sideContactForm.elements.length; i++ ) {
        if (document.sideContactForm.elements[i].type == 'checkbox') {
             document.sideContactForm.elements[i].checked = false;
            }
	}
}
//-->