<!--//

var firstnametxt;   
var lastnametxt;   
var emailtxt;   
var dayphone1txt;
var dayphone2txt;
var dayphone3txt;
var firstname_cotxt;   
var lastname_cotxt;
var rate_your_crdtxt;    
var loanamounttxt;   
var purchasepricehometxt;
var currenthomevaluetxt;
var statetxt;
var loanpurposetxt;   
var currentlyowetxt;   
var current_iratetxt;     
var firstnamenum;   
var lastnamenum;   
var emailnum;   
var dayphone1num;
var dayphone2num;
var dayphone3num;
var eveningphone1num;
var eveningphone2num;
var eveningphone3num;
var firstname_conum;   
var lastname_conum;    
var loanamountnum;   
var currenthomevaluenum;   
var currentaddressnum;   
var citynum;   
var zipnum;   
var currentlyowenum;   
var current_iratenum;   
var employmentnum;   
var employment_conum;   
var occupationnum;   
var totalincomenum;   
var monthlyrentnum;   
var firstmortgagenum;   
var secondmortgagenum;   
var taxesnum;   
var totalcreditnum;   

firstnamemax=51;   
lastnamemax=51;   
emailmax=256;   
dayphone1max=4;
dayphone2max=4;
dayphone3max=5;
eveningphone1max=4;
eveningphone2max=4;
eveningphone3max=5;
firstname_comax=51;   
lastname_comax=51;    
loanamountmax=21;   
currenthomevaluemax=21;   
currentaddressmax=256;   
citymax=51;   
zipmax=31;   
currentlyowemax=21;   
current_iratemax=11;   
employmentmax=51;   
employment_comax=51;   
occupationmax=51;   
totalincomemax=21;   
monthlyrentmax=21;   
firstmortgagemax=21;   
secondmortgagemax=21;   
taxesmax=21;   
totalcreditmax=21;  

function submiting(txt, txt2, txt3, txt4, txt5, txt6, txt7, txt8, txt9, txt10, txt11, txt12, txt13, txt14, txt15, txt16, txt17, txt18, txt19, txt20, txt21, txt22, txt23, txt24, txt25, txt26, txt27, txt28, txt29, txt30, txt31, txt32, txt33, txt34, txt35, txt36, txt37, txt38, txt39, txt40, txt41, txt42, txt43) {
	firstnametxt = txt;   
	lastnametxt = txt2;   
	emailtxt = txt3;   
	dayphone1txt = txt4;
	dayphone2txt = txt5;
	dayphone3txt = txt6;
	firstname_cotxt = txt7;   
	lastname_cotxt = txt8;    
	loanamounttxt = txt9;   
	currenthomevaluetxt = txt10;   
	currentlyowetxt = txt11;   
	current_iratetxt = txt12;     
	firstnamenum = txt13;   
	lastnamenum = txt14;   
	emailnum = txt15;   
	dayphone1num = txt16;
	dayphone2num = txt17;
	dayphone3num = txt18;
	eveningphone1num = txt19;
	eveningphone2num = txt20;
	eveningphone3num = txt21;
	firstname_conum = txt22;   
	lastname_conum = txt23;    
	loanamountnum = txt24;   
	currenthomevaluenum = txt25;   
	currentaddressnum = txt26;   
	citynum = txt27;   
	zipnum = txt28;   
	currentlyowenum = txt29;   
	current_iratenum = txt30;   
	employmentnum = txt31;   
	employment_conum = txt32;   
	occupationnum = txt33;   
	totalincomenum = txt34;   
	monthlyrentnum = txt35;   
	firstmortgagenum = txt36;   
	secondmortgagenum = txt37;   
	taxesnum = txt38;   
	totalcreditnum = txt39; 
	rate_your_crdtxt = txt40; 
	statetxt = txt41; 
	loanpurposetxt = txt42; 
	purchasepricehometxt = txt43;     
}

