// JavaScript Document

/**
 * Checks the registration form is blank or not.
 */

x = 220;
y = 260;
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}	

function closeLayer()
{
	obj = document.getElementById('layer1');
	obj.style.visibility = 'hidden';
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += 220;
	theTop += 260;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer1')",5);
}
//window.onscroll = setTimeout("placeIt('layer1')",5);

 function check_form_login() {
     this.form = document.forms['frmlogin'];
     this.error = '';

     if (this.form.txtusernm.value.length == 0) {
         this.error += 'Please enter user name.' + "\n";
     }
	 
     if (this.form.txtpasswd.value.length == 0) {
		 this.error += 'Please enter the password.' + "\n";
	 }
	
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}
 
function check_form_register() {
     this.form = document.forms['register'];
     this.error = '';

     if (this.form.role.value == 'none') {
         this.error += 'Please select role.' + "\n";
     }
	 
     if (this.form.txtusernm.value.length == 0) {
         this.error += 'Please enter user name.' + "\n";
     }
	 else
	 if(this.form.txtavailable_usernm.value.length == 0)
	 {
		this.error += 'Please enter another user name.' + "\n";
	 }
	 
	 if (this.form.txtpasswd.value.length != 0 || this.form.txtcpasswd.value.length != 0) 
	 {
		 if (this.form.txtpasswd.value.length < 6 || this.form.txtcpasswd.value.length < 6) 
		 {
			this.error += 'Enter password in minimum six characters.' + "\n";
		 }
		 else
		 if (this.form.txtpasswd.value != this.form.txtcpasswd.value)
		 {
			 this.error += 'Both password must be same.' + "\n";
		 }
	 }
	 else
	 {
		 this.error += 'Please enter the password.' + "\n";
	 }
	
	 if(this.form.txtfname.value.length == 0)
	 {
		 this.error += 'Please enter full name.' + "\n";
	 }
	 
     if (this.form.country.value == 'none') {
         this.error += 'Please select country.' + "\n";
     }
	 
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }

	 if (this.form.city.value.length == 0) {
         this.error += 'Please enter city/district.' + "\n";
     }
	 
	 if (this.form.txtaddress.value.length == 0) {
         this.error += 'Please enter address.' + "\n";
     }
	 
	 if (this.form.txtlocality.value.length == 0) {
         this.error += 'Please enter locality/village.' + "\n";
     }
	 
	 if (this.form.txtlandmark.value.length == 0) {
         this.error += 'Please enter Landmark .' + "\n";
     }
	 
	 if (this.form.txtdate.value == 'none') {
         this.error += 'Please select date.' + "\n";
     }
	 
	 if (this.form.txtmonth.value == 'none') {
         this.error += 'Please select month.' + "\n";
     }
	 
	 if (this.form.txtyear.value == 'none') {
         this.error += 'Please select year.' + "\n";
     }
	 
	 if (this.form.txtemail.value.length == 0) {
         this.error += 'Please enter email id.' + "\n";
     }
	 else
	 if(this.form.txtavailable_email.value.length == 0)
	 {
		this.error += 'Please enter another email.' + "\n";
	 }
	 
	 if (this.form.txtmobile.value.length == 0) {
         this.error += 'Please enter mobile number.' + "\n";
     }
	 
	 if (this.form.vercode.value.length == 0) {
         this.error += 'Please enter verification code.' + "\n";
     }
	 	 
	 if(!this.form.chkterms.checked){
         this.error += 'Please check the terms and conditions.' + "\n";
     }
		 	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function user_profile() {
     this.form = document.forms['userprofile'];
     this.error = '';

     if (this.form.role.value == 'none') {
         this.error += 'Please select role.' + "\n";
     }
	 
	 if (this.form.txtpasswd.value.length != 0 || this.form.txtcpasswd.value.length != 0) 
	 {
		 if (this.form.txtpasswd.value.length < 6 || this.form.txtcpasswd.value.length < 6) 
		 {
			this.error += 'Enter password in minimum six characters.' + "\n";
		 }
		 else
		 if (this.form.txtpasswd.value != this.form.txtcpasswd.value)
		 {
			 this.error += 'Both password must be same.' + "\n";
		 }
	 }
	
	 if(this.form.txtfname.value.length == 0)
	 {
		 this.error += 'Please enter full name.' + "\n";
	 }
	 
     if (this.form.country.value == 'none') {
         this.error += 'Please select country.' + "\n";
     }
	 
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }

	 if (this.form.city.value.length == 0) {
         this.error += 'Please enter city/district .' + "\n";
     }
	 
	 if (this.form.txtaddress.value.length == 0) {
         this.error += 'Please enter address.' + "\n";
     }

     if (this.form.txtlocality.value.length == 0) {
         this.error += 'Please enter locality/village.' + "\n";
     }
	 
	 if (this.form.txtlandmark.value.length == 0) {
         this.error += 'Please enter Landmark .' + "\n";
     }
	 
	 if (this.form.txtdate.value == 'none') {
         this.error += 'Please select date.' + "\n";
     }
	 
	 if (this.form.txtmonth.value == 'none') {
         this.error += 'Please select month.' + "\n";
     }
	 
	 if (this.form.txtyear.value == 'none') {
         this.error += 'Please select year.' + "\n";
     }
	 
	 if (this.form.txtemail.value.length == 0) {
         this.error += 'Please enter email id.' + "\n";
     }
	 else
	 if(this.form.txtavailable_email.value.length == 0)
	 {
		this.error += 'Please enter another email.' + "\n";
	 }
	 
	 if (this.form.txtmobile.value.length == 0) {
         this.error += 'Please enter mobile number.' + "\n";
     }
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function check_buyform() {
     this.form = document.forms['property_form'];
     this.error = '';

     if (this.form.propertytype.value == 'none') {
         this.error += 'Please select property type.' + "\n";
     }
	 
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.bedrooms.disabled == false) {
		 if (this.form.bedrooms.value == "none") {
			 this.error += 'Please select number of bedroom.' + "\n";
		 }	
	 }
	 
	 if (this.form.minprice.value == "none") {
         this.error += 'Please select minimum price.' + "\n";
     }	
	 
	 if (this.form.maxprice.value == "none") {
         this.error += 'Please select maximum price.' + "\n";
     }	
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function edit_check_buyform() {
     this.form = document.forms['property_form'];
     this.error = '';
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }
	
     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.minprice.value == "none") {
         this.error += 'Please select minimum price.' + "\n";
     }	
	 
	 if (this.form.maxprice.value == "none") {
         this.error += 'Please select maximum price.' + "\n";
     }	
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function check_form_loan() {
     this.form = document.forms['frmloan'];
     this.error = '';

     if (this.form.txtname.value.length == 0) {
         this.error += 'Please enter name.' + "\n";
     }
	 
	 if (this.form.txtannualincome.value == 'none') {
         this.error += 'Please select annual income.' + "\n";
     }
	 
	 if(this.form.txtloan.value.length == 0)
	 {
		 this.error += 'Please enter loan amount.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txtloan.value)) {
         this.error += 'Please enter numeric value for loan.' + "\n";
     }
	 	 
	 if (this.form.txtmobile.value.length == 0) {
         this.error += 'Please enter mobile number.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtmobile.value)) {
         this.error += 'Please enter numeric value for mobile.' + "\n";
     }

     if (this.form.txtstate.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.txtcity.value == "none") {
         this.error += 'Please select city.' + "\n";
     }	
	 
	 if (this.form.txtdate.value == "none") {
         this.error += 'Please select date.' + "\n";
     }	
	 
	 if (this.form.txtmonth.value == "none") {
         this.error += 'Please select month.' + "\n";
     }	
	 
	 if (this.form.txtyear.value == "none") {
         this.error += 'Please select year.' + "\n";
     }	
	 
	 if (this.form.txtemail.value.length == 0) {
         this.error += 'Please enter email.' + "\n";
     }
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}


