//Clears the Search Box Default Text
function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}
//Dropdown Script for Older Browsers
<!--//--><![CDATA[//><!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("Navigation-Header");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
function CheckForm() {
	var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
	strErrorMessage = "";
	if ( document.Contact.SubjectSelector.value == "" && document.Contact.OtherSubject.value == "" ) {
		strErrorMessage += "A Subject is required" + "\n";
	}			
	if ( document.Contact.Comments.value == "" ) {
		strErrorMessage += "Your Comment or Request is required" + "\n";
	}			
	if ( document.Contact.Name.value == "" ) {
		strErrorMessage += "Your name is required" + "\n";
	}			
	if ( emailfilter.test(document.Contact.Email.value) == false ) {				
		strErrorMessage += "A valid e-mail address is required." + "\n";
	}	
	if ( strErrorMessage != "" ) {
		alert (strErrorMessage);
		return false;
	}
	else {
		return true;
	}
}
function SetupForm(){
document.getElementById("EmploymentNoticeWrapper").style.display = "none";
document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "none";
document.getElementById("TaxNoticeWrapper").style.display = "none";
document.getElementById("SupplierNoticeWrapper").style.display = "none";
document.getElementById("OtherSubjectWrapper").style.display = "none";
document.Contact.CommentsFieldset.style.display = "none";
document.Contact.BusinessInformationFieldset.style.display = "none";
document.Contact.ContactInformationFieldset.style.display = "none";
document.getElementById("SubmitButtonWrapper").style.display = "none";
}
function SelectForm(){
if(document.Contact.SubjectSelector.value == ''){
	document.getElementById("EmploymentNoticeWrapper").style.display = "none";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "none";
	document.getElementById("TaxNoticeWrapper").style.display = "none";
	document.getElementById("SupplierNoticeWrapper").style.display = "none";
	document.getElementById("OtherSubjectWrapper").style.display = "none";
	document.Contact.CommentsFieldset.style.display = "none";
	document.Contact.BusinessInformationFieldset.style.display = "none";
	document.Contact.ContactInformationFieldset.style.display = "none";
	document.getElementById("SubmitButtonWrapper").style.display = "none";
	}
if(document.Contact.SubjectSelector.value != '' || document.Contact.SubjectSelector.value != 'Employment' || document.Contact.SubjectSelector.value != 'Employment Verification' || document.Contact.SubjectSelector.value != 'Tax and W-2 Requests' || document.Contact.SubjectSelector.value != 'Supplier Relations'){
	document.getElementById("EmploymentNoticeWrapper").style.display = "none";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "none";
	document.getElementById("TaxNoticeWrapper").style.display = "none";
	document.getElementById("SupplierNoticeWrapper").style.display = "none";
	document.Contact.CommentsFieldset.style.display = "block";
	document.Contact.BusinessInformationFieldset.style.display = "block";
	document.Contact.ContactInformationFieldset.style.display = "block";
	document.getElementById("SubmitButtonWrapper").style.display = "block";
	}
if(document.Contact.SubjectSelector.value == '' || document.Contact.SubjectSelector.value == 'Employment' || document.Contact.SubjectSelector.value == 'Employment Verification' || document.Contact.SubjectSelector.value == 'Tax and W-2 Requests' || document.Contact.SubjectSelector.value == 'Supplier Relations'){
	document.getElementById("OtherSubjectWrapper").style.display = "none";
	document.Contact.CommentsFieldset.style.display = "none";
	document.Contact.BusinessInformationFieldset.style.display = "none";
	document.Contact.ContactInformationFieldset.style.display = "none";
	document.getElementById("SubmitButtonWrapper").style.display = "none";
	}
if(document.Contact.SubjectSelector.value == 'Employment'){
	document.getElementById("EmploymentNoticeWrapper").style.display = "block";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "none";
	document.getElementById("TaxNoticeWrapper").style.display = "none";
	document.getElementById("SupplierNoticeWrapper").style.display = "none";
	}
if(document.Contact.SubjectSelector.value == 'Employment Verification'){
	document.getElementById("EmploymentNoticeWrapper").style.display = "none";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "block";
	document.getElementById("TaxNoticeWrapper").style.display = "none";
	document.getElementById("SupplierNoticeWrapper").style.display = "none";
	}
if(document.Contact.SubjectSelector.value == 'Tax and W-2 Requests'){
	document.getElementById("EmploymentNoticeWrapper").style.display = "none";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "none";
	document.getElementById("TaxNoticeWrapper").style.display = "block";
	document.getElementById("SupplierNoticeWrapper").style.display = "none";
	}
if(document.Contact.SubjectSelector.value == 'Supplier Relations'){
	document.getElementById("EmploymentNoticeWrapper").style.display = "none";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "none";
	document.getElementById("TaxNoticeWrapper").style.display = "none";
	document.getElementById("SupplierNoticeWrapper").style.display = "block";
	}
if(document.Contact.SubjectSelector.value == 'Other'){
	document.getElementById("EmploymentNoticeWrapper").style.display = "block";
	document.getElementById("EmploymentVerificationNoticeWrapper").style.display = "block";
	document.getElementById("TaxNoticeWrapper").style.display = "block";
	document.getElementById("SupplierNoticeWrapper").style.display = "block";
	document.getElementById("OtherSubjectWrapper").style.display = "block";
	}
if(document.Contact.SubjectSelector.value != 'Other'){
	document.getElementById("OtherSubjectWrapper").style.display = "none";
	}
}
function LimitText(Field,Counter,Maximum) {
	if (Field.value.length > Maximum)
		Field.value = Field.value.substring(0, Maximum);
	else
		Counter.value = Maximum - Field.value.length;
}
