function acc()
 {
 if(document.loan.principal.value==0)
 {
 alert("Please Enter Loan Amount");
 document.loan.principal.focus();
 return false;
 }
  
  if(isNaN(document.loan.principal.value))
  {
   alert("Please enter only numbers in Loan Amount");
   document.loan.principal.value="";
   document.loan.principal.focus();
   return false;
  }
	
 if(document.loan.principal.value==0)
  {
   alert("Please Enter Loan Amount");
   document.loan.principal.focus();
   return false;
  }
  
  if(isNaN(document.loan.principal.value))
  {
   alert("Please enter only numbers in Loan Amount");
   document.loan.principal.value="";
   document.loan.principal.focus();
   return false;
  }
	
 if(document.loan.interest.value==0)
  {
   alert("Please Enter Interest Rate");
   document.loan.interest.focus();
   return false;
  }
  
  if(isNaN(document.loan.interest.value))
  {
   alert("Please enter only numbers in Interest Rate");
   document.loan.interest.value="";
   document.loan.interest.focus();
   return false;
  }
	
   if(document.loan.rate.value==0)
  {
   alert("Please Enter Term");
   document.loan.rate.focus();
   return false;
  }
  
  if(isNaN(document.loan.rate.value))
  {
   alert("Please enter only numbers Term");
   document.loan.rate.value="";
   document.loan.rate.focus();
   return false;
  }	
else
 {
 document.loan.action='index.php?action=1'
 document.loan.submit();
 }	
}


var pnt=0;
var plc=new Array();
var h=0;
function fun(x)
{  
	var str=document.getElementById(x).value;
 	var length=str.length;
	var ds=0;
 	var tp=0;
 	var str1="";
 	var dec="";
 	var dx="";
	for(i=0;i<=length; i++)
 	{
		if(str.charAt(i)=='.')
		{
			ds=1;
			++dx
		}
   	
		if(ds!=1)
   		str1+=str.charAt(i);
   
	   if(ds==1)
	   {
		 dec+=str.charAt(i);
	   }
 	}
 	str="";
 	str=str1;
 
 	if(dx>1)
 	{ 
	   alert("Invalid Number");
	   document.getElementById(x).value="";
	   return false;
 	}
	var iChars = "0123456789.";
	var lt=dec.length;
	var st=0;
	for (var i = 0; i <dec.length; i++) 
	{
 		for(var j=0;j<iChars.length;j++)
 		{
			if(dec.charAt(i)==iChars.charAt(j))
			++st
		}

	}
	
	if(st<lt)
	{
		alert("Invalid number after decimal");
		document.getElementById(x).value="";
		return false;
	}
   
 	length=str.length;
 	var temp1="";
	var flag2=0;
 
    for(i=0;i<=length; i++)
	{
	   if(str.charAt(i)!=',' && str.charAt(i)!='.')
	   {
		   flag2=1;
		   temp1+=str.charAt(i);
	   }
	}
	   
	if(flag2==1)
	{
	   str="";
	   str=temp1;
	}
 
 
var length=str.length;

var iChars = "0123456789.";
var lt=str.length;
var st=0;

for (var i = 0; i <str.length; i++) {
for(var j=0;j<iChars.length;j++)
{
if(str.charAt(i)==iChars.charAt(j))
++st
}
}

if(st<lt)
{
alert("Invalid number");
document.getElementById(x).value="";
return false;
}
  
  
if(length>3)
 {
 var last= str.substr((length-3),3);
 var first=str.substr(0,(length-3));
 var res="";
 var flag=0;

 var limit=length-3;
 
 if(limit%2!=0)
 {
   limit=limit+1;
   temp='0';
   temp+=first;
   flag=1;
   }
   else
   {
     temp=first;
	 }
 for(i=0; i<=limit; i++)
 {
    
	if(i%2!=0)
	{
	res+=temp.charAt(i);
	res+=',';
	}
	else
	{
	res+=temp.charAt(i);
	
	}
  
  }
  
  res+=last;
  if(flag==1)
  { 
  length=res.length;
  res=res.substr(1,length);
  }
  }
  else
  {
   res=str;
   }
   
 var ln=dec.length;
 if(ln==1 && dec.charAt(0)=="."  )
 {
document.getElementById(x).style.color='red';
 pnt=1
 plc[++h]=x;
 
 }
 else
 {
 document.getElementById(x).style.color='black';
 pnt=0;
 }
 
 
  var comma=res+dec;
  
  length=comma.length;
 	var tempb="";
	var flagb=0;
 
    for(i=0;i<=length; i++)
	{
	   if(comma.charAt(i)!=',' )
	   {
		   flagb=1;
		   tempb+=comma.charAt(i);
	   }
	}
	   
	if(flagb==1)
	{
	   comma="";
	   comma=tempb;
	}
	
	if(x=="mincome")
  document.getElementById('comma').value=comma;
 else
   document.getElementById('comma').value="";
 
 
 if(x=="lamount")
  document.getElementById('lcheck').value=comma;
 
 
 
 document.getElementById('dc').value=ln;
 document.getElementById(x).value=res+dec;
 document.getElementById('amt').value=dec;
  
 
}

 


