<!--
document.onkeydown=function(e){
	window.document.key_id=window.event ? event.keyCode : e.keyCode;
}
function autotab(obj,nxt){
	var f=document.forms[0];
	if(obj.value.length==obj.maxLength){
		if(window.document.key_id && window.document.key_id!=8 && window.document.key_id!=9 && window.document.key_id!=16){
			f[nxt].focus();
			return false;
		}
	}
}
function force_numeric(obj){
	filter=/[\D]/g;
	if (filter.test(obj.value)){
		obj.value=obj.value.replace(filter,"");
	}
}
function validate_email( strValue)
{
	var objRegExp	= /^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;
	return objRegExp.test(strValue);
}
function validate_zip( strValue)
{
	var objRegExp	= /(^\d{5}$)|(^\d{5}-\d{4}$)/;
	return objRegExp.test(strValue);
}
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 phone2_p1ID=f['lc[phone2_p1]'].value;
	var phone2_p2ID=f['lc[phone2_p2]'].value;
	var phone2_p3ID=f['lc[phone2_p3]'].value;
	var emailID=f.email;
	var zipID=f.zip;

	if (first_nameID.value==null || first_nameID.value=="" || first_nameID.value.length < 2)
	{
		alert("Please provide your first name.");
		first_nameID.focus();
		return false;
	}

	if (last_nameID.value==null || last_nameID.value=="" || last_nameID.value.length < 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 (emailID.value==null || emailID.value=="" || validate_email(emailID.value) == false)
	{
		alert("Please provide a valid email address.");
		emailID.focus();
		return false;
	}

	if (zipID.value==null || zipID.value=="" || validate_zip(zipID.value) == false || zipID.value.length < 5 || isNaN(zipID.value))
	{
		alert("Please provide your zip code.");
		zipID.focus();
		return false;
	}

	if(window.document.getElementById('dyes') && !window.document.getElementById('dyes').checked && !window.document.getElementById('dno').checked){
		alert('Do you have over $10,000 in Credit Card debt?');
		window.document.getElementById('dyes').focus();
		return false;
	}

	if(window.fc_under){
		window.fc_under.close();
	}
	if(typeof page_loading == "function")page_loading(1);
	return true;
}
function win_pop(x){
	win_=window.open("/pop/"+x+".html",'',"width=620,height=600,toolbar=no,status=yes,resizable=yes,scrollbars=yes,location=no");
	win_.focus();
}
function hide(obj){
	document.getElementById(obj).style.display="none";
}
function show(obj){
	document.getElementById(obj).style.display="block";
}
//-->