function check_feedback() {
     this.form = document.forms['form_submit'];
     this.error = '';

	 if(this.form.txtname.value.length == 0)
	 {
		 this.error += 'Please enter name.' + "\n";
	 }
	 
	 if(this.form.txtemail.value.length == 0)
	 {
		 this.error += 'Please enter email.' + "\n";
	 }
	 	 
	 if (this.form.txtcontact.value.length == 0) {
         this.error += 'Please enter contact number.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtcontact.value)) {
         this.error += 'Please enter numeric value for contact number.' + "\n";
     }
	 
	 if(this.form.txtsource.value.length == 0)
	 {
		 this.error += 'Please enter source from you reach us.' + "\n";
	 }
	 
	 if(this.form.txtfeedback.value.length == 0)
	 {
		 this.error += 'Please enter feedback.' + "\n";
	 }

     if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}


function emi_calculator() {
     this.form = document.forms['frmcalculator'];
     this.error = '';
	 	 
	 var amount = this.form.txtloanamount.value;	 
	 var tenure = this.form.txttenure.value;
	 var interest = this.form.txtinterest.value;
	 if (amount.length == 0) {
         this.error += 'Please enter amount of loan.' + "\n";
     }
	 else
	 if(isNaN(amount)) {
         this.error += 'Please enter numeric value for amount of loan.' + "\n";
     }
	 
	 if (tenure.length == 0) {
         this.error += 'Please enter tenure.' + "\n";
     }
	 else
	 if(isNaN(tenure)) {
         this.error += 'Please enter numeric value for tenure.' + "\n";
     }
	 
	 if (interest.length == 0) {
         this.error += 'Please enter interest.';
     }
	 else
	 if(isNaN(interest)) {
         this.error += 'Please enter numeric value for interest.';
     }
	
     if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
		 var princ = amount;
		 var term  = tenure;
		 var intr   = interest / 1200;
		 var yrs   = tenure / 12;
		 this.form.txtanswer.value = get_round(princ * intr / (1 - (Math.pow(1/(1 + intr), term))));
		 return false;
	 }
	 return false;
}

