function validation()
{
	//alert('prasanna');

		if(document.form1.product.value=='')
		{
		alert("Please Select Product Type !");
		document.form1.product.focus();
		return false;
		}
		
		if(document.form1.loan_purpose_type.value=='')
		{
		alert("Please Select Loan Type !");
		document.form1.loan_purpose_type.focus();
		return false;
		}
			if(document.form1.product.value=="Insurance"&&document.form1.loan_purpose_type.value=="Auto Insurance")
		{
			//alert("ram");
			if(document.form1.fullname.value=='')
			{
			alert("Please Enter Your Full Name !");
			document.form1.fullname.focus();
			return false;
			}
			if(document.form1.city.value=='')
			{
			alert("Please Select City !");
			document.form1.city.focus();
			return false;
			}
			if(document.form1.country_code.value=='')
			{
			alert("Please Enter Your Country Code !");
			document.form1.country_code.focus();
			return false;
			}
			if(!is_number(document.form1.country_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.country_code.value=='';
			document.form1.country_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone_no.value=='')
			{
			alert("Please Enter Your Mobile Number !");
			document.form1.phone_no.focus();
			return false;
			}
			if(!is_number(document.form1.phone_no.value))
			{
			alert('Please Enter Numeric Mobile Number !');
			document.form1.phone_no.value=='';
			document.form1.phone_no.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.std_code.value=="")
			{
			alert("Please Enter Country Code !");
			document.form1.std_code.focus();
			return false;
			}
			if(!is_number(document.form1.std_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.std_code.value=="";
			document.form1.std_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			if(!is_number(document.form1.phone.value))
			{
			alert('Please Enter Numeric Phone Number !');
			document.form1.phone.value=="";
			document.form1.phone.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			
			if(document.form1.email.value=="")
			{
			alert("Please Enter Email Id !");
			document.form1.email.focus();
			return false;
			}
			if(!is_email(document.form1.email.value))
			{
			alert('Please Enter the Correct Email Id!');
			document.form1.email.value=="";
			document.form1.email.focus();
			return false;
			}
			if(document.form1.Monthly_income.value=="")
			{
			alert("Please Enter Monthly Income !");
			document.form1.Monthly_income.focus();
			return false;
			}
			if(!is_number(document.form1.Monthly_income.value))
			{
			alert('Please Enter Numeric Monthly Income !');
			document.form1.Monthly_income.value=="";
			document.form1.Monthly_income.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			/*if(document.form1.loan_amount.value=="")
			{
			alert("Please Enter Loan Amount !");
			document.form1.loan_amount.focus();
			return false;
			}
			if(!is_number(document.form1.loan_amount.value))
			{
			alert('Please Enter Numeric Loan Amount !');
			document.form1.loan_amount.value=="";
			document.form1.loan_amount.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.selection.value=="")
			{
			alert("Please Select Loan Purpose !");
			document.form1.selection.focus();
			return false;
			}*/
			
			if(document.form1.dob_day.value=="")
			{
			alert("Please Select Birth Day !");
			document.form1.dob_day.focus();
			return false;
			}
			
			if(document.form1.dob_month.value=="")
			{
			alert("Please Select Month of Birth !");
			document.form1.dob_month.focus();
			return false;
			}
			if(document.form1.dob_year.value=="")
			{
			alert("Please Select Year of Birth !");
			document.form1.dob_year.focus();
			return false;
			}
			/*if(document.form1.employee_type.value=="")
			{
			alert("Please Select Employee Type !");
			document.form1.employee_type.focus();
			return false;
			}*/
			
		}	
		
		<!--######################################################## -->
			if(document.form1.product.value=="Credit Cards")
		{
			//alert("ram");
			if(document.form1.fullname.value=="")
			{
			alert("Please Enter Your Full Name !");
			document.form1.fullname.focus();
			return false;
			}
			if(document.form1.city.value=="")
			{
			alert("Please Select City !");
			document.form1.city.focus();
			return false;
			}
			if(document.form1.country_code.value=="")
			{
			alert("Please Enter Your Country Code !");
			document.form1.country_code.focus();
			return false;
			}
			if(!is_number(document.form1.country_code.value))
			{
			alert('Please Enter numeric Country code !');
			document.form1.country_code.value=="";
			document.form1.country_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone_no.value=="")
			{
			alert("Please Enter Your Mobile Number");
			document.form1.phone_no.focus();
			return false;
			}
			if(!is_number(document.form1.phone_no.value))
			{
			alert('Please Enter Numeric Mobile Number !');
			document.form1.phone_no.value=="";
			document.form1.phone_no.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.std_code.value=="")
			{
			alert("Please Enter Country Code");
			document.form1.std_code.focus();
			return false;
			}
			if(!is_number(document.form1.std_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.std_code.value=="";
			document.form1.std_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			if(!is_number(document.form1.phone.value))
			{
			alert('Please Enter Numeric Phone Number !');
			document.form1.phone.value=="";
			document.form1.phone.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			
			if(document.form1.email.value=="")
			{
			alert("Please Enter Email Id !");
			document.form1.email.focus();
			return false;
			}
			if(!is_email(document.form1.email.value))
			{
			alert('Please Enter the Correct Email Id!');
			document.form1.email.value=="";
			document.form1.email.focus();
			return false;
			}
			if(document.form1.Monthly_income.value=="")
			{
			alert("Please Enter Monthly Income !");
			document.form1.Monthly_income.focus();
			return false;
			}
			if(!is_number(document.form1.Monthly_income.value))
			{
			alert('Please Enter Numeric Monthly Income !');
			document.form1.Monthly_income.value=="";
			document.form1.Monthly_income.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			/*if(document.form1.loan_amount.value=="")
			{
			alert("Please Enter Loan Amount !");
			document.form1.loan_amount.focus();
			return false;
			}
			if(!is_number(document.form1.loan_amount.value))
			{
			alert('Please Enter Numeric Loan Amount !');
			document.form1.loan_amount.value=="";
			document.form1.loan_amount.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.selection.value=="")
			{
			alert("Please Select Loan Purpose !");
			document.form1.selection.focus();
			return false;
			}*/
			
			if(document.form1.dob_day.value=="")
			{
			alert("Please Select Birth Day !");
			document.form1.dob_day.focus();
			return false;
			}
			
			if(document.form1.dob_month.value=="")
			{
			alert("Please Select Month of Birth !");
			document.form1.dob_month.focus();
			return false;
			}
			if(document.form1.dob_year.value=="")
			{
			alert("Please Select Year of Birth !");
			document.form1.dob_year.focus();
			return false;
			}
			if(document.form1.select_card_type.value=="")
			{
			alert("Please Select Card Type !");
			document.form1.select_card_type.focus();
			return false;
			}
			
		}	
		<!--####################################################### -->
		//###################################
		if(document.form1.product.value=="Loan"&&document.form1.loan_purpose_type.value=="Home Loan"||document.form1.product.value=="Loan"&&document.form1.loan_purpose_type.value=="Personal Loan"||document.form1.product.value=="Loan"&&document.form1.loan_purpose_type.value=="Loan Against Property")
		{
		
			if(document.form1.fullname.value=="")
			{
			alert("Please Enter Your Full Name !");
			document.form1.fullname.focus();
			return false;
			}
			if(document.form1.city.value=="")
			{
			alert("Please Select City !");
			document.form1.city.focus();
			return false;
			}
			if(document.form1.country_code.value=="")
			{
			alert("Please Enter Your Country Code !");
			document.form1.country_code.focus();
			return false;
			}
			if(!is_number(document.form1.country_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.country_code.value=="";
			document.form1.country_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone_no.value=="")
			{
			alert("Please Enter Your Mobile Number");
			document.form1.phone_no.focus();
			return false;
			}
			if(!is_number(document.form1.phone_no.value))
			{
			alert('Please Enter Numeric Mobile Number !');
			document.form1.phone_no.value=="";
			document.form1.phone_no.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.std_code.value=="")
			{
			alert("Please Enter Country Code");
			document.form1.std_code.focus();
			return false;
			}
			if(!is_number(document.form1.std_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.std_code.value=="";
			document.form1.std_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			if(!is_number(document.form1.phone.value))
			{
			alert('Please Enter Numeric Phone Number !');
			document.form1.phone.value=="";
			document.form1.phone.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			
			if(document.form1.email.value=="")
			{
			alert("Please Enter Email Id !");
			document.form1.email.focus();
			return false;
			}
			if(!is_email(document.form1.email.value))
			{
			alert('Please Enter the Correct Email Id!');
			document.form1.email.value=="";
			document.form1.email.focus();
			return false;
			}
			if(document.form1.Monthly_income.value=="")
			{
			alert("Please Enter Monthly Income !");
			document.form1.Monthly_income.focus();
			return false;
			}
			if(!is_number(document.form1.Monthly_income.value))
			{
			alert('Please Enter Numeric Monthly Income !');
			document.form1.Monthly_income.value=="";
			document.form1.Monthly_income.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.dob_day.value=="")
			{
			alert("Please Select Birth Day !");
			document.form1.dob_day.focus();
			return false;
			}
			
			if(document.form1.dob_month.value=="")
			{
			alert("Please Select Month of Birth !");
			document.form1.dob_month.focus();
			return false;
			}
			if(document.form1.dob_year.value=="")
			{
			alert("Please Select Year of Birth !");
			document.form1.dob_year.focus();
			return false;
			}
			if(document.form1.employee_type.value=="")
			{
			alert("Please Select Employee Type !");
			document.form1.employee_type.focus();
			return false;
			}
			
			if(document.form1.loan_amount.value=="")
			{
			alert("Please Enter Loan Amount !");
			document.form1.loan_amount.focus();
			return false;
			}
			if(!is_number(document.form1.loan_amount.value))
			{
			alert('Please Enter Numeric Loan Amount !');
			document.form1.loan_amount.value=="";
			document.form1.loan_amount.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.selection.value=="")
			{
			alert("Please Select Loan Purpose !");
			document.form1.selection.focus();
			return false;
			}
			
			
		}	
		<!--#################################################################### -->
		if(document.form1.product.value=="Loan"&&document.form1.loan_purpose_type.value=="Business Loan")
		{
		
			if(document.form1.fullname.value=="")
			{
			alert("Please Enter Your Full Name !");
			document.form1.fullname.focus();
			return false;
			}
			if(document.form1.city.value=="")
			{
			alert("Please Select City !");
			document.form1.city.focus();
			return false;
			}
			if(document.form1.country_code.value=="")
			{
			alert("Please Enter Your Country Code !");
			document.form1.country_code.focus();
			return false;
			}
			if(!is_number(document.form1.country_code.value))
			{
			alert('Please Enter numeric Country code !');
			document.form1.country_code.value=="";
			document.form1.country_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone_no.value=="")
			{
			alert("Please Enter Your Mobile Number");
			document.form1.phone_no.focus();
			return false;
			}
			if(!is_number(document.form1.phone_no.value))
			{
			alert('Please Enter Numeric Mobile Number !');
			document.form1.phone_no.value=="";
			document.form1.phone_no.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.std_code.value=="")
			{
			alert("Please Enter Country Code");
			document.form1.std_code.focus();
			return false;
			}
			if(!is_number(document.form1.std_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.std_code.value=="";
			document.form1.std_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			if(!is_number(document.form1.phone.value))
			{
			alert('Please Enter Numeric Phone Number !');
			document.form1.phone.value=="";
			document.form1.phone.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			
			if(document.form1.email.value=="")
			{
			alert("Please Enter Email Id !");
			document.form1.email.focus();
			return false;
			}
			if(!is_email(document.form1.email.value))
			{
			alert('Please Enter the Correct Email Id!');
			document.form1.email.value=="";
			document.form1.email.focus();
			return false;
			}
			if(document.form1.Monthly_income.value=="")
			{
			alert("Please Enter Monthly Income !");
			document.form1.Monthly_income.focus();
			return false;
			}
			if(!is_number(document.form1.Monthly_income.value))
			{
			alert('Please Enter Numeric Monthly Income !');
			document.form1.Monthly_income.value=="";
			document.form1.Monthly_income.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.dob_day.value=="")
			{
			alert("Please Select Birth Day !");
			document.form1.dob_day.focus();
			return false;
			}
			
			if(document.form1.dob_month.value=="")
			{
			alert("Please Select Month of Birth !");
			document.form1.dob_month.focus();
			return false;
			}
			if(document.form1.dob_year.value=="")
			{
			alert("Please Select Year of Birth !");
			document.form1.dob_year.focus();
			return false;
			}
			if(document.form1.employee_type.value=="")
			{
			alert("Please Select Employee Type !");
			document.form1.employee_type.focus();
			return false;
			}
			
			if(document.form1.loan_amount.value=="")
			{
			alert("Please Enter Loan Amount !");
			document.form1.loan_amount.focus();
			return false;
			}
			if(!is_number(document.form1.loan_amount.value))
			{
			alert('Please Enter Numeric Loan Amount !');
			document.form1.loan_amount.value=="";
			document.form1.loan_amount.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.selection.value=="")
			{
			alert("Please Select Nature of Security !");
			document.form1.selection.focus();
			return false;
			}
			
			
		}	
		
		<!--################################################################## -->
		if(document.form1.product.value=="Loan"&&document.form1.loan_purpose_type.value=="Car Loan")
		{
			//alert("india");
			if(document.form1.fullname.value=="")
			{
			alert("Please Enter Your Full Name !");
			document.form1.fullname.focus();
			return false;
			}
			if(document.form1.city.value=="")
			{
			alert("Please Select City !");
			document.form1.city.focus();
			return false;
			}
			if(document.form1.country_code.value=="")
			{
			alert("Please Enter Your Country Code !");
			document.form1.country_code.focus();
			return false;
			}
			if(!is_number(document.form1.country_code.value))
			{
			alert('Please Enter numeric Country code !');
			document.form1.country_code.value=="";
			document.form1.country_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone_no.value=="")
			{
			alert("Please Enter Your Mobile Number");
			document.form1.phone_no.focus();
			return false;
			}
			if(!is_number(document.form1.phone_no.value))
			{
			alert('Please Enter Numeric Mobile Number !');
			document.form1.phone_no.value=="";
			document.form1.phone_no.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.std_code.value=="")
			{
			alert("Please Enter Country Code");
			document.form1.std_code.focus();
			return false;
			}
			if(!is_number(document.form1.std_code.value))
			{
			alert('Please Enter Numeric Country Code !');
			document.form1.std_code.value=="";
			document.form1.std_code.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			if(!is_number(document.form1.phone.value))
			{
			alert('Please Enter Numeric Phone Number !');
			document.form1.phone.value=="";
			document.form1.phone.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.phone.value=="")
			{
			alert("Please Enter Phone Number!");
			document.form1.phone.focus();
			return false;
			}
			
			if(document.form1.email.value=="")
			{
			alert("Please Enter Email Id !");
			document.form1.email.focus();
			return false;
			}
			if(!is_email(document.form1.email.value))
			{
			alert('Please Enter the Correct Email Id!');
			document.form1.email.value=="";
			document.form1.email.focus();
			return false;
			}
			if(document.form1.Monthly_income.value=="")
			{
			alert("Please Enter Monthly Income !");
			document.form1.Monthly_income.focus();
			return false;
			}
			if(!is_number(document.form1.Monthly_income.value))
			{
			alert('Please Enter Numeric Monthly Income !');
			document.form1.Monthly_income.value=="";
			document.form1.Monthly_income.focus();
			//document.form1.txtCustZip.select();
			return false;
			}
			if(document.form1.loan_amount.value=="")
			{
			alert("Please Enter Loan Amount !");
			document.form1.loan_amount.focus();
			return false;
			}
			if(!is_number(document.form1.loan_amount.value))
			{
			alert('Please Enter Numeric Loan Amount !');
			document.form1.loan_amount.value=="";
			document.form1.loan_amount.focus();
			//document.form1.txtCustZip.select();
			return false;

			}
			/*if(document.form1.selection.value=="")
			{
			alert("Please Select Loan Purpose !");
			document.form1.selection.focus();
			return false;
			}*/
			
			if(document.form1.dob_day.value=="")
			{
			alert("Please Select Birth Day !");
			document.form1.dob_day.focus();
			return false;
			}
			
			if(document.form1.dob_month.value=="")
			{
			alert("Please Select Month of Birth !");
			document.form1.dob_month.focus();
			return false;
			}
			if(document.form1.dob_year.value=="")
			{
			alert("Please Select Year of Birth !");
			document.form1.dob_year.focus();
			return false;
			}
			if(document.form1.employee_type.value=="")
			{
			alert("Please Select Employee Type !");
			document.form1.employee_type.focus();
			return false;
			}
			
				}
	
}
//Fuction check Numeric and email validation
function is_email(email)
	{
		if(!email.match(/^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/))
			return false;
		return true;
	}
// End of is_email Function

//  this function checks the given number is signed/unsigned number
//  and return true or false accordingly.
	function is_number(number)
	{
		if(!number.match(/^[\-\+0-9e1-9]+$/))
			return false;
		return true;
	}
	//End of Fuction check Numeric and email validation

function change_loan_type(id)
{
	//alert(id);
	if(id=="Home Loan")
	{
		document.getElementById("loan_purpose").innerHTML ='<select name="selection" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="">Select Loan Purpose</option><option value="Buying a Flat">Buying a Flat</option><option value="Plot or Land">Plot or Land</option><option value="Individual House">Individual House</option><option value="House Construction">House Construction</option><option value="Home Remodeling">Home Remodeling</option><option value="Others">Others</option></select>';
		document.getElementById('loan_purpose1').style.display = "none";
		document.getElementById('car_loan').style.display = "block";
		document.getElementById('car_loan').style.display = "block";
		document.getElementById('loan_purpose').style.display = "block";
		document.getElementById('car_loan1').style.display = "none";
		//document.getElementById('loan_purpose_type').style.display = "none";
		document.getElementById('nature_security').style.display = "none";
		document.getElementById('loan_purpose_sec').style.display = "none";
	}
	if(id=="Car Loan")
	{
		//alert(id);
		document.getElementById('loan_purpose1').style.display = "block";
				document.getElementById('car_loan').style.display = "none";
		document.getElementById('loan_purpose').style.display = "none";

		document.getElementById('car_loan1').style.display = "block";
		document.getElementById('nature_security').style.display = "none";
		document.getElementById('loan_purpose_sec').style.display = "none";
		document.getElementById('card_type').style.display = "none";
		document.getElementById('car_loan').style.display = "none";
		//document.getElementById('loan_purpose').style.display = "none";
		
		//document.getElementById('loan_purpose_type').style.display = "block";
		
	}
	if(id=="Personal Loan")
	{
		
		document.getElementById("loan_purpose").innerHTML ='<select name="selection" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="">Select Loan Purpose</option><option value=">Business Purpose">Business Purpose</option><option value="Child Education">Child Education</option><option value="Investment Purpose">Investment Purpose</option><option value="Medical Expenses">Medical Expenses</option><option value="Wedding Expenses"> Wedding Expenses</option><option value="Others">Others</option></select>';
		document.getElementById('loan_purpose1').style.display = "none";
		document.getElementById('car_loan').style.display = "block";
		document.getElementById('loan_purpose').style.display = "block";
		document.getElementById('car_loan1').style.display = "none";
		//document.getElementById('loan_purpose_type').style.display = "none";
		document.getElementById('nature_security').style.display = "none";
	}
	if(id=="Loan Against Property")
	{
		//document.getElementById('loan_purpose').style.display = "none";
		document.getElementById("loan_purpose").innerHTML ='<select name="selection" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="">Select Loan Purpose</option><option value="Business Purpose">Business Purpose</option><option value="Child Education">Child Education</option><option value="Investment Purpose">Investment Purpose</option><option value="Medical Expenses">Medical Expenses</option><option value="Others">Others</option></select>';
		document.getElementById('loan_purpose1').style.display = "none";
		document.getElementById('car_loan').style.display = "block";
		document.getElementById('loan_purpose').style.display = "block";
		document.getElementById('car_loan1').style.display = "none";
		//document.getElementById('loan_purpose_type').style.display = "none";
		document.getElementById('nature_security').style.display = "none";
	}
	if(id=="Business Loan")
	{
		//document.getElementById('loan_purpose').style.display = "none";
		document.getElementById("loan_purpose_sec").innerHTML ='<select name="selection" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="">Nature Of Security</option><option value="Unsecured">Unsecured</option><option value="Property">Property</option><option value="Jewellery">Jewellery</option><option value="Others">Others</option></select>';
		document.getElementById('loan_purpose1').style.display = "none";
		document.getElementById('nature_security').style.display = "block";
		document.getElementById('car_loan').style.display = "none";
		document.getElementById('loan_purpose_sec').style.display = "block";
		document.getElementById('loan_purpose').style.display = "none";
		document.getElementById('car_loan1').style.display = "none";
		//document.getElementById('loan_purpose_type').style.display = "none";
	}
}
function city_text(id)
{
	
	if(id=="Other City")
	{
		document.getElementById('other_city').style.display = "block";
		document.getElementById('other_city1').style.display = "block";
		}
		else
			{
				document.getElementById('other_city').style.display = "none";
				document.getElementById('other_city1').style.display = "none";
			}
	
}
function indiacode()
{
	 document.getElementById('test7').style.display = "block";
	  document.getElementById('test8').style.display = "none";

}
function city_text()
{
 //alert("hello i am in on change");
 document.getElementById('test7').style.display = "none";
 document.getElementById('test8').style.display = "block";
document.getElementById('test8').innerHTML ='<select name="selection" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="0" selected>--Country Code--</option><option value="93">Afghanistan-93</option><option value="355">Albania-355</option><option value="213">Algeria-213</option><option value="684">American Samoa-684</option><option value="376">Andorra-376</option><option value="244">Angola-244</option><option value="1">Anguilla-1</option><option value="1">Antigua and Barbuda-1</option><option value="54">Argentine Republic-54</option><option value="374">Armenia-374</option><option value="297">Aruba-297</option><option value="247">Ascension-247</option><option value="61">Australia-61</option><option value="672">Australian External Territories-672</option><option value="43">Austria-43</option><option value="994">Azerbaijani Republic-994</option><option value="1">Bahamas-1</option><option value="973">Bahrain-973</option><option value="880">Bangladesh-880</option><option value="1">Barbados-1</option><option value="375">Belarus-375</option><option value="32">Belgium-32</option><option value="501">Belize-501</option><option value="229">Benin-229</option><option value="1">Bermuda-1</option><option value="975">Bhutan-975</option><option value="591">Bolivia-591</option><option value="387">Bosnia and Herzegovina-387</option><option value="267">Botswana-267</option><option value="55">Brazil-55</option><option value="1">British Virgin Islands-1</option><option value="673">Brunei Darussalam-673</option><option value="359">Bulgaria-359</option><option value="226">Burkina Faso-226</option><option value="257">Burundi-257</option><option value="855">Cambodia-855</option><option value="237">Cameroon-237</option><option value="1">Canada-1</option><option value="238">Cape Verde-238</option><option value="1">Cayman Islands-1</option><option value="236">Central African Republic-236</option><option value="235">Chad-235</option><option value="56">Chile-56</option><option value="86">China-86</option><option value="57">Colombia-57</option><option value="269">Comoros-269</option><option value="242">Congo-242</option><option value="682">Cook Islands-682</option><option value="506">Costa Rica-506</option><option value="385">Croatia-385</option><option value="53">Cuba-53</option><option value="357">Cyprus-357</option><option value="420">Czech Republic-420</option><option value="243">Democratic Republic of the Congo-243</option><option value="45">Denmark-45</option><option value="246">Diego Garcia-246</option><option value="253">Djibouti-253</option><option value="1">Dominica-1</option><option value="1">Dominican Republic-1</option><option value="670">East Timor-670</option><option value="593">Ecuador-593</option><option value="20">Egypt-20</option><option value="503">El Salvador-503</option><option value="240">Equatorial Guinea-240</option><option value="291">Eritrea-291</option><option value="372">Estonia-372</option><option value="251">Ethiopia-251</option><option value="687">ew Caledonia-687</option><option value="500">Falkland Islands-500</option><option value="298">Faroe Islands-298</option><option value="679">Fiji-679</option><option value="358">Finland-358</option><option value="33">France-33</option><option value="594">French Guiana-594</option><option value="689">French Polynesia-689</option><option value="241">Gabonese Republic-241</option><option value="220">Gambia-220</option><option value="995">Georgia-995</option><option value="49">Germany-49</option><option value="233">Ghana-233</option><option value="350">Gibraltar-350</option><option value="30">Greece-30</option><option value="299">Greenland-299</option><option value="1">Grenada-1</option><option value="590">Guadeloupe-590</option><option value="1">Guam-1</option><option value="502">Guatemala-502</option><option value="224">Guinea-224</option><option value="245">Guinea-Bissau-245</option><option value="592">Guyana-592</option><option value="509">Haiti-509</option><option value="504">Honduras-504</option><option value="852">HONG KONG-852</option><option value="36">Hungary-36</option><option value="354">Iceland-354</option><option value="91">India-91</option><option value="62">Indonesia-62</option><option value="872">Inmarsat-872</option><option value="873">Inmarsat-873</option><option value="874">Inmarsat-874</option><option value="871">Inmarsat-871</option><option value="870">Inmarsat SNAC-870</option><option value="800">International Freephone Service-800</option><option value="98">Iran-98</option><option value="964">Iraq-964</option><option value="353">Ireland-353</option><option value="972">Israel-972</option><option value="39">Italy-39</option><option value="1">Jamaica-1</option><option value="81">Japan-81</option><option value="962">Jordan-962</option><option value="7">Kazakstan-7</option><option value="254">Kenya-254</option><option value="686">Kiribati-686</option><option value="82">Korea-82</option><option value="965">Kuwait-965</option><option value="996">Kyrgyz Republic-996</option><option value="371">Latvia (Republic of)-371</option><option value="961">Lebanon-961</option><option value="266">Lesotho-266</option><option value="231">Liberia-231</option><option value="218">Libya-218</option><option value="423">Liechtenstein-423</option><option value="370">Lithuania-370</option><option value="352">Luxembourg-352</option><option value="853">Macau-853</option><option value="261">Madagascar-261</option><option value="265">Malawi-265</option><option value="60">Malaysia-60</option><option value="960">Maldives-960</option><option value="223">Mali-223</option><option value="356">Malta-356</option><option value="692">Marshall Islands-692</option><option value="596">Martinique-596</option><option value="222">Mauritania-222</option><option value="230">Mauritius-230</option><option value="269">Mayotte-269</option><option value="52">Mexico-52</option><option value="691">Micronesia-691</option><option value="373">Moldova-373</option><option value="377">Monaco-377</option><option value="976">Mongolia-976</option><option value="1">Montserrat-1</option><option value="212">Morocco-212</option><option value="258">Mozambique-258</option><option value="95">Myanmar-95</option><option value="264">Namibia-264</option><option value="674">Nauru-674</option><option value="977">Nepal-977</option><option value="31">Netherlands-31</option><option value="599">Netherlands Antilles-599</option><option value="64">New Zealand-64</option><option value="505">Nicaragua-505</option><option value="227">Niger-227</option><option value="234">Nigeria-234</option><option value="683">Niue-683</option><option value="1">Northern Mariana Islands-1</option><option value="47">Norway-47</option><option value="968">Oman-968</option><option value="92">Pakistan-92</option><option value="680">Palau-680</option><option value="507">Panama-507</option><option value="675">Papua New Guinea-675</option><option value="595">Paraguay-595</option><option value="51">Peru-51</option><option value="63">Philippines-63</option><option value="48">Poland-48</option><option value="351">Portugal-351</option><option value="1">Puerto Rico-1</option><option value="974">Qatar-974</option><option value="262">Reunion-262</option><option value="40">Romania-40</option><option value="7">Russian Federation-7</option><option value="250">Rwandese Republic-250</option><option value="290">Saint Helena-290</option><option value="1">Saint Kitts and Nevis-1</option><option value="1">Saint Lucia-1</option><option value="508">Saint Pierre and Miquelon-508</option><option value="1">Saint Vincent and the Grenadines-1</option><option value="685">Samoa-685</option><option value="378">San Marino-378</option><option value="239">Sao Tome and Principe-239</option><option value="966">Saudi Arabia-966</option><option value="221">Senegal-221</option><option value="248">Seychelles-248</option><option value="232">Sierra Leone-232</option><option value="65">Singapore-65</option><option value="421">Slovak Republic-421</option><option value="386">Slovenia-386</option><option value="677">Solomon Islands-677</option><option value="252">Somali Democratic Republic-252</option><option value="27">South Africa-27</option><option value="34">Spain-34</option><option value="94">Sri Lanka-94</option><option value="249">Sudan-249</option><option value="597">Suriname-597</option><option value="268">Swaziland-268</option><option value="46">Sweden-46</option><option value="41">Switzerland-41</option><option value="963">Syrian Arab Republic-963</option><option value="992">Tajikistan-992</option><option value="255">Tanzania-255</option><option value="66">Thailand-66</option><option value="389">The Former Yugoslav Republic of Macedonia-389</option><option value="228">Togolese Republic-228</option><option value="690">Tokelau-690</option><option value="676">Tonga-676</option><option value="1">Trinidad and Tobago-1</option><option value="216">Tunisia-216</option><option value="90">Turkey-90</option><option value="993">Turkmenistan-993</option><option value="1">Turks and Caicos Islands-1</option><option value="688">Tuvalu-688</option><option value="256">Uganda-256</option><option value="380">Ukraine-380</option><option value="971">United Arab Emirates-971</option><option value="44">United Kingdom of Great Britain and Northern Ireland-44</option><option value="1">United States of America-1</option><option value="1">United States Virgin Islands-1</option><option value="598">Uruguay-598</option><option value="998">Uzbekistan-998</option><option value="678">Vanuatu-678</option><option value="379">Vatican City State-379</option><option value="39">Vatican City State-39</option><option value="58">Venezuela-58</option><option value="84">Viet Nam-84</option><option value="681">Wallis and Futuna-681</option><option value="967">Yemen-967</option><option value="381">Yugoslavia-381</option><option value="260">Zambia-260</option><option value="263">Zimbabwe-263</option></select>';

}

function cahagecombodata(id)
{
	//alert(id);
	
	if(id=="Loan")
	{
		//alert(id);
		//document.getElementById('loan_purpose_type').style.display = "block";
		document.getElementById('test').style.display = "block";
		document.getElementById("test").innerHTML ='<select name="loan_purpose_type" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;" onChange="change_loan_type(this.value);"><option value="">Select Loan Type</option><option value="Home Loan">Home Loan</option><option value="Car Loan">Car Loan</option><option value="Personal Loan">Personal Loan</option><option value="Loan Against Property">Loan Against Property</option><option value="Business Loan">Business Loan</option><option value="Education Loan">Education Loan</option></select>';
					document.getElementById('emp_type').style.display = "block";
			document.getElementById('emp_type1').style.display = "block";
						document.getElementById('loan_amount').style.display = "block";
			document.getElementById('loan_amount1').style.display = "block";
						document.getElementById('car_loan').style.display = "block";
			document.getElementById('loan_purpose').style.display = "block";
			document.getElementById('insurance_type').style.display = "none";
			document.getElementById('loan_type').style.display = "block";
			document.getElementById('car_loan').style.display = "block";
			document.getElementById('card_type').style.display = "none";
	document.getElementById('nature_security').style.display = "none";
			//document.getElementById('loan_purpose_type').style.display = "none";


		
			
		
		}
		if(id=='Insurance')
		{
			//document.getElementById('loan_purpose_type').style.display = "none";
			document.getElementById("test").innerHTML ='<select name="loan_purpose_type" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="Auto Insurance">Auto Insurance</option><option value="Health Insurance">Health Insurance</option><option value="Life Insurance">Life Insurance</option><option value="Householder Insurance">Householder Insurance</option><option value="Travel Insurance">Travel Insurance</option></select>';
			document.getElementById('test').style.display = "block";
			document.getElementById('emp_type').style.display = "none";
				document.getElementById('emp_type1').style.display = "none";
				document.getElementById('loan_amount').style.display = "none";
			document.getElementById('loan_amount1').style.display = "none";
			document.getElementById('car_loan').style.display = "none";
			document.getElementById('loan_purpose').style.display = "none";
			document.getElementById('insurance_type').style.display = "block";
			document.getElementById('loan_type').style.display = "none";
			document.getElementById('card_type').style.display = "none";
			document.getElementById('car_loan1').style.display = "none";
				document.getElementById('nature_security').style.display = "none";
			//document.getElementById('income').style.display = "block";
			//document.getElementById('income1').style.display = "block";
			//document.getElementById('income').style.display = "none";
			//document.getElementById('income1').style.display = "none";
			document.getElementById('loan_purpose_sec').style.display = "none";
			//document.getElementById('emp_type').style.display = "none";
			//document.getElementById('emp_type1').style.display = "none";
		
		}
		if(id=='Credit Cards')
		{
			//alert(id);
			document.getElementById("test").innerHTML ='<select name="loan_purpose_type" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="1">None</option></select>';
		document.getElementById("loan_purpose").innerHTML ='<select name="select_card_type" class="flat-2" style="font-family: Verdana, sans-serif;font-size : 8pt;"><option value="">Select Card Type</option><option value="Platinum">Platinum</option><option value="Gold">Gold</option><option value="Silver">Silver</option><option value="Premium">Premium</option><option value="Business/Corporate">Business/Corporate</option><option value="Other">Other</option></select>';
			
	document.getElementById('test').style.display = "block";
	document.getElementById('emp_type').style.display = "block";
			document.getElementById('emp_type1').style.display = "block";
						document.getElementById('loan_amount').style.display = "block";
			document.getElementById('loan_amount1').style.display = "block";
						document.getElementById('car_loan').style.display = "block";
			document.getElementById('loan_purpose').style.display = "block";
			document.getElementById('insurance_type').style.display = "none";
			document.getElementById('loan_type').style.display = "block";
			document.getElementById('car_loan').style.display = "block";
			document.getElementById('card_type').style.display = "none";
	document.getElementById('nature_security').style.display = "none";
/*			document.getElementById('emp_type').style.display = "none";
				document.getElementById('emp_type1').style.display = "none";
				document.getElementById('loan_amount').style.display = "none";
			document.getElementById('loan_amount1').style.display = "none";
			document.getElementById('car_loan').style.display = "none";
			document.getElementById('loan_purpose').style.display = "none";
			document.getElementById('insurance_type').style.display = "block";
			document.getElementById('loan_type').style.display = "none";
			document.getElementById('card_type').style.display = "none";
			document.getElementById('car_loan1').style.display = "none";
			document.getElementById('loan_purpose1').style.display = "none";
			document.getElementById('test').style.display = "block";
			document.getElementById('car_type').style.display = "none";
			//document.getElementById('loan_type').style.display = "block";
			//document.getElementById('insurance_type').style.display = "none";
			//document.getElementById('loan_type').style.display = "none";
			//document.getElementById('card_type').style.display = "block";
			//document.getElementById('car_loan').style.display = "none";
			//document.getElementById('car_loan').style.display = "none";
			//document.getElementById('loan_purpose').style.display = "none";
						

			document.getElementById('loan_amount').style.display = "none";
			document.getElementById('loan_amount1').style.display = "none";
			document.getElementById('emp_type').style.display = "none";
			document.getElementById('emp_type1').style.display = "none";
			document.getElementById('nature_security').style.display = "none";*/
		}

	}
	