function validate()
{
	if (firstnametxt!="")   
	if (lastnametxt!="")   
	if (emailtxt!="")   
	if (dayphone1txt!="")
	if (dayphone2txt!="")
	if (dayphone3txt!="")
	//if (firstname_cotxt!="")   
	//if (lastname_cotxt!="") 
	if (rate_your_crdtxt!="")    
	if (loanamounttxt!="")
	
	//10
	   
	if (purchasepricehometxt!="")
	if (currenthomevaluetxt!="")
	if (statetxt!="")
    if (loanpurposetxt!="")
	if (currentlyowetxt!="")   
	if (current_iratetxt!="")     
	if (firstnamenum < firstnamemax)   
	if (lastnamenum < lastnamemax)   
	if (emailnum < emailmax)   
	if (dayphone1num < dayphone1max)
	
	//20
	
	if (dayphone2num < dayphone2max) 
	if (dayphone3num < dayphone3max) 
	if (eveningphone1num < eveningphone1max)
	if (eveningphone2num < eveningphone2max)
	if (eveningphone3num < eveningphone3max)
	if (firstname_conum < firstname_comax)   
	if (lastname_conum < lastname_comax)    
	if (loanamountnum < loanamountmax)   
	if (currenthomevaluenum < currenthomevaluemax)   
	if (currentaddressnum < currentaddressmax)   
	
	//30
	
	if (citynum < citymax)   
	if (zipnum < zipmax)   
	if (currentlyowenum < currentlyowemax)   
	if (current_iratenum < current_iratemax)   
	if (employmentnum < employmentmax)   
	if (employment_conum < employment_comax)   
	if (occupationnum < occupationmax)   
	if (totalincomenum < totalincomemax)   
	if (monthlyrentnum < monthlyrentmax)   
	if (firstmortgagenum < firstmortgagemax)   
	
	//40
	
	if (secondmortgagenum < secondmortgagemax)   
	if (taxesnum < taxesmax)
	if (totalcreditnum < totalcreditmax) 
	
		{
			return true;
		}
	else
	{
	alert("Your Total monthly credit and auto debt must be less then 20 characters!");
	return false;
	}
		
	else
	{
	alert("Your Taxes monthly must be less then 20 characters!");
	return false;
	}	
	
	else
	{
	alert("Your Second mortgage must be less then 20 characters!");
	return false;
	}	
	
	else
	{
	alert("Your First mortgage must be less then 20 characters!");
	return false;
	}	
	
	else
	{
	alert("Your If renting, what is the monthly payment must be less then 20 characters!");
	return false;
	}	
	
	else
	{
	alert("Your Total monthly income (please include all borrowers) must be less then 20 characters!");
	return false;
	}			
	
	else
	{
	alert("Your What is your occupation must be less then 50 characters!");
	return false;
	}
	
	else
	{
	alert("Your Co-borrowers employment status must be less then 50 characters!");
	return false;
	}	
	
	else
	{
	alert("Your What is your employment status must be less then 50 characters!");
	return false;
	}	
	
	else
	{
	alert("Your Current Interest Rate must be less then 10 characters!");
	return false;
	}
	
	// 10	
	
	else
	{
	alert("Your How much do you currently owe on this property must be less then 20 characters!");
	return false;
	}				
	
	else
	{
	alert("Your Zip must be less then 30 characters!");
	return false;
	}	
	
	else
	{
	alert("Your City must be less then 50 characters!");
	return false;
	}		
	
	else
	{
	alert("Your Current Address must be less then 255 characters!");
	return false;
	}
	
	else
	{
	alert("Your What was the purchase price of your home must be less then 50 characters!");
	return false;
	}	
	
	else
	{
	alert("Your How much do you want to borrow must be less then 20 characters!");
	return false;
	}		

	else
	{
	alert("Your Co-borrow's Last Name must be less then 50 characters!");
	return false;
	}
	
	else
	{
	alert("Your Co-borrow's First Name must be less then 50 characters!");
	return false;
	}

	else
	{
	alert("Your Last Evening Phone must be less then 5 characters!");
	return false;
	}

	else
	{
	alert("Your Second Evening Phone must be less then 4 characters!");
	return false;
	}
	
	// 20

	else
	{
	alert("Your First Evening Phone must be less then 4 characters!");
	return false;
	}

	else
	{
	alert("Your Last Day Phone must be less then 5 characters!");
	return false;
	}

	else
	{
	alert("Your Second Day Phone must be less then 4 characters!");
	return false;
	}

	else
	{
	alert("Your First Day Phone must be less then 4 characters!");
	return false;
	}
	
	else
	{
	alert("Your Email must be less then 256 characters!");
	return false;
	}	
	
	else
	{
	alert("Your Last Name must be less then 50 characters!");
	return false;
	}
	
	else
	{
	alert("Your First Name must be less then 50 characters!");
	return false;
	}
	
	else
	{
	alert("Your must enter your Current Interest Rate!");
	return false;
	}
	
	else
	{
	alert("Your must enter How much do you currently owe on this property!");
	return false;
	}	
	
	else
	{
	alert("Your must enter your Loan Purpose!");
	return false;
	}
	
	// 30
	
	else
	{
	alert("Your must enter your State!");
	return false;
	}	
	
	else
	{
	alert("Your must enter What is the current value of your home!");
	return false;
	}
	
	else
	{
	alert("Your must enter What was the purchase price of your home!");
	return false;
	}	
	
	else
	{
	alert("Your must enter How much do you want to borrow!");
	return false;
	}
	
	else
	{
	alert("Your must enter your Credit Rating!");
	return false;
	}	
	
	//else
	//{
	//alert("Your must enter your Co-borrow's Last Name!");
	//return false;
	//}				
	
	//else
	//{
	//alert("Your must enter your Co-borrow's First Name!");
	//return false;
	//}	
	
	else
	{
	alert("Your must enter the last digits of your Day Phone!");
	return false;
	}
	
	else
	{
	alert("Your must enter the second 3 digits of your Day Phone!");
	return false;
	}	
	
	else
	{
	alert("Your must enter the first 3 digits of your Day Phone!");
	return false;
	}	
	
	// 40
	
	else
	{
	alert("Your must enter your E-mail Address!");
	return false;
	}			
	
	else
	{
	alert("Your must enter your Last Name!");
	return false;
	}				
	
	else
	{
	alert("Your must enter your First Name!");
	return false;
	}				
}

//-->