function get_round(X) 
{ 
	return Math.round(X*100)/100;
}

function check_rentinform() {
     this.form = document.forms['property_form'];
     this.error = '';

     if (this.form.propertytype.value == 'none') {
         this.error += 'Please select property type.' + "\n";
     }
	 
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.bedrooms.disabled == false) {
		 if (this.form.bedrooms.value == "none") {
			 this.error += 'Please select number of bedroom.' + "\n";
		 }	
	 }
	 
	 if (this.form.minprice.value == 'none') {
         this.error += 'Please select min price.' + "\n";
     }
	 
	 if (this.form.maxprice.value == 'none') {
         this.error += 'Please select max price.' + "\n";
     }
	 
	 /*if (this.form.txtlac.value.length != 0) {
		 if(isNaN(this.form.txtlac.value)) {
			 this.error += 'Please enter numeric value for lacs.' + "\n";
		 }
	 }
	 
	 if (this.form.txtthousand.value.length != 0) {
		 if(isNaN(this.form.txtthousand.value)) {
			 this.error += 'Please enter numeric value for thousands.' + "\n";
		 }
	 }
	 
	 if (this.form.txthundred.value.length == 0) 
	 {
		 this.error += 'Please enter amount for hundreds.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txthundred.value)) {
		 this.error += 'Please enter numeric value for hundreds.' + "\n";
	 }*/	
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function edit_check_rentinform() {
     this.form = document.forms['property_form'];
     this.error = '';

	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.minprice.value == 'none') {
         this.error += 'Please select min price.' + "\n";
     }
	 
	 if (this.form.maxprice.value == 'none') {
         this.error += 'Please select max price.' + "\n";
     }
	 
	 /*if (this.form.txtlac.value.length != 0) {
		 if(isNaN(this.form.txtlac.value)) {
			 this.error += 'Please enter numeric value for lacs.' + "\n";
		 }
	 }
	 
	 if (this.form.txtthousand.value.length != 0) {
		 if(isNaN(this.form.txtthousand.value)) {
			 this.error += 'Please enter numeric value for thousands.' + "\n";
		 }
	 }
	 
	 if (this.form.txthundred.value.length == 0) 
	 {
		 this.error += 'Please enter amount for hundreds.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txthundred.value)) {
		 this.error += 'Please enter numeric value for hundreds.' + "\n";
	 }*/	
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function check_saleform() {
     this.form = document.forms['property_form'];
     this.error = '';

     if (this.form.propertytype.value == 'none') {
         this.error += 'Please select property type.' + "\n";
     }
	 
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
     if (this.form.txtaddress.value.length == 0) {
         this.error += 'Please enter address.' + "\n";
     }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.bedrooms.disabled == false) {
		 if (this.form.bedrooms.value == "none") {
			 this.error += 'Please select number of bedroom.' + "\n";
		 }	
	 }

	 if (this.form.txtcrore.value.length != 0) {
		 if(isNaN(this.form.txtcrore.value)) {
			 this.error += 'Please enter numeric value for crores.' + "\n";
		 }
	 }
	 
	 if (this.form.txtlac.value.length != 0) {
		 if(isNaN(this.form.txtlac.value)) {
			 this.error += 'Please enter numeric value for lacs.' + "\n";
		 }
	 }
	 
	 if (this.form.txtthousand.value.length == 0) 
	 {
		 this.error += 'Please enter amount for thousands.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txtthousand.value)) {
		 this.error += 'Please enter numeric value for thousands.' + "\n";
	 }
	 	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function edit_check_saleform() {
     this.form = document.forms['property_form'];
     this.error = '';

	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
     if (this.form.txtaddress.value.length == 0) {
         this.error += 'Please enter address.' + "\n";
     }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.txtcrore.value.length != 0) {
		 if(isNaN(this.form.txtcrore.value)) {
			 this.error += 'Please enter numeric value for crores.' + "\n";
		 }
	 }
	 
	 if (this.form.txtlac.value.length != 0) {
		 if(isNaN(this.form.txtlac.value)) {
			 this.error += 'Please enter numeric value for lacs.' + "\n";
		 }
	 }
	 
	 if (this.form.txtthousand.value.length == 0) 
	 {
		 this.error += 'Please enter amount for thousands.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txtthousand.value)) {
		 this.error += 'Please enter numeric value for thousands.' + "\n";
	 }
	 	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function check_rentoutform() {
     this.form = document.forms['property_form'];
     this.error = '';

     if (this.form.propertytype.value == 'none') {
         this.error += 'Please select property type.' + "\n";
     }
	 
	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
     if (this.form.txtaddress.value.length == 0) {
         this.error += 'Please enter address.' + "\n";
     }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.bedrooms.disabled == false) {
		 if (this.form.bedrooms.value == "none") {
			 this.error += 'Please select number of bedroom.' + "\n";
		 }	
	 }

	 if (this.form.txtlac.value.length != 0) {
		 if(isNaN(this.form.txtlac.value)) {
			 this.error += 'Please enter numeric value for lacs.' + "\n";
		 }
	 }
	 
	 if (this.form.txtthousand.value.length != 0) {
		 if(isNaN(this.form.txtthousand.value)) {
			 this.error += 'Please enter amount for thousands.' + "\n";
		 }
	 }
	 
	 if (this.form.txthundred.value.length == 0) 
	 {
		 this.error += 'Please enter amount for hundreds.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txthundred.value)) {
		 this.error += 'Please enter numeric value for hundreds.' + "\n";
	 }
	 	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function edit_check_rentoutform() {
     this.form = document.forms['property_form'];
     this.error = '';

	 if (this.form.state.value == 'none') {
         this.error += 'Please select state.' + "\n";
     }
	 
	 if (this.form.city.value == 'none') {
         this.error += 'Please select city.' + "\n";
     }
     
	 if(this.form.txtlocality.value.length == 0)
	 {
		 this.error += 'Please enter locality/village.' + "\n";
	 }
	 
     if (this.form.txtaddress.value.length == 0) {
         this.error += 'Please enter address.' + "\n";
     }
	 
	 if (this.form.txtarea.value.length == 0) {
         this.error += 'Please enter area.' + "\n";
     }
	 else
	 if(isNaN(this.form.txtarea.value)) {
         this.error += 'Please enter numeric value for area.' + "\n";
     }

     if (this.form.areameasurement.value == 'none') {
         this.error += 'Please select area unit.' + "\n";
     }
	 
	 if (this.form.txtlac.value.length != 0) {
		 if(isNaN(this.form.txtlac.value)) {
			 this.error += 'Please enter numeric value for lacs.' + "\n";
		 }
	 }
	 
	 if (this.form.txtthousand.value.length != 0) {
		 if(isNaN(this.form.txtthousand.value)) {
			 this.error += 'Please enter amount for thousands.' + "\n";
		 }
	 }
	 
	 if (this.form.txthundred.value.length == 0) 
	 {
		 this.error += 'Please enter amount for hundreds.' + "\n";
	 }
	 else
	 if(isNaN(this.form.txthundred.value)) {
		 this.error += 'Please enter numeric value for hundreds.' + "\n";
	 }
	 	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}

