function validate_contact(theform){
	var useremail;
	var name = theform.Name;
	var address = theform.Address;
	var email = theform.Email;
	var phone = theform.Phone;
	//var bestdate = theform.Best_Date;
	var besttime = theform.Best_Time;
	var injureddate = theform.Injured_Date;
	var caselocation = theform.CaseLocation;
	var damageinfo = theform.DamageInfo;
	var caseinfo = theform.CaseInfo;
	var optlawsuitfiled = valButton(theform.LawsuitFiled);
	//var comments = theform.FeedbackDescription;
	var captcha = theform.captchacode;

	useremail=isEmail(email.value);

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (address.value==""){
		alert("Address cannot be blank.");
		address.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	/*
	if (isDate(bestdate.value)==false){
		return false;
	}
	*/

	if (besttime.selectedIndex==0){
		alert("Please select the best time to call you from the list.");
		besttime.focus();
		return false;
	}

	if (isDate(injureddate.value)==false){
		return false;
	}

	if (caselocation.value==""){
		alert("In what City, County and State did it happen.");
		caselocation.focus();
		return false;
	}

	if (damageinfo.value==""){
		alert("State the name(s) of the companies or persons you believe may be responsible for your damages.");
		damageinfo.focus();
		return false;
	}

	if (caseinfo.value==""){
		alert("Give us a quick, concise summary of your case and how you and/or others like you were harmed.");
		caseinfo.focus();
		return false;
	}

	if (optlawsuitfiled==null){
		alert("Please select if there has anyone filed a lawsuit in this matter.");
		return false;
	}

	/*
	if (comments.value==""){
		alert("Comments cannot be blank.");
		comments.focus();
		return false;
	}
	*/

	if (captcha.value == ""){
		alert("Please enter the security code.");
		captcha.focus();
		return false;
	}
}

function validate_wswcm(theform){
	var useremail;
	var clientid = theform.ClientIDNumber;
	var name = theform.Name;
	var address = theform.Address;
	var phone = theform.Phone;
	var email = theform.Email;
	var chkcurrentpayments = valButton(theform.CurrentPayments);
	var chkbehindepayments = valButton(theform.BehindPayments);
	var chkloanmodification = valButton(theform.LoanModification);
	var chkforeclosuredateset = valButton(theform.ForeclosureDateSet);
	var forecloseddate = theform.Foreclosed_Date;
	var comments = theform.FeedbackDescription;
	var captcha = theform.captchacode;

	useremail=isEmail(email.value);

	if (clientid.value==""){
		alert("ClientID number cannot be blank.");
		clientid.focus();
		return false;
	}

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (address.value==""){
		alert("Address cannot be blank.");
		address.focus();
		return false;
	}

	if (phone.value==""){
		alert("Phone number cannot be blank.");
		phone.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	if (chkcurrentpayments==null){
		alert("Please select if you are on your current payments.");
		return false;
	}

	if (chkbehindepayments==null){
		alert("Please select if you are behind on your payments.");
		return false;
	}

	if (chkloanmodification==null){
		alert("Please select if you receive a loan modification.");
		return false;
	}

	if (chkforeclosuredateset==null){
		alert("Please select if you have a foreclosure date set for your primary residence.");
		return false;
	}

	if (!isDate(forecloseddate.value)){
		return false;
	}

	if (comments.value==""){
		alert("Steps taken to secure your loan modification cannot be blank.");
		comments.focus();
		return false;
	}

	if (captcha.value == ""){
		alert("Please enter the security code.");
		captcha.focus();
		return false;
	}
}

function validate_minicontactus(theform){
	var useremail;
	var name = theform.Name;
	var email = theform.Email;
	var address = theform.Address;
	var phone = theform.Phone;
	var comments = theform.FeedbackDescription;
	var captcha = theform.captchacode;

	useremail=isEmail(email.value);

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	if (address.value==""){
		alert("Address cannot be blank.");
		address.focus();
		return false;
	}

	if (phone.value==""){
		alert("Phone cannot be blank.");
		phone.focus();
		return false;
	}

	if (comments.value==""){
		alert("Comments cannot be blank.");
		comments.focus();
		return false;
	}

	if (captcha.value == ""){
		alert("Please enter the security code.");
		captcha.focus();
		return false;
	}
}