function commaSplit(srcNumber) 
{
    var txtNumber = '' + srcNumber;
    if (isNaN(txtNumber)) 
	{
      alert("Please enter only Numbers for loan amount.");
      document.loan.lamount.value="";
      document.loan.lamount.focus();

     
	  return txtNumber;
    }
    else 
	{
      var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
      var arrNumber = txtNumber.split('.');
      arrNumber[0] += '.';
      do 
	  {
        arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
      } while (rxSplit.test(arrNumber[0]));
      if (arrNumber.length > 1) 
	  {
         return arrNumber.join('');
      }
      else 
	  {
         return arrNumber[0].split('.')[0];
      }
   }
   return true;
}
function commaSplit1(srcNumber) 
{
    var txtNumber = '' + srcNumber;
    if (isNaN(txtNumber)) 
	{
      alert("Please enter only Numbers for monthly income.");
      document.loan.mincome.value="";
       document.loan.mincome.focus();
     
	  return txtNumber;
    }
    else 
	{
      var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
      var arrNumber = txtNumber.split('.');
      arrNumber[0] += '.';
      do 
	  {
        arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
      } while (rxSplit.test(arrNumber[0]));
      if (arrNumber.length > 1) 
	  {
         return arrNumber.join('');
      }
      else 
	  {
         return arrNumber[0].split('.')[0];
      }
   }
   return true;
}
function commaSplit2(srcNumber) 
{
    var txtNumber = '' + srcNumber;
    if (isNaN(txtNumber)) 
	{
      alert("Please enter only Numbers for annual income.");
      document.loan.aincome.value="";
       document.loan.aincome.focus();
     
	  return txtNumber;
    }
    else 
	{
      var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
      var arrNumber = txtNumber.split('.');
      arrNumber[0] += '.';
      do 
	  {
        arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
      } while (rxSplit.test(arrNumber[0]));
      if (arrNumber.length > 1) 
	  {
         return arrNumber.join('');
      }
      else 
	  {
         return arrNumber[0].split('.')[0];
      }
    }
  return true;
}