function check_form_fpassword() {
     this.form = document.forms['frmfpswd'];
     this.error = '';

     if (this.form.txtemailid.value.length == 0) 
	 {
		 this.error += 'Please enter email id.' + "\n";
	 }
	 
	 if (this.error.length > 0) 
	 {
         alert("Please correct the following errors:\n\n" + this.error);
         this.error = '';
         return false;
     }
	 else
	 {
     	return true;
	 }
}


function disp_bedroom(p_type)
{
	this.form = document.forms['property_form'];
	if(p_type == 'R0')
	{
		this.form.bedrooms.disabled = false;
	}
	else
	if(p_type == 'R1')
	{
		this.form.bedrooms.disabled = false;
	}
	else
	if(p_type == 'R2')
	{
		this.form.bedrooms.disabled = false;
	}
	else
	if(p_type == 'R3')
	{
		this.form.bedrooms.disabled = false;
	}
	else
	if(p_type == 'R4')
	{
		this.form.bedrooms.disabled = false;
	}
	else
	{
		this.form.bedrooms.disabled = true;
	}
}

/*function passwordvalidation()
{
	this.form = document.forms['register'];
	if(this.form.txtpasswd.value.length != 0 || this.form.txtcpasswd.value.length != 0)
	{
		if(this.form.txtpasswd.value != this.form.txtcpasswd.value)
		{
			alert("Both password must be same");
			return false;
		}	
	}
}*/

