// JavaScript Document
function checkIndex()
{
	ctl = getCtl('fname');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Please Enter your frist name");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('lname');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Please Enter your last name");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('email');
	
	if(ctl.value.search(emlreg)==-1)
	{
		alert("Please Enter your email");	
		ctl.focus()
		return false;
	}
	
}

function checkStep2()
{
	
	ctl = getCtl('clientname');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Please Enter Full name");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('clientphone');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Please Enter phone number");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('clientemail');
	
	if(ctl.value.search(emlreg)==-1)
	{
		alert("Please Enter a valid email");	
		ctl.focus()
		return false;
	}
	
	
	/*ctl = getCtl('st2q1');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Has the borrower gone into Foreclosure and what was the filling date?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q2');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Has the borrower received their NOD, and when was it received?");	
		ctl.focus()
		return false;
	}
	
	
	ctl = getCtl('st2q3');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Is there a Notice of Sale, and what date is the N.O.S?");	
		ctl.focus()
		return false;
	}
	
	
	ctl = getCtl('st2q4');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Is this a Single family residence or a 1-4 unit property?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q5');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("How many people live in the home?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q6');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Have they had this current loan over 1 year?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q7');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Is the borrower currently behind in their mortgage payment?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q8');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("How many months are they behind?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q9');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Is the borrower currently involved in bankruptcy?");	
		ctl.focus()
		return false;
	}
	
	ctl = getCtl('st2q10');
	
	if(ctl.value.search(sth)==-1)
	{
		alert("Has the current loan adjusted yet? If not, when is it set to adjust?");	
		ctl.focus()
		return false;
	}*/
	
}