function CheckPage2()
{
f1=f2=f3=f4=f5=f6=f7=f8=f9=f10=f11=f12=f13=f14=f15=f16=f17=f18=true;
flag = true;
f1 = CheckBlank('AddressRow','saddress')
f2 = CheckBlank('CityRow','scity')
f3 = CheckDropList('StateRow','sstate','State')
f4 = CheckDropList('LoanOptionRow','loan_option','Please Choose');
myOption= document.getElementById('loan_option')
if(myOption.options[myOption.selectedIndex].value == 'Purchase')
{
	//loanAmountRow = document.getElementById('LoanAmountRow')
	//loanAmountRow.style.color = '#006600'
	
	f5 = CheckBlank('SalesPriceRow','sales_price');
	f6 = CheckBlank('DownPaymentRow','down_payment');
	//f7 = CheckBlank('DownPercentRow','down_percent');
	if(escrowFlag)
	  f8 = CheckDropList('EscrowRow','escrow_tx','Please Choose');
}  // end if

else
{
	if(document.getElementById('appr_value'))
	{
		f9 = CheckBlank('ApprRow','appr_value');
	    f10 = CheckBlank('LoanAmountRow','loan_amount');
	}
}  // end else

   f11 = CheckBlank('LengthLoanRow','length_loan')
   f12 = CheckDropList('SNatureRow','s_nature','Please Choose')
   
   f13 = CheckBlank('TitleNameRow','title_names')
   f14 = CheckDropList('MannerRow','title_manner','Please Choose')
   f15 = CheckDropList('SourceDownRow','source_down','Please Choose')

  
if(!bankFlag)  
{  f16=CheckBlank('BankNameRow','asset_name');	
   f17=CheckBlank('AccountTypeRow','asset_type');
   f18=CheckBlank('BalanceRow','asset_balance');
}
if(!bankFlag && (!f16 || !f17 || !f18))
{
   alert("You need to have at least one bank account")
}

if(!f1 || !f2 || !f3 || !f4 || !f5 || !f6 || !f7 || !f8 || !f9 || !f10 || !f11 || !f12 || !f13 || !f14 || !f15 || !f16 || !f17 || !f18)
	{
		ErrorR = document.getElementById('ErrorRow')
        if(ErrorR.firstChild)
           ErrorR.removeChild(ErrorR.firstChild)
        txt = document.createTextNode("Please fix the follwing error(s)");
        ErrorR.appendChild(txt) 
		return false
	}
else 
	return true;

}