function ToggleAll_Show(pos) 
{
	if(pos == "a")
	{
		document.getElementById('a1').style.display = 'block';
		document.getElementById('a2').style.display = 'block';
		document.getElementById('a3').style.display = 'block';
		document.getElementById('a4').style.display = 'block';
		document.getElementById('a5').style.display = 'block';
	}
	if(pos == "b")
	{
		document.getElementById('b1').style.display = 'block';
		document.getElementById('b2').style.display = 'block';
		document.getElementById('b3').style.display = 'block';
	}
	if(pos == "c")
	{
		document.getElementById('c1').style.display = 'block';
		document.getElementById('c2').style.display = 'block';
		document.getElementById('c3').style.display = 'block';
	}
	if(pos == "d")
	{
		document.getElementById('d1').style.display = 'block';
		document.getElementById('d2').style.display = 'block';
		document.getElementById('d3').style.display = 'block';
	}
	if(pos == "e")
	{
		document.getElementById('e1').style.display = 'block';
		document.getElementById('e2').style.display = 'block';
		document.getElementById('e3').style.display = 'block';
	}
}

function ToggleAll_Close(pos)
{
	if(pos == "a")
	{
		document.getElementById('a1').style.display = 'none';
		document.getElementById('a2').style.display = 'none';
		document.getElementById('a3').style.display = 'none';
		document.getElementById('a4').style.display = 'none';
		document.getElementById('a5').style.display = 'none';
	}
	if(pos == "b")
	{
		document.getElementById('b1').style.display = 'none';
		document.getElementById('b2').style.display = 'none';
		document.getElementById('b3').style.display = 'none';
	}
	if(pos == "c")
	{
		document.getElementById('c1').style.display = 'none';
		document.getElementById('c2').style.display = 'none';
		document.getElementById('c3').style.display = 'none';
	}
	if(pos == "d")
	{
		document.getElementById('d1').style.display = 'none';
		document.getElementById('d2').style.display = 'none';
		document.getElementById('d3').style.display = 'none';
	}
	if(pos == "e")
	{
		document.getElementById('e1').style.display = 'none';
		document.getElementById('e2').style.display = 'none';
		document.getElementById('e3').style.display = 'none';
	}
}

