<!--
function form_check()
{
	var f=document.LC;
	var first_nameID=f.first_name;
	var last_nameID=f.last_name;
	var phone1_p1ID=f['lc[phone1_p1]'].value;
	var phone1_p2ID=f['lc[phone1_p2]'].value;
	var phone1_p3ID=f['lc[phone1_p3]'].value;
	var emailID=f.email;
	var zipID=f.zip;
	var bkID=f.bankruptcy_reason;
	var udID=f.unsecured_debt;

	if (empty(first_nameID,2))
	{
		alert("Please provide your first name.");
		first_nameID.focus();
		return false;
	}

	if (empty(last_nameID,2))
	{
		alert("Please provide your last name.");
		last_nameID.focus();
		return false;
	}

	var filter2=/[2-9]{1}[0-8]{1}[0-9]{1}/g;
	var res=filter2.test(phone1_p1ID).toString();
	void(filter2.test(phone1_p1ID)+'_'+res);
	if (res==='false')
	{
		alert("Sorry, your phone's area code appears to be invalid. Please check the number and try again.");
		f.phone1_p1.focus();
		return false;
	}
	var filter3=/[2-9]{1}[0-9]{2}/g;
	res=filter3.test(phone1_p2ID).toString();
	void(filter3.test(phone1_p2ID)+'_'+res);
	if (res==='false')
	{
		alert("Sorry, your phone's prefix appears to be invalid. Please check the number and try again.");
		f.phone1_p2.focus();
		return false;
	}
	var filter4=/[0-9]{4}/g;
	res=filter4.test(phone1_p3ID).toString();
	void(filter4.test(phone1_p3ID)+'_'+res);
	if (res==='false')
	{
		alert("Sorry, your phone's suffix appears to be invalid. Please check the number and try again.");
		f.phone1_p3.focus();
		return false;
	}
	var filter5=/^01[0-9]{2}/g;
	res=filter5.test(phone1_p3ID).toString();
	void(filter5.test(phone1_p3ID)+'_'+res);
	if (phone1_p2ID=='555' && res==='true'){
		alert("Sorry, that is an invalid 555 phone number. Please check the number and try again.");
		f.phone1_p3.focus();
		return false;
	}

	if(validate_email_address(emailID.value) == false)
	{
		alert("Please provide a valid email address.");
		emailID.focus();
		return false;
	}

	if(empty(zipID,5,1))
	{
		alert("Please provide your zip code.");
		zipID.focus();
		return false;
	}

	if(typeof bkID == "object" && empty(bkID)){
		alert("Why are you considering bankruptcy?");
		bkID.focus();
		return false;
	}

	if(typeof udID == "object" && empty(udID))
	{
		alert("Please estimate your total debt.");
		udID.focus();
		return false;
	}

	if(window.fc_under){
		window.fc_under.close();
	}
	if(typeof page_loading == "function")page_loading(1);
	return true;
}
//-->