function validate()
{
//check postcode format is valid
 test = document.loan.name.value; size = test.length
 //test = test.toUpperCase(); //Change to uppercase
 while (test.slice(0,1) == " ") //Strip leading spaces
  {test = test.substr(1,size-1);size = test.length
  }
 while(test.slice(size-1,size)== " ") //Strip trailing spaces
  {
  test = test.substr(0,size-1);size = test.length
  }
  document.loan.name.value = test;
		if(pnt==1)
		{
		for(i=1;i<=h;i++)
		{
		x=plc[i];
		alert("Invalid decimal at end");
		document.getElementById(x).value="";
		}
		pnt=0;
		h=0;
		return false;
		}

 if(document.loan.product[document.loan.product.selectedIndex].value==0)
  {
  alert("Please select the type of product you are looking for");
  return false;
  }


  if(document.loan.city[document.loan.city.selectedIndex].value==0)
  {
  alert("Please select the residence city");
  return false;
  }
  
  
 if(document.loan.name.value=="")
  {
   alert("Please enter your Full Name..");
   document.loan.name.focus();
   return false;
  }

   
  if(document.loan.mobile.value==0)
  {
   alert("Please enter your Mobile Number..");
   document.loan.mobile.value="";
   document.loan.mobile.focus();
   return false;
  }
  
  if(document.loan.mobile.value=='')
  {
   alert("Please enter your Mobile Number..");
   document.loan.mobile.value="";
   document.loan.mobile.focus();
   return false;
  }
  if(isNaN(document.loan.mobile.value))
  {
   alert("Please enter only Numbers for Mobile number..");
   document.loan.mobile.value="";
   document.loan.mobile.focus();
   return false;
  }
  
 /* if(document.loan.landline.value=="")
  {
   alert("Please enter Landline STD code");
   document.loan.landline.focus();
   return false;
  }
  if(document.loan.landline.value==0)
  {
   alert("Please enter Landline STD code");
   document.loan.landline.value="";
   document.loan.landline.focus();
   return false;
  }
  
  if(isNaN(document.loan.landline.value))
  {
   alert("Please enter only Numbers for Landline STD code..");
   document.loan.landline.value="";
   document.loan.landline.focus();
   return false;
  }
  if(document.loan.landline1.value=="")
  {
   alert("Please enter Landline phone number");
   document.loan.landline1.focus();
   return false;
  }
  if(document.loan.landline1.value==0)
  {
   alert("Please enter Landline phone number");
   document.loan.landline1.value="";
   document.loan.landline1.focus();
   return false;
  }
  if(isNaN(document.loan.landline1.value))
  {
   alert("Please enter only Numbers for Landline phone number..");
   document.loan.landline1.value="";
   document.loan.landline1.focus();
   return false;
  }
  
 if(document.loan.landline2.value=="")
  {
    alert("please enter numbers for landline Number Ext");
	document.loan.landline2.focus();
	return false;
	
  }
  if(document.loan.landline2.value==0)
  {
    alert("please enter numbers for landline Number Ext");
	document.loan.landline2.value="";
	document.loan.landline2.focus();
	return false;
	
  }
  if(isNaN(document.loan.landline2.value))
  {
   alert("Please enter only Numbers for Landline Number Ext..");
   document.loan.landline2.value="";
   document.loan.landline2.focus();
   return false;
  }*/
  
  test = document.loan.email.value; size = test.length
 //test = test.toUpperCase(); //Change to uppercase
 while (test.slice(0,1) == " ") //Strip leading spaces
  {test = test.substr(1,size-1);size = test.length
  }
 while(test.slice(size-1,size)== " ") //Strip trailing spaces
  {test = test.substr(0,size-1);size = test.length
  }
  document.loan.email.value = test;
  if(document.loan.email.value=="")
  {
   alert("Please enter Email address");
   document.loan.email.focus();
   return false;
  }
  
  if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.loan.email.value)))
  {
   alert("Please enter Valid email-id..");
   document.loan.email.focus();
   return false;
  }
  
  /*if(document.loan.car[document.loan.car.selectedIndex].value=="")
  {
  alert("Please Specify the Car details");
  return false;
  }  */
  if(document.loan.product.value!="2")
 {
  if(document.loan.lamount.value=="")
  {
   alert("Please enter Desired Loan Amount(Only Number's)>=25000");
   document.loan.lamount.focus();
   return false;
  }
 }
  
  var v=document.getElementById('lcheck').value; <!---------------------------------------change made----------->
   if(parseInt(v) <25000)
  {
  alert("Please enter Desired Loan Amount(Only Number's)>=25000");
  document.loan.lamount.focus();
  return false;
  }
  
  if(document.loan.mincome.value=="")
  {
   alert("Please enter Monthly Income(Only Number's)");
   document.loan.mincome.focus();
   return false;
  }
  
  
  //if(document.loan.aincome.value=="")