function toggle1(id) 
{
   var e = document.getElementById(id);
   if(e.style.display == 'block')
	  e.style.display = 'none';
   else
	  e.style.display = 'block';
}
function toggle2(id) 
{
   var e = document.getElementById(id);
   if(e.style.display == 'block')
	  e.style.display = 'none';
   else
	  e.style.display = 'block';
}
function toggle3(id) 
{
   var e = document.getElementById(id);
   if(e.style.display == 'block')
	  e.style.display = 'none';
   else
	  e.style.display = 'block';
}
function toggle4(id) 
{
   var e = document.getElementById(id);
   if(e.style.display == 'block')
	  e.style.display = 'none';
   else
	  e.style.display = 'block';
}
function toggle5(id) 
{
   var e = document.getElementById(id);
   if(e.style.display == 'block')
	  e.style.display = 'none';
   else
	  e.style.display = 'block';
}

function addOption(selectbox, text, value)
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
	selectbox.options.add(optn);	
}

function areaunit(val)
{	
//	document.property_form.areameasurement.length = "";
	document.property_form.areameasurement.value = "";
	if(val == "L0" || val == "L1" || val == "L2" || val == "L3" || val == "L4" || val == "L5" || val == "L6")
	{
		document.property_form.areameasurement.value = "Sq. Yard";
//		addOption(document.property_form.areameasurement,"Sq. Feet","Sq. Feet");
//		addOption(document.property_form.areameasurement,"Sq. Meter","Sq. Meter");
//		addOption(document.property_form.areameasurement,"Sq. Yard","Sq. Yard");
	}
	else
	{
		document.property_form.areameasurement.value = "Sq. Feet";
//		addOption(document.property_form.areameasurement,"Sq. Feet","Sq. Feet");
	}
}

function maxparice(val)
{
	document.property_form.maxprice.disabled = false;
	document.property_form.maxprice.length = "";

	if(val == "<5000")
	{
		addOption(document.property_form.maxprice,"Max Price","<5000");
		document.property_form.maxprice.disabled = true;
	}
	if(val == "5000")
	{
		addOption(document.property_form.maxprice,"10000","10000");
		addOption(document.property_form.maxprice,"15000","15000");
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "10000")
	{
		addOption(document.property_form.maxprice,"15000","15000");
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "15000")
	{
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "20000")
	{
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "25000")
	{
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "50000")
	{
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "75000")
	{
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "1 Lac")
	{
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "2 Lacs")
	{
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "5 Lacs")
	{
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == ">10 Lacs")
	{
		addOption(document.property_form.maxprice,"Max Price",">10 Lacs");
		document.property_form.maxprice.disabled = true;
	}

	if(val == "<10 Lacs")
	{
		addOption(document.property_form.maxprice,"Max Price","<10 Lacs");
		document.property_form.maxprice.disabled = true;
	}
	if(val == "10 Lacs")
	{
		addOption(document.property_form.maxprice,"15 Lacs","15 Lacs");
		addOption(document.property_form.maxprice,"30 Lacs","30 Lacs");
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "15 Lacs")
	{
		addOption(document.property_form.maxprice,"30 Lacs","30 Lacs");
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "20 Lacs")
	{
		addOption(document.property_form.maxprice,"30 Lacs","30 Lacs");
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "30 Lacs")
	{
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "40 Lacs")
	{
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "50 Lacs")
	{
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "60 Lacs")
	{
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "70 Lacs")
	{
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "75 Lacs")
	{
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "1 Crore")
	{
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "1.5 Crore")
	{
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "2 Crore")
	{
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "3 Crore")
	{
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "5 Crore")
	{
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == "10 Crore")
	{
		addOption(document.property_form.maxprice,">20 Crore",">20 Crore");
	}
	if(val == ">20 Crore")
	{
		addOption(document.property_form.maxprice,"Max Price",">20 Crore");
		document.property_form.maxprice.disabled = true;
	}
	if(val == "none")
	{
		addOption(document.property_form.maxprice,"--- Select Maximum ---","none");
	}
}