//  {
//  alert("Please enter Annual Income(Only Number's)");
//  document.loan.aincome.focus();
//  return false;
//  }

  if(document.loan.day[document.loan.day.selectedIndex].value=="")
  {
  alert("Please select Day");
  return false;
  }
  
  if(document.loan.month[document.loan.month.selectedIndex].value=="")
  {
  alert("Please select Month");
  return false;
  }
  
  if(document.loan.year[document.loan.year.selectedIndex].value=="")
  {
  alert("Please select Year");
  return false;
  }
  
  if ((document.loan.month.value == "Apr" || document.loan.month.value =="Jun" || document.loan.month.value == "Sep" || document.loan.month.value == "Nov") && document.loan.day.value==31) 
  {
    alert("Month "+document.loan.month.value+" doesn't have 31 days!")
    return false
  }
   
  if (document.loan.month.value == "Feb")
  { 
   var isleap = (document.loan.year.value % 4 == 0 && (document.loan.year.value % 100 != 0 || document.loan.year.value % 400 == 0));
      if (document.loan.day.value>29 || (document.loan.day.value==29 && !isleap)) 
	  {
          alert("Please enter valid Date of Birth!");
         return false;
      }
   }
 
   
  if(document.loan.type[document.loan.type.selectedIndex].value=="")
  {
   alert("Please select the Employment type");
   return false;
  }
  if(document.loan.check.checked == false)
  {
    alert("Please check terms and conditions");
    return false;
  }
 else
 {
 //document.loan.action='applynow.php?sub=submit'
 document.loan.action='../application.php?sub=submit'
 document.loan.submit();
 }
}

function search1()
{ 			 
			if(document.loan.product.value=="Car Loan")
			{
			   document.getElementById('tab1').style.display="block";
			   document.getElementById('tab2').style.display="none";
			   document.getElementById('tab3').style.display="none";
			   document.getElementById('tab4').style.display="none";
			}
			
			if(document.loan.product.value=="Credit Card")
			{
			   document.getElementById('tab2').style.display="block";
 		   
			   document.getElementById('tab1').style.display="none";
			   document.getElementById('tab3').style.display="none";
			   document.getElementById('tab4').style.display="none";
			}
			
			if(document.loan.product.value=="Home Loan")
			{
			   document.getElementById('tab4').style.display="block";
 		    
			   document.getElementById('tab1').style.display="none";
			   document.getElementById('tab2').style.display="none";
			   document.getElementById('tab3').style.display="none";
			}
			
			
			
			if(document.loan.product.value=="Business Loan")
			{
			   document.getElementById('tab3').style.display="block";
 		   
			   document.getElementById('tab1').style.display="none";
			   document.getElementById('tab2').style.display="none";
			   document.getElementById('tab4').style.display="none";
			}
}
function chg()
         	{
			if(document.loan.product.value==1)
			{
			   document.getElementById('cars').style.display="block";
		    } 
			else
			{
			   document.getElementById('cars').style.display="none";
			}
				
			if(document.loan.product.value==2)
			{
			   document.getElementById('cards').style.display="block";
		    } 
			else
			{
			   document.getElementById('cards').style.display="none";
			}	
			
			if(document.loan.product.value==3 || document.loan.product.value==4)
			{
			   document.getElementById('types').style.display="block";
		    } 
			else
			{
			   document.getElementById('types').style.display="none";
			}	
			
			
			if(document.loan.product.value==5)
			{
			   document.getElementById('nature').style.display="block";
		    } 
			else
			{
			   document.getElementById('nature').style.display="none";
			}	
		
		  if(document.loan.product.value==0)
			{
			    document.getElementById('nature').style.display="block";
			    document.getElementById('types').style.display="block";
				document.getElementById('cards').style.display="block";
				document.getElementById('cars').style.display="block";
		    } 
			
		}

   
   