function buyform_maxparice(val)
{
	document.property_form.maxprice.disabled = false;
	document.property_form.maxprice.length = "";

	if(val == "0 thousand")
	{
		addOption(document.property_form.maxprice,"5000","5000");
		addOption(document.property_form.maxprice,"10000","10000");
		addOption(document.property_form.maxprice,"15000","15000");
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "5000")
	{
		addOption(document.property_form.maxprice,"10000","10000");
		addOption(document.property_form.maxprice,"15000","15000");
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "10000")
	{
		addOption(document.property_form.maxprice,"15000","15000");
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "15000")
	{
		addOption(document.property_form.maxprice,"20000","20000");
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "20000")
	{
		addOption(document.property_form.maxprice,"25000","25000");
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "25000")
	{
		addOption(document.property_form.maxprice,"50000","50000");
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "50000")
	{
		addOption(document.property_form.maxprice,"75000","75000");
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "75000")
	{
		addOption(document.property_form.maxprice,"1 Lac","1 Lac");
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "1 Lac")
	{
		addOption(document.property_form.maxprice,"2 Lacs","2 Lacs");
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "2 Lacs")
	{
		addOption(document.property_form.maxprice,"5 Lacs","5 Lacs");
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == "5 Lacs")
	{
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
	}
	if(val == ">10 Lacs")
	{
		addOption(document.property_form.maxprice,"Max Price",">10 Lacs");
		document.property_form.maxprice.disabled = true;
	}

	if(val == "0 Lacs")
	{
		addOption(document.property_form.maxprice,"10 Lacs","10 Lacs");
		addOption(document.property_form.maxprice,"15 Lacs","15 Lacs");
		addOption(document.property_form.maxprice,"30 Lacs","30 Lacs");
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "10 Lacs")
	{
		addOption(document.property_form.maxprice,"15 Lacs","15 Lacs");
		addOption(document.property_form.maxprice,"30 Lacs","30 Lacs");
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");

	}
	if(val == "15 Lacs")
	{
		addOption(document.property_form.maxprice,"30 Lacs","30 Lacs");
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "30 Lacs")
	{
		addOption(document.property_form.maxprice,"50 Lacs","50 Lacs");
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "50 Lacs")
	{
		addOption(document.property_form.maxprice,"75 Lacs","75 Lacs");
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "75 Lacs")
	{
		addOption(document.property_form.maxprice,"1 Crore","1 Crore");
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "1 Crore")
	{
		addOption(document.property_form.maxprice,"2 Crore","2 Crore");
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "2 Crore")
	{
		addOption(document.property_form.maxprice,"3 Crore","3 Crore");
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "3 Crore")
	{
		addOption(document.property_form.maxprice,"5 Crore","5 Crore");
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "5 Crore")
	{
		addOption(document.property_form.maxprice,"10 Crore","10 Crore");
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "10 Crore")
	{
		addOption(document.property_form.maxprice,"20 Crore","20 Crore");
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "20 Crore")
	{
		addOption(document.property_form.maxprice,"50 Crore","50 Crore");
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "50 Crore")
	{
		addOption(document.property_form.maxprice,"100 Crore","100 Crore");
	}
	if(val == "none")
	{
		addOption(document.property_form.maxprice,"--- Select Maximum ---","none");
	}
}