function uu()
{
	//alert("fdff");
var z=document.loan.co.value;

var y=12;
var c=parseInt(z)*parseInt(y);
document.loan.aincome.value=c;
}
		
		
		
		
		
		
function Checkform()
{
var illegalChars = /\W/; 


     if(document.formLoginInformation.VERIFY_EMAIL.value=='')
	{
			alert("Please Enter Correct Email");
			document.formLoginInformation.VERIFY_EMAIL.focus();
			return false;
	}
	
	if(document.formLoginInformation.VERIFY_MOBILE.value=='')
	{
			alert("Please Enter Mobile No");
			document.formLoginInformation.VERIFY_MOBILE.focus();
			return false;
	}


	
	if(document.formLoginInformation.MAIL_CONF_CODE.value=='')
	{
			alert("Please Enter Password");
			document.formLoginInformation.MAIL_CONF_CODE.focus();
			return false;
	}


	if (illegalChars.test(document.formLoginInformation.MAIL_CONF_CODE.value)) {
		  
			alert ('The Password contains illegal characters.');
			document.formLoginInformation.MAIL_CONF_CODE.value='';
			document.formLoginInformation.MAIL_CONF_CODE.focus();
			return false;
		}


	var km=document.formLoginInformation.MAIL_CONF_CODE.value;
	if(km.length<4)
	{
			alert("Enter Minimum 4 Digits in Password");
			document.formLoginInformation.MAIL_CONF_CODE.value='';
			document.formLoginInformation.MAIL_CONF_CODE.focus();
			return false;
	}
	if(document.formLoginInformation.RE_CONF_CODE.value=='')
	{
			alert('Enter Confirm Password');
			document.formLoginInformation.RE_CONF_CODE.focus();
			return false;
	}

	if (illegalChars.test(document.formLoginInformation.RE_CONF_CODE.value)) {
		  
			alert ('The Confirm Password contains illegal characters.');
			document.formLoginInformation.RE_CONF_CODE.value='';
			document.formLoginInformation.RE_CONF_CODE.focus();
			return false;
		}
	var mk=document.formLoginInformation.RE_CONF_CODE.value;
	if(mk.length<4)
	{
			alert("Enter Minimum 4 Digits in Confirm Password");
			document.formLoginInformation.RE_CONF_CODE.value='';
			document.formLoginInformation.RE_CONF_CODE.focus();
			return false;
	}
	if(km!=mk)
	{
	alert("Passwords Does not Match");
	document.formLoginInformation.MAIL_CONF_CODE.value='';
	document.formLoginInformation.RE_CONF_CODE.value='';
	document.formLoginInformation.MAIL_CONF_CODE.focus();
	return false;
	}


   if ( ( document.formLoginInformation.GENDER[0].checked == false )
    && ( document.formLoginInformation.GENDER[1].checked == false ) )
    {
        alert ( "Please choose your Gender: Male or Female" );
		document.formLoginInformation.GENDER[0].value='';
      return false;
    }




	if ( document.formLoginInformation.LOAN_TENURE.selectedIndex == 0 )
		{
			alert ( "Please select loan tenure." );
			 return false;
		}

	if(document.formLoginInformation.OTHER_EMPLOYER_NAME.value=='')
	{
			alert ("Please Enter Employer Name");
			document.formLoginInformation.OTHER_EMPLOYER_NAME.focus();
			return false;
	}
	



    if(document.formLoginInformation.offCode.value=='')
		{
				alert ("Please Enter Country Code Number");
				document.formLoginInformation.offCode.focus();
				return false;
		}
	if(isNaN(document.formLoginInformation.offCode.value))
	{
			alert("Please Enter Valid Country Code Number");
			document.formLoginInformation.offCode.value=''; 
			document.formLoginInformation.offCode.focus();
			return false;
	}
	if(document.formLoginInformation.offCode.value==0)
	{
			alert ("Please Enter Country Code Number");
			document.formLoginInformation.offCode.value='';
			document.formLoginInformation.offCode.focus();
			return false;
	}
	
	var k=document.formLoginInformation.offCode.value;
	if(k.length<3)
	{
		   alert("Please Enter Three Number");
			document.formLoginInformation.offCode.value=''; 
			document.formLoginInformation.offCode.focus();
			return false;
	}
	if(document.formLoginInformation.offAreaCode.value=='')
	{
			alert ("Please Enter AreaCode Number");
			document.formLoginInformation.offAreaCode.focus();
			return false;
	}
	if(isNaN(document.formLoginInformation.offAreaCode.value))
	{
			alert("Please Enter Valid AreaCode Number");
			document.formLoginInformation.offAreaCode.value='';
			document.formLoginInformation.offAreaCode.focus();
			return false;
	}
	
	if(document.formLoginInformation.offAreaCode.value==0)
	{
			alert ("Please Enter AreaCode Number");
			document.formLoginInformation.offAreaCode.value=''; 
			document.formLoginInformation.offAreaCode.focus();
			return false;
	}
	var m=document.formLoginInformation.offAreaCode.value;
	if(m.length<6)
	{
		   alert("Please Enter Six Number");
			document.formLoginInformation.offAreaCode.value=''; 
			document.formLoginInformation.offAreaCode.focus();
			return false;
	}
	if(document.formLoginInformation.offNo.value=='')
	{
			alert ("Please Enter Phone Number");
			document.formLoginInformation.offNo.focus();
			return false;
	}
	if(isNaN(document.formLoginInformation.offNo.value))
	{
			alert("Please Enter Valid Phone Number");
			document.formLoginInformation.offNo.value='';
			document.formLoginInformation.offNo.focus();
			return false;
	}
	if(document.formLoginInformation.offNo.value==0)
	{
			alert ("Please Enter Phone Number");
			document.formLoginInformation.offNo.value=''; 
			document.formLoginInformation.offNo.focus();
			return false;
	}
	
	var n=document.formLoginInformation.offNo.value;
	if(n.length<8)
	{
		   alert("Please Enter Eight Number");
			document.formLoginInformation.offNo.value=''; 
			document.formLoginInformation.offNo.focus();
			return false;
	}
	
	
	
	
	
	if(document.formLoginInformation.offExt.value=='')
	{
			alert ("Please Enter Ext Number");
			document.formLoginInformation.offExt.focus();
			return false;
	}
	if(isNaN(document.formLoginInformation.offExt.value))
	{
			alert("Please Enter Valid Ext Number");
			document.formLoginInformation.offExt.value='';
			document.formLoginInformation.offExt.focus();
			return false;
	}
	if(document.formLoginInformation.offExt.value==0)
	{
			alert ("Please Enter Ext Number");
			document.formLoginInformation.offExt.value=''; 
			document.formLoginInformation.offExt.focus();
			return false;
	}
	
	var n=document.formLoginInformation.offExt.value;
	if(n.length<5)
	{
		   alert("Please Enter Five Number");
			document.formLoginInformation.offExt.value=''; 
			document.formLoginInformation.offExt.focus();
			return false;
	}

    if ( document.formLoginInformation.CITY_ID.selectedIndex == 0 )
		{
			alert ( "Please select City." );
			 return false;
		}

    if(document.formLoginInformation.OTHER_CITY_NAME.value=='')
	{
			alert ("Please Enter Other City Name");
			document.formLoginInformation.OTHER_CITY_NAME.focus();
			return false;
	}
	
	if(document.formLoginInformation.OTHER_CITY_NAME.value==0)
	{
			alert ("Please Enter Other City Name");
			document.formLoginInformation.OTHER_EMPLOYER_NAME.value='';
			document.formLoginInformation.OTHER_EMPLOYER_NAME.focus();
			return false;
	}
	/*Car Loan*/
	
	if ( document.formLoginInformation.CAR_ON_ROAD_PRICE.value == 0 )
		{
			alert ( "Please Enter Car on Road Price." );
			document.formLoginInformation.CAR_ON_ROAD_PRICE.value='';
			document.formLoginInformation.CAR_ON_ROAD_PRICE.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.CAR_ON_ROAD_PRICE.value =='')
		{
			alert ( "Please Enter Car on Road Price." );
			document.formLoginInformation.CAR_ON_ROAD_PRICE.value='';
			document.formLoginInformation.CAR_ON_ROAD_PRICE.focus();
			 return false;
		}
	
    if ( document.formLoginInformation.CAR_MANUFACTURER.selectedIndex == 0 )
		{
			alert ( "Please select Car Manufacturer." );
			 return false;
		}
     
	 if ( document.formLoginInformation.CAR_MODEL.selectedIndex == 0 )
		{
			alert ( "Please select Car Model." );
			 return false;
		}

   /*Car Loan*/
   

   /*Business Loan*/
   
     if ( document.formLoginInformation.BUS_YEARS_IN_CURRENT_BUSINESS.value == 0 )
		{
			alert ( "Please Enter Years in Current  Business." );
			document.formLoginInformation.BUS_YEARS_IN_CURRENT_BUSINESS.value='';
			document.formLoginInformation.BUS_YEARS_IN_CURRENT_BUSINESS.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.BUS_YEARS_IN_CURRENT_BUSINESS.value =='')
		{
			alert ( "Please Enter Years in Current  Business." );
			document.formLoginInformation.BUS_YEARS_IN_CURRENT_BUSINESS.value='';
			document.formLoginInformation.BUS_YEARS_IN_CURRENT_BUSINESS.focus();
			 return false;
		}
   
    if ( document.formLoginInformation.BUS_TOTAL_WORK_EXP_IN_YEARS.value == 0 )
		{
			alert ( "Please Enter Working Experience." );
			document.formLoginInformation.BUS_TOTAL_WORK_EXP_IN_YEARS.value='';
			document.formLoginInformation.BUS_TOTAL_WORK_EXP_IN_YEARS.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.BUS_TOTAL_WORK_EXP_IN_YEARS.value =='')
		{
			alert ( "Please Enter Working Experience." );
			document.formLoginInformation.BUS_TOTAL_WORK_EXP_IN_YEARS.value='';
			document.formLoginInformation.BUS_TOTAL_WORK_EXP_IN_YEARS.focus();
			 return false;
		}
		
	if ( document.formLoginInformation.BUS_EXISTING_YEARLY_BUSINESS_TURNOVER.value == 0 )
		{
			alert ( "Please Enter Yearly Turnover." );
			document.formLoginInformation.BUS_EXISTING_YEARLY_BUSINESS_TURNOVER.value='';
			document.formLoginInformation.BUS_EXISTING_YEARLY_BUSINESS_TURNOVER.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.BUS_EXISTING_YEARLY_BUSINESS_TURNOVER.value =='')
		{
			alert ( "Please Enter Yearly Turnover." );
			document.formLoginInformation.BUS_EXISTING_YEARLY_BUSINESS_TURNOVER.value='';
			document.formLoginInformation.BUS_EXISTING_YEARLY_BUSINESS_TURNOVER.focus();
			 return false;
		}
		
	if ( document.formLoginInformation.BUS_EXISTING_YEARLY_NET_PROFIT.value == 0 )
		{
			alert ( "Please Enter Yearly Net Profit." );
			document.formLoginInformation.BUS_EXISTING_YEARLY_NET_PROFIT.value='';
			document.formLoginInformation.BUS_EXISTING_YEARLY_NET_PROFIT.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.BUS_EXISTING_YEARLY_NET_PROFIT.value =='')
		{
			alert ( "Please Enter Yearly Net Profit." );
			document.formLoginInformation.BUS_EXISTING_YEARLY_NET_PROFIT.value='';
			document.formLoginInformation.BUS_EXISTING_YEARLY_NET_PROFIT.focus();
			 return false;
		}
		
		
	if ( document.formLoginInformation.BUS_NO_OF_EMPLOYEES.value == 0 )
		{
			alert ( "Please Enter No Of Employees." );
			document.formLoginInformation.BUS_NO_OF_EMPLOYEES.value='';
			document.formLoginInformation.BUS_NO_OF_EMPLOYEES.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.BUS_NO_OF_EMPLOYEES.value =='')
		{
			alert ( "Please Enter No Of Employees." );
			document.formLoginInformation.BUS_NO_OF_EMPLOYEES.value='';
			document.formLoginInformation.BUS_NO_OF_EMPLOYEES.focus();
			 return false;
		}
		
		
	if ( document.formLoginInformation.BUS_REGISTERED_FOR_VAT.selectedIndex == 0 )
		{
			alert ( "Please select VAT." );
		    return false;
		}
			
	if ( document.formLoginInformation.BUS_REGISTERED_FOR_MODVAT.selectedIndex == 0 )
		{
			alert ( "Please select MoDVAT." );
		    return false;
		}
	
	 if ( document.formLoginInformation.BUS_REGISTERED_FOR_TAX.selectedIndex == 0 )
		{
			alert ( "Please select Tax Value." );
			return false;
		}

   /*Business Loan*/
   
   /*Home Loan*/
   
   if ( document.formLoginInformation.IS_PROPERTY_IDENTIFIED.selectedIndex == 0 )
		{
			alert ( "Please select Property Identification." );
			return false;
		}
		
		
	if ( document.formLoginInformation.PROPERTY_AREA.value == 0 )
		{
			alert ( "Please Enter the Property Area." );
			document.formLoginInformation.PROPERTY_AREA.value='';
			document.formLoginInformation.PROPERTY_AREA.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.PROPERTY_AREA.value =='')
		{
			alert ( "Please Enter the Property Area." );
			document.formLoginInformation.PROPERTY_AREA.value='';
			document.formLoginInformation.PROPERTY_AREA.focus();
			 return false;
		}
		
	if ( document.formLoginInformation.PROP_CITY.selectedIndex == 0 )
		{
			alert ( "Please select Property City." );
			return false;
		}
   
   if ( document.formLoginInformation.REGISTRATION_VALUE.value == 0 )
		{
			alert ( "Please Enter the Registration Value." );
			document.formLoginInformation.REGISTRATION_VALUE.value='';
			document.formLoginInformation.REGISTRATION_VALUE.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.REGISTRATION_VALUE.value =='')
		{
			alert ( "Please Enter the Registration Value." );
			document.formLoginInformation.REGISTRATION_VALUE.value='';
			document.formLoginInformation.REGISTRATION_VALUE.focus();
			 return false;
		}
		
	if ( document.formLoginInformation.MARKET_VALUE.value == 0 )
		{
			alert ( "Please Enter the Market Value." );
			document.formLoginInformation.MARKET_VALUE.value='';
			document.formLoginInformation.MARKET_VALUE.focus();
			 return false;
		}
		
	 if ( document.formLoginInformation.MARKET_VALUE.value =='')
		{
			alert ( "Please Enter the Market Value." );
			document.formLoginInformation.MARKET_VALUE.value='';
			document.formLoginInformation.MARKET_VALUE.focus();
			 return false;
		}
		
  /*Home Loan*/ 
return true;
}
		
		
	 function chgyes()
         	{
			if(document.formLoginInformation.IS_PROPERTY_IDENTIFIED.value=='Y')
			{
			   document.getElementById('Y').style.display="block";
		    } 
			else
			{
			   document.getElementById('Y').style.display="none";
			}
				
			
		
		  if(document.formLoginInformation.IS_PROPERTY_IDENTIFIED.value==0)
			{
			    document.getElementById('Y').style.display="block";
			   
		    } 
			
		}
	
	

	
	function chgother1()
         	{
			if(document.formLoginInformation.CITY_ID.value==998)
			{
			   document.getElementById('other1').style.display="block";
		    } 
			else
			{
			   document.getElementById('other1').style.display="none";
			}
				
			
		
		  if(document.formLoginInformation.CITY_ID.value==0)
			{
			    document.getElementById('other1').style.display="none";
			   
		    } 
			
		}
		
		function chgother()
         	{
			if(document.formLoginInformation.CITY_ID.value==999)
			{
			   document.getElementById('other').style.display="block";
		    } 
			else
			{
			   document.getElementById('other').style.display="none";
			}
				
			
		
		  if(document.formLoginInformation.CITY_ID.value==0)
			{
			    document.getElementById('other').style.display="none";
			   
		    } 
			
		}
			
		
		
		
		
function disp()
 {
  if(document.formLoginInformation.chk_loan.checked!='')
 {
    document.getElementById("ashok").style.display="block";
  }
  
  else
  {
	document.getElementById("ashok").style.display="none"; 	
  }
  
  if(document.formLoginInformation.chk_loan.checked==0)
 {
    document.getElementById("ashok").style.display="none";
  }
   
}
		
function lamt()
{
 //alert("welcome");
 if(document.loan.product.value==2)
 {
  document.getElementById('lon_amt').style.display="none";
 } 
 else
 {
  document.getElementById('lon_amt').style.display="block";
 }
}		
		
		
