// JavaScript Document

var no_of_appl=0;
function addapplicant(relation_val,name_val,gender_val,age_val,address_val,mobile_val,salary_val,allowance_val,tax_val) 
      {
     no_of_appl = no_of_appl + 1;
  
      var coappdivID = document.getElementById('coapplidiv');
  
     var newappDivid = document.createElement('div');
 
      newappDivid.setAttribute('id','strText'+no_of_appl);
	// var d=document.getElementById('coapplidiv').innerHTML;
	
 
     newappDivid.innerHTML = "<table width='100%' cellspacing='3' cellpadding='3'><tr><td colspan='3'>&nbsp;</td></tr><tr><td align='right' width='37%' class='norightpad'>Relation Ship*</td><td width='2%'>&nbsp;</td><td width='61%'><select name='relation"+no_of_appl+"' id='relation"+no_of_appl+"' class='textbox'><option value=''>Select Relation</option><option value='Father'>Father</option><option value='Mother'>Mother</option><option value='Wife/Husband'>Wife/Husband</option></select></td></tr><tr><td align='right' class='norightpad'>Name*</td><td width='2%'>&nbsp;</td><td><input type='text' id='fstname"+no_of_appl+"' name='fstname"+no_of_appl+"' value='"+name_val+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Gender*</td><td width='2%'>&nbsp;</td><td class='norightpad'><input name='gender"+no_of_appl+"' id='male"+no_of_appl+"' type='radio' value='Male'/>Male<input name='gender"+no_of_appl+"' id='female"+no_of_appl+"' type='radio' value='Female' />Female</td></tr><tr><td align='right' class='norightpad'>Age*</td><td width='2%'>&nbsp;</td><td><input name='co_age"+no_of_appl+"' id='co_age"+no_of_appl+"' type='text' size='20' value='"+age_val+"' class='textbox'/></td></tr><tr><td valign='top' align='right' class='norightpad'>Address</td><td width='2%'>&nbsp;</td><td><textarea name='address"+no_of_appl+"'  id='address"+no_of_appl+"' cols='15' rows='5' class='textbox'>"+address_val+"</textarea></td></tr><tr><td align='right' class='norightpad'>Mobile No</td><td width='2%'>&nbsp;</td><td><input name='co_mobile"+no_of_appl+"' id='co_mobile"+no_of_appl+"' type='text' value='"+mobile_val+"' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Basic Salary*</td><td width='2%'>&nbsp;</td><td><input type='text' id='salary"+no_of_appl+"' name='salary"+no_of_appl+"' size='20' value='"+salary_val+"' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Allowance</td><td width='2%'>&nbsp;</td><td><input type='text' id='allowance"+no_of_appl+"' name='allowance"+no_of_appl+"' size='20' value='"+allowance_val+"' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Provident Fund</td><td width='2%'>&nbsp;</td><td><input type='text' id='tax"+no_of_appl+"' name='tax"+no_of_appl+"' size='20' value='"+tax_val+"' class='textbox'/></td></tr><input type='hidden' name='no_of_appl' id='no_of_appl' value='"+no_of_appl+"'></table>";
	 
	 	coappdivID.appendChild(newappDivid);
 //alert("cc11"+c);
   
 // document.getElementById('coapplidiv').innerHTML=d+c;
   // document.getElementById('relation'+no_of_appl).value="";
   //  document.getElementById('male'+no_of_appl).checked=false;
	  // document.getElementById('female'+no_of_appl).checked=false;

  document.getElementById('relation'+no_of_appl).value=relation_val;

	//  alert(relation_val);
     //  document.getElementById('address'+no_of_appl).value=address_val;
	
	 
	   if(gender_val=="Male"){
	   document.getElementById('male'+no_of_appl).checked=true;
	   }
	   else if(gender_val=="Female"){
	   document.getElementById('female'+no_of_appl).checked=true;
	   }
	  // alert("sds"+document.getElementById('coapplidiv').innerHTML);
	
	
  

	
      }




var noofapplicant=0;
function applicant() 
      {
 
      noofapplicant = noofapplicant + 1;
  
      var appdivID = document.getElementById('applicantdiv');
  
      var newappDiv = document.createElement('div');
 
      newappDiv.setAttribute('id','strText'+noofapplicant);
 
      newappDiv.innerHTML = "<table width='100%' cellspacing='3' cellpadding='3'><tr><td colspan='3'>&nbsp;</td></tr><tr><td align='right' width='37%' class='norightpad'>Relation Ship*</td><td width='2%'>&nbsp;</td><td width='61%'><select name='relation"+noofapplicant+"' id='relation"+noofapplicant+"' class='textbox'><option value=''>Select Relation</option><option value='Father'>Father</option><option value='Mother'>Mother</option><option value='Wife/Husband'>Wife/Husband</option></select></td></tr><tr><td align='right' class='norightpad'>Name*</td><td width='2%'>&nbsp;</td><td><input type='text' id='fstname"+noofapplicant+"' name='fstname"+noofapplicant+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Gender*</td><td width='2%'>&nbsp;</td><td class='norightpad'><input name='gender"+noofapplicant+"' id='gender"+noofapplicant+"' type='radio' value='Male' />Male<input name='gender"+noofapplicant+"' id='gender"+noofapplicant+"' type='radio' value='Female' />Female</td></tr><tr><td align='right' class='norightpad'>Age*</td><td width='2%'>&nbsp;</td><td><input name='co_age"+noofapplicant+"' id='co_age"+noofapplicant+"' type='text' size='20' class='textbox'/></td></tr><tr><td valign='top' align='right' class='norightpad'>Address</td><td width='2%'>&nbsp;</td><td><textarea name='address"+noofapplicant+"'  id='address"+noofapplicant+"' cols='15' rows='5' class='textbox'></textarea></td></tr><tr><td align='right' class='norightpad'>Mobile No</td><td width='2%'>&nbsp;</td><td><input name='co_mobile"+noofapplicant+"' id='co_mobile"+noofapplicant+"' type='text' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Basic Salary*</td><td width='2%'>&nbsp;</td><td><input type='text' id='salary"+noofapplicant+"' name='salary"+noofapplicant+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Allowance</td><td width='2%'>&nbsp;</td><td><input type='text' id='allowance"+noofapplicant+"' name='allowance"+noofapplicant+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Provident Fund</td><td width='2%'>&nbsp;</td><td><input type='text' id='tax"+noofapplicant+"' name='tax"+noofapplicant+"' size='20' class='textbox'/></td><input type='hidden' name='no_app' id='no_app' value='"+noofapplicant+"'></tr></table>";
 
      appdivID.appendChild(newappDiv);
	  
  
      }
	  
	
	var coappl=0;
function coappInput() 
      {
 
      coappl = coappl + 1;
  
      var subappid = document.getElementById('coapptblid');
  
      var newsubDiv = document.createElement('div');
 
      newsubDiv.setAttribute('id','strText'+coappl);
 
      newsubDiv.innerHTML = "<table width='100%' cellspacing='3' cellpadding='3'><tr><td colspan='2'>&nbsp;</td></tr><tr><td align='right' width='37%' class='norightpad'>Relation Ship*</td><td width='2%'>&nbsp;</td><td width='61%'><select name='relation_val"+coappl+"' id='relation_val"+coappl+"' class='textbox'><option value=''>Select Relation</option><option value='Father'>Father</option><option value='Mother'>Mother</option><option value='Wife/Husband'>Wife/Husband</option></select></td></tr><tr><td align='right' class='norightpad'>Name*</td><td width='2%'>&nbsp;</td><td><input type='text' id='fstname_val"+coappl+"' name='fstname_val"+coappl+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Gender*</td><td width='2%'>&nbsp;</td><td class='norightpad'><input name='gender_val"+coappl+"' id='gender_val"+coappl+"' type='radio' value='Male' />Male<input name='gender_val"+coappl+"' id='gender_val"+coappl+"' type='radio' value='Female' />Female</td></tr><tr><td align='right' class='norightpad'>Age*</td><td width='2%'>&nbsp;</td><td><input name='co_age_val"+coappl+"' id='co_age_val"+coappl+"' type='text' size='20' class='textbox'/></td></tr><tr><td valign='top' align='right' class='norightpad'>Address</td><td width='2%'>&nbsp;</td><td><textarea name='address_val"+coappl+"'  id='address_val"+coappl+"' cols='15' rows='5' class='textbox'></textarea></td></tr><tr><td align='right' class='norightpad'>Mobile No</td><td width='2%'>&nbsp;</td><td><input name='co_mobile_val"+coappl+"' id='co_mobile_val"+coappl+"' type='text' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Basic Salary*</td><td width='2%'>&nbsp;</td><td><input type='text' id='salary_val"+coappl+"' name='salary_val"+coappl+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Allowance</td><td width='2%'>&nbsp;</td><td><input type='text' id='allowance_val"+coappl+"' name='allowance_val"+coappl+"' size='20' class='textbox'/></td></tr><tr><td align='right' class='norightpad'>Provident Fund</td><td width='2%'>&nbsp;</td><td><input type='text' id='tax"+coappl+"' name='tax"+coappl+"' size='20' class='textbox'/></td><input type='hidden' name='co_app' id='co_app' value='"+coappl+"'></tr></table>";
 
      subappid.appendChild(newsubDiv);
	  
  
      }
	  

	
	
function propsearch_validation(){  

   if ( ( document.property_search.prop[0].checked == false )
    && ( document.property_search.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		//document.property_search.prop.focus();
        return false;
    }
	
	if ( document.property_search.prop_type.selectedIndex == 0 )
    {
        alert ( "Please select Property." );
		document.property_search.prop_type.focus();
        return false;
    }
    
	  var min=document.property_search.mini.selectedIndex;
	  var max=document.property_search.maxi.selectedIndex; 
	
	if(min == 0)
	{
		alert("Do you want Check All Budget?");
		document.property_search.mini.focus();
		
	}
	
	if(max == 0)
	{
		//alert("Do you want Check All Budget?");
		//document.property_search.maxi.focus();
		
	}

	
	if(min > max)
	{
	alert("Please enter the Maximum Range correctly. The upper limit cannot be less than the lower limit.");	
	document.property_search.maxi.focus();
	return false;
	}
	
	if ( document.property_search.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.property_search.country.focus();
        return false;
    }
   if ( document.property_search.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.property_search.states.focus();
        return false;
    }
/*	if ( document.property_search.city.selectedIndex == 0 )
    {
        alert ( "Please select City." );
		document.property_search.city.focus();
        return false;
    }*/
	if ( document.property_search.locality.value == 0 )
    {
        alert ( "Do you want check all Locality?" );
		document.property_search.locality.focus();
        return true;
    }
	
	if ( ( document.property_search.property[0].checked == false )
    && ( document.property_search.property[1].checked == false ) )
    {
        alert ( "Please choose your Property: New or Second Hand" );
		//document.property_search.property.focus();
        return false;
    }

return true;
}

function login3_validation(){

	if (document.login.txtuser.value == 0) 
	 	{
			 alert("UserName Should not empty");
			 document.login.txtuser.focus();
			 return false;
			 }	
	
if (document.login.txtpass.value == 0) 
	 	{
			 alert("Password Should not empty");
			 document.login.txtpass.focus();
			 return false;
			 }	
			 return true;
}


function custe_validation(){
	
	if (document.passchk.txt_email.value == 0) 
	 	{
			 alert("E-mail should not empty");
			 document.passchk.txt_email.focus();
			 return false;
			 }		
	
	return true;
}
		 
	
	
	

function cust_validation(){
	
	if (document.login.txtname.value == 0) 
	 	{
			 alert("Name Should not be empty");
			 document.login.txtname.focus();
			 return false;
			 }	
	
	if(document.login.txtemail.value == 0)
			 {
			 alert("Email should not be empty");
			 document.login.txtemail.focus();
			 return false;
			 }	
			 
if (document.login.txtpass.value == 0) 
	 	{
			 alert("Password Should not is empty");
			 document.login.txtpass.focus();
			 return false;
			 }	
			 return true;
	}
		 
function custt_validation(){
	
	if (document.login.txtname.value == 0) 
	 	{
			 alert("Name Should not be empty");
			 document.login.txtname.focus();
			 return false;
			 }	
if (document.login.txtpass.value == 0) 
	 	{
			 alert("Password Should not is empty");
			 document.login.txtpass.focus();
			 return false;
			 }	
			 return true;
	}



		 
		 
function validateEmail(addr,man,db) {
	if (addr == '' && man) {
	   if (db) alert('Email address is mandatory');
	   return false;
	}
	var invalidChars = '\/\'\\ ";:?!()[]\{\}^|';
	for (i=0; i<invalidChars.length; i++) {
	   if (addr.indexOf(invalidChars.charAt(i),0) > -1) {
		  if (db) alert('Email address contains invalid characters');
		  return false;
	   }
	}
	for (i=0; i<addr.length; i++) {
	   if (addr.charCodeAt(i)>127) {
		  if (db) alert("Email address contains non ascii characters.");
		  return false;
	   }
	}

	var atPos = addr.indexOf('@',0);
	if (atPos == -1) {
	   if (db) alert('Email address must contain an @');
	   return false;
	}
	if (atPos == 0) {
	   if (db) alert('Email address must not start with @');
	   return false;
	}
	if (addr.indexOf('@', atPos + 1) > - 1) {
	   if (db) alert('Email address must contain only one @');
	   return false;
	}
	if (addr.indexOf('.', atPos) == -1) {
	   if (db) alert('Email address must contain a period in the domain name');
	   return false;
	}
	if (addr.indexOf('@.',0) != -1) {
	   if (db) alert('period must not immediately follow @ in email address');
	   return false;
	}
	if (addr.indexOf('.@',0) != -1){
	   if (db) alert('period must not immediately precede @ in email address');
	   return false;
	}
	if (addr.indexOf('..',0) != -1) {
	   if (db) alert('two periods must not be adjacent in email address');
	   return false;
	}
	var suffix = addr.substring(addr.lastIndexOf('.')+1);
	if (suffix.length != 2 && suffix != 'com' && suffix != 'net' && suffix != 'org' && suffix != 'edu' && suffix != 'int' && suffix != 'mil' && suffix != 'gov' & suffix != 'arpa' && suffix != 'biz' && suffix != 'aero' && suffix != 'name' && suffix != 'coop' && suffix != 'info' && suffix != 'pro' && suffix != 'museum') {
	   if (db) alert('invalid primary domain in email address');
	   return false;
	}
return true;
}



function visibleform(what)
{
	
 document.getElementById(what).style.display="block"

}
function hideform(what)
{
	
 document.getElementById(what).style.display="none"

}

function emi_validation(){
	
var propval=document.apply.txtprop.value;
    if(propval == "")
	{
	 alert("Cost of Property should not empty");
	 document.apply.txtprop.focus();
	 return false;
	 }
	if(propval < 500000)
	{
		alert("Cost of Property should not be less than 500000");
		document.apply.txtprop.focus();
		return false;
	}
	

var month=document.apply.txtmonth.value;
	 if(month == "")
	{
			 alert("Tenure should not empty");
			 document.apply.txtmonth.focus();
			 return false;
	}		 
	 if(month < 12)
	 {
		alert("Tenure should not be less than 12 months");
		document.apply.txtmonth.focus();
		 return false;
	 }
	


var n=document.getElementById("month").value; 

var m=document.apply.txtmonth.value;
if (parseFloat(m)>300){
alert("Maximum Tenure is 300 months");
document.apply.txtmonth.focus();
 return false;
}else if (parseFloat(m)>parseFloat(n)){
alert("You are eligible to apply for a maximum period of "+n+" months");
document.apply.txtmonth.focus();
 return false;
}



return true;

}
		 
function emi_validatelap(){
	
var ptypee=document.apply.ptype.value;
    if(ptypee == "")
	{
	 alert("Please Select Property Type");
	 document.apply.ptype.focus();
	 return false;
	}
var poccupp=document.apply.poccup.value;
    if(poccupp == "")
	{
	 alert("Please Select Property Occupied By");
	 document.apply.poccup.focus();
	 return false;
	}

var propval=document.apply.txtprop.value;
    if(propval == "")
	{
	 alert("Cost of Property should not empty");
	 document.apply.txtprop.focus();
	 return false;
	}
	if(propval < 500000)
	{
	 alert("Cost of Property should not be less than 500000");	
     document.apply.txtprop.focus();
	 return false;
	}
var month=document.apply.txtmonth.value;
	 if(month == "")
	{
			 alert("Tenure should not empty");
			 document.apply.txtmonth.focus();
			 return false;
	}	
    if(month < 12)
	{
	 alert("tenure should not be less than 12 months");	
     document.apply.txtmonth.focus();
	 return false;
	}

var n=document.getElementById("month").value; 

var m=document.apply.txtmonth.value;
if (parseFloat(m)>180){
alert("Maximum Tenure is 180 months");
document.apply.txtmonth.focus();
 return false;
}else if (parseFloat(m)>parseFloat(n)){
alert("You are eligible to apply for a maximum period of "+n+" months");
document.apply.txtmonth.focus();
 return false;
}



return true;

}
function poplinks(url)
{
	newwindow=window.open(url,'ImageDisplay','height=400,width=600,left=0,tsop=0,resizable=yes,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}


function register_validation(){
	
	if (document.memform.txtfirstname.value == 0) 
	 	{
			 alert("First Name Should not empty");
			 document.memform.txtfirstname.focus();
			 return false;
			 }		
	 if (document.memform.txtlastname.value == 0) 
	 	{
			 alert("Last Name Should not empty");
			 document.memform.txtlastname.focus();
			 return false;
			 }	
	if (document.memform.txtemail.value == 0) 
	 	{
			 alert("E-mail Should not empty");
			 document.memform.txtemail.focus();
			 return false;
		 }
	if (document.memform.txtpwd.value == 0) 
	 	{
			 alert("Password Should not empty");
			 document.memform.txtpwd.focus();
			 return false;
		 }	 
	
	if (document.memform.age.value == 0) 
	 	{
			 alert("Age Should not empty");
			 document.memform.age.focus();
			 return false;
		 }		 
		 
		  	 
	if ( document.memform.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.memform.country.focus();
        return false;
    }
  /* if ( document.memform.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.memform.states.focus();
        return false;
    }
	if ( document.memform.city.selectedIndex == 0 )
    {
        alert ( "Please select City." );
		document.memform.city.focus();
        return false;
    }*/
	if ( document.memform.locality.value == 0 )
    {
        alert ( "Please select Locality." );
		document.memform.locality.focus();
        return false;
    }
	if ( document.memform.member_type.value == 0 )
    {
        alert ( "Please select Locality." );
		document.memform.member_type.focus();
        return false;
    }
	
return true;

}


function buyerserch_validate(byform){
	var postAll;
    var sB = document.getElementById("buy_type");
	    for(var k=0; k<sB.length; k++){	
	        postAll = document.createElement("input");
	        postAll.setAttribute("type", "hidden");
       postAll.setAttribute("name", "buyprop_typee[]");
        postAll.setAttribute("value", sB[k].value);
        byform.appendChild(postAll) ;
    }
	
	var alll;
    var it = document.getElementById("rent_type");
	    for(var h=0; h<it.length; h++){	
	        alll = document.createElement("input");
	        alll.setAttribute("type", "hidden");
       alll.setAttribute("name", "rentprop_typee[]");
        alll.setAttribute("value", it[h].value);
        byform.appendChild(alll) ;
    }
	var posted;
	 var ci = document.getElementById("sel_city");
	    for(var s=0; s<ci.length; s++){	
	        posted = document.createElement("input");
	        posted.setAttribute("type", "hidden");
       posted.setAttribute("name", "sele_city[]");
        posted.setAttribute("value", ci[s].value);
        byform.appendChild(posted) ;
    }
	
 if ( ( document.buyer_searc.prop[0].checked == false )
    && ( document.buyer_searc.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		
        return false;
    }
	
	if(document.getElementById('buydiv').style.display == "block")
    {
	
	if ( !document.buyer_searc.buy_type.length)
    {
        alert ( "Please select Property Type." );
		document.buyer_searc.buy_type.focus();
        return false;
    }
	}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( !document.buyer_searc.rent_type.length)
    {
        alert ( "Please select Property Type." );
		document.buyer_searc.rent_type.focus();
        return false;
    }
    }
	if ( document.buyer_searc.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.buyer_searc.country.focus();
        return false;
    }
   if ( document.buyer_searc.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.buyer_searc.states.focus();
        return false;
    }
    if ( !document.buyer_searc.sel_city.length)
    {
        alert ( "Please select City." );
		document.buyer_searc.sel_city.focus();
        return false;
    }
	if ( document.buyer_searc.mini.selectedIndex == 0 )
    {
        alert ( "Please select Minimum Bubget." );
		document.buyer_searc.mini.focus();
        return false;
    }
	if ( document.buyer_searc.maxi.selectedIndex == 0 )
    {
        alert ( "Please select Maximum Bubget." );
		document.buyer_searc.maxi.focus();
        return false;
    }
}

	
function property_validate(){
	

	
	if (document.propertyfrm.prop_type.value == 0) 
	 	{
			 alert("Property type Should not be empty");
			 document.propertyfrm.prop_type.focus();
			 return false;
			 }	
if (document.propertyfrm.country.value == 0) 
	 	{
			 alert("Country Should not be empty");
			 document.propertyfrm.country.focus();
			 return false;
			 }	
if (document.propertyfrm.locality.value == 0) 
	 	{
			 alert("Locality Should not be empty");
			 document.propertyfrm.locality.focus();
			 return false;
			 }	
if (document.propertyfrm.land.value == 0) 
	 	{
			 alert("Landmark Should not be empty");
			 document.propertyfrm.land.focus();
			 return false;
			 }	
if (document.propertyfrm.sqfeet.value == 0) 
	 	{
			 alert("SqFeet Should not be empty");
			 document.propertyfrm.sqfeet.focus();
			 return false;
			 }				 
if (document.propertyfrm.price.value == 0) 
	 	{
			 alert("Price Should not be empty");
			 document.propertyfrm.price.focus();
			 return false;
			 }	
if (document.propertyfrm.short_desc.value == 0) 
	 	{
			 alert("Short Description Should not be empty");
			 document.propertyfrm.short_desc.focus();
			 return false;
			 }	
if (document.propertyfrm.long_desc.value == 0) 
	 	{
			 alert("Long Description Should not be empty");
			 document.propertyfrm.long_desc.focus();
			 return false;
			 }	
if (document.propertyfrm.prop_new.value == 0) 
	 	{
			 alert("Property Should not be empty");
			 document.propertyfrm.prop_new.focus();
			 return false;
			 }		
if (document.propertyfrm.rental.value == 0) 
	 	{
			 alert("Rental Should not be empty");
			 document.propertyfrm.rental.focus();
			 return false;
			 }	

if ( ( document.propertyfrm.prop_new[0].checked == false )
    && ( document.propertyfrm.prop_new[1].checked == false ) )
    {
        alert ( "Please choose your Property: New or Second Hand" );
		//document.property_search.prop.focus();
        return false;
    }
if ( ( document.propertyfrm.rental[0].checked == false )
    && ( document.propertyfrm.rental[1].checked == false ) )
    {
        alert ( "Please choose your Property: Rental or Not" );
		//document.property_search.prop.focus();
        return false;
    }
	return true;
}
			 
function email_validation(){
	
	if (document.login.txtemail.value == 0) 
	 	{
			 alert("E-mail should not empty");
			 document.login.txtemail.focus();
			 return false;
			 }
	var re=/^(?:\w+\.?)*\w+@(?:\w+\.)+\w+$/;
	if(!re.test(document.login.txtemail.value))
	{
		alert("Please enter valid E-mail id");
		document.login.txtemail.focus();
		return false;
	}
	
	return true;
}	



function reg2_validation(){
	
	
    if ((document.memform.txt_nation[0].checked == false)
		&&(document.memform.txt_nation[1].checked == false))
	 	{
			 alert("Please Select Nationality");			 
			 return false;
			 }	

	if (document.memform.txtpwd.value == 0) 
	 	{
			 alert("Password should not empty");
			 document.memform.txtpwd.focus();
			 return false;
			 }
	
	if (document.memform.member_type.value == 0) 
	 	{
			 alert("Type of member should not empty");
			 document.memform.member_type.focus();
			 return false;
			 }
 if ((document.memform.income_type[0].checked == false)
	&&(document.memform.income_type[1].checked == false))
{
alert ( "Please Select Income" );
//document.memform.txt_nation.focus();
return false;
}
if (document.memform.txt_salary_val.value == 0) 
	 	{
			 alert("Salary should not empty");
			 document.memform.txt_salary_val.focus();
			 return false;
			 }	
if(isNaN(document.memform.txt_salary_val.value)){
	 alert("Salary must be numeric");
			 document.memform.txt_salary_val.focus();
			 return false;
}
return true;
}	

function downfrmvalidation()
{
	if (document.downfrm.bank_select.value == "") 
	 	{
			 alert("Please Select Bank");
			 document.downfrm.bank_select.focus();
			 return false;
			 }	
}

function proptypesell(){

	
	
		
		
	if(document.property_search.buyprop_type.value=="Residential House"){	
	
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	  document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_search.buyprop_type.value=="Residential Plot"){	
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";	
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_search.buyprop_type.value=="Multistorey Apartment"){		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_search.buyprop_type.value=="Builder Floor Apartment"){
		
	document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";	 
	 document.getElementById('floordiv').style.display="block";	 
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_search.buyprop_type.value=="Independent Villa"){
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	  document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="block";
	}
	if(document.property_search.buyprop_type.value=="Commercial Land"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="none";
	}
	if(document.property_search.buyprop_type.value=="Commercial Office Space"){
	  document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="none";
	}
	if(document.property_search.buyprop_type.value=="Commercial Shop"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="block";		
	}
	if(document.property_search.buyprop_type.value=="Commercial Showroom"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";	
	}
	if(document.property_search.buyprop_type.value=="Kiosk"){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";	
	document.getElementById('plotdiv').style.display="none";
	document.getElementById('furnishdiv').style.display="block";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="block";
	document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="block";	
	}
	if(document.property_search.buyprop_type.value=="Hotel"){
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";
	}
	if(document.property_search.buyprop_type.value=="Hotel Sites"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_search.buyprop_type.value=="Guest House"){
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";	
	  document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";
	}
	if(document.property_search.buyprop_type.value=="Businees Centre"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="none";
	  document.getElementById('coverareadiv').style.display="none";	
	}
	if(document.property_search.buyprop_type.value=="Warehouse/Godown"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="none";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="none";
	 document.getElementById('plotareadiv').style.display="none";
	 document.getElementById('coverareadiv').style.display="block";	
	}
	if(document.property_search.buyprop_type.value=="Industrial Land"){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="none";
	document.getElementById('plotdiv').style.display="block";
	document.getElementById('furnishdiv').style.display="none";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="none";	
	document.getElementById('areatypediv').style.display="none";
    document.getElementById('plotareadiv').style.display="block";
    document.getElementById('coverareadiv').style.display="none";
	}
	if(document.property_search.buyprop_type.value=="Industrial Building"){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";	
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	  document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="none";
     document.getElementById('coverareadiv').style.display="none";	
	}
	if(document.property_search.buyprop_type.value=="Industrial Shed"){
	document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	  document.getElementById('furnishdiv').style.display="none";
	  document.getElementById('constructdiv').style.display="block";
	  document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	   document.getElementById('amenitydiv').style.display="block";	
	   document.getElementById('areatypediv').style.display="block";
       document.getElementById('plotareadiv').style.display="none";
       document.getElementById('coverareadiv').style.display="none";
	}
	if(document.property_search.buyprop_type.value=="Agricultural Land"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('areatypediv').style.display="none";
     document.getElementById('plotareadiv').style.display="block";
     document.getElementById('coverareadiv').style.display="none";

	}
	if(document.property_search.buyprop_type.value=="Farm House"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="none";
     document.getElementById('coverareadiv').style.display="none";
	}
}




function proptyperent(){
	
	
	
	
    if(document.property_search.rentprop_type.value=="Paying Guest"){		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="none";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="none";
	 document.getElementById('rentpriceonly').style.display="block";
	 document.getElementById('arearentdiv').style.display="none";
     document.getElementById('plotrentdiv').style.display="none";
     document.getElementById('coverrentdiv').style.display="none";
	}	  
     if(document.property_search.rentprop_type.value=="Hostel"){		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="none";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="none";
	 document.getElementById('rentpriceonly').style.display="block";
	 document.getElementById('arearentdiv').style.display="none";
     document.getElementById('plotrentdiv').style.display="none";
     document.getElementById('coverrentdiv').style.display="none";
	}	  
	if(document.property_search.rentprop_type.value=="Residential House"){		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";	
	}
	
	if(document.property_search.rentprop_type.value=="Residential Plot"){	
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";	
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('rentpricediv').style.display="block";
	 document.getElementById('rentpriceonly').style.display="none";
	 document.getElementById('arearentdiv').style.display="none";
     document.getElementById('plotrentdiv').style.display="block";
     document.getElementById('coverrentdiv').style.display="none";		
	}
	
	if(document.property_search.rentprop_type.value=="Multistorey Apartment"){		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";		
	}
	
	if(document.property_search.rentprop_type.value=="Builder Floor Apartment"){
	document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";			
	}
	if(document.property_search.rentprop_type.value=="Independent Villa"){
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	  document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";	
	}
	if(document.property_search.rentprop_type.value=="Commercial Land"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="none";
document.getElementById('plotrentdiv').style.display="block";
document.getElementById('coverrentdiv').style.display="none";		
	}
	if(document.property_search.rentprop_type.value=="Commercial Office Space"){
	  document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";		
	}
	if(document.property_search.rentprop_type.value=="Commercial Shop"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";			
	}
	if(document.property_search.rentprop_type.value=="Commercial Showroom"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";				
	}
	if(document.property_search.rentprop_type.value=="Kiosk"){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";	
	document.getElementById('plotdiv').style.display="none";
	document.getElementById('furnishdiv').style.display="block";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="block";
	document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="none";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="block";
	  			
	}
	if(document.property_search.rentprop_type.value=="Hotel"){
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";	
	}
	if(document.property_search.rentprop_type.value=="Hotel Sites"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="none";
document.getElementById('plotrentdiv').style.display="block";
document.getElementById('coverrentdiv').style.display="none";	
	}
	
	if(document.property_search.rentprop_type.value=="Guest House"){
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";		
	}
	if(document.property_search.rentprop_type.value=="Businees Centre"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";			
	}
	if(document.property_search.rentprop_type.value=="Warehouse/Godown"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="none";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="none";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="block";			
	}
	if(document.property_search.rentprop_type.value=="Industrial Land"){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="none";
	document.getElementById('plotdiv').style.display="block";
	document.getElementById('furnishdiv').style.display="none";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="none";	
	document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";	
	document.getElementById('arearentdiv').style.display="none";
document.getElementById('plotrentdiv').style.display="block";
document.getElementById('coverrentdiv').style.display="none";	
	}
	if(document.property_search.rentprop_type.value=="Industrial Building"){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";	
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	  document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";			
	}
	if(document.property_search.rentprop_type.value=="Industrial Shed"){
	document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	  document.getElementById('furnishdiv').style.display="none";
	  document.getElementById('constructdiv').style.display="block";
	  document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	   document.getElementById('amenitydiv').style.display="block";	
	   document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverrentdiv').style.display="none";		
	}
	if(document.property_search.rentprop_type.value=="Agricultural Land"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="none";
document.getElementById('plotrentdiv').style.display="block";
document.getElementById('coverrentdiv').style.display="none";
		
	}
	if(document.property_search.rentprop_type.value=="Farm House"){
	 document.getElementById('bedfield').style.display="none";
	 document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";	
	 document.getElementById('rentpricediv').style.display="block";
	document.getElementById('rentpriceonly').style.display="none";
	document.getElementById('arearentdiv').style.display="block";
document.getElementById('plotrentdiv').style.display="none";
document.getElementById('coverplotdiv').style.display="none";		
	}

	}


function selll(){
	
	document.getElementById('buydiv').style.display="block";
	document.getElementById('rentdiv').style.display="none";
	document.getElementById('buybudgetdiv').style.display="block";
    document.getElementById('rentbudgetdiv').style.display="none";
	
}

function renttt(){	

	    document.getElementById('buydiv').style.display="none";
		document.getElementById('rentdiv').style.display="block";
		document.getElementById('buybudgetdiv').style.display="none";
        document.getElementById('rentbudgetdiv').style.display="block";
		
		
	}


function selldisplay(){	
        //alert("hi");
		document.getElementById('buypricediv').style.display="block";
		document.getElementById('rentpricediv').style.display="none";
		document.getElementById('buydiv').style.display="block";
		document.getElementById('rentdiv').style.display="none";
		document.getElementById('ownerdiv').style.display="block";
		
		
}


function rentdisplay(){	
    
		document.getElementById('rentpricediv').style.display="block";
		document.getElementById('buypricediv').style.display="none";
	    document.getElementById('buydiv').style.display="none";
		document.getElementById('rentdiv').style.display="block";
		document.getElementById('ownerdiv').style.display="none";
		
		
	}
	
function buyselectbox(){
	
		document.getElementById('buydiv').style.display="block";
		document.getElementById('rentdiv').style.display="none";
		document.getElementById('buybudgetdiv').style.display="block";
		document.getElementById('rentbudgetdiv').style.display="none";
	}
function rentselectbox(){
		document.getElementById('buydiv').style.display="none";
		document.getElementById('rentdiv').style.display="block";
		document.getElementById('rentbudgetdiv').style.display="block";
		document.getElementById('buybudgetdiv').style.display="none";
	}
/*function proplocality(){
	document.getElementById('bedfield').style.display="none";
	document.getElementById('coverdiv').style.display="none";
	document.getElementById('plotdiv').style.display="none";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	
	}*/




function disablerent(z)
{
    var l = z.rentprop_type.value;
	
	if (l == 'Paying Guest') var c=new Array('Power Back Up','Lift','Park','Reserved Parking','Security','Water Storage','Air Conditioned','Visitor Parking','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Piped Gas');
	
	if (l == 'Hostel') var c=new Array('Power Back Up','Lift','Gymnasium','Park','Reserved Parking','Security','Water Storage','Air Conditioned','Visitor Parking','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Cafeteria/Food Court','Piped Gas');
	
	if (l == 'Residential Plot') var c=new Array('Power Back Up','Lift','Park','Reserved Parking','Security','Water Storage','Air Conditioned','Visitor Parking','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Piped Gas');
    if (l == 'Residential House') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Multistorey Apartment') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Builder Floor Apartment') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Independent Villa') var c=new Array('Power Back Up','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Commercial Land') var c=new Array(0);
	if (l == 'Commercial Office Space') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','RO Water System','Cafeteria/Food Court','Conference Room');
	if (l == 'Commercial Shop') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','RO Water System','Cafeteria/Food Court');
	if (l == 'Kiosk') var c=new Array('Power Back Up','Security');
	if (l == 'Hotel') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Hotel Sites') var c=new Array(0);
	if (l == 'Guest House') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Businees Centre') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Park','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Warehouse/Godown') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Intercom Facility');
	if (l == 'Industrial Land') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Industrial Building') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Reserved Parking','Security','Water Storage','Service/Goods Lift','Visitor Parking','Intercom Facility');
	if (l == 'Industrial Shed') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Reserved Parking','Security','Water Storage','Service/Goods Lift','Visitor Parking','Intercom Facility');
	
	if (l == 'Farm House') var c=new Array('Power Back Up','Rain Water Harvesting','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	
	
   
   
   
   
    for (x=0;x<z.elements.length;x++){
        if (z.elements[x].type == 'checkbox'){
            z.elements[x].disabled = true;
            z.elements[x].parentNode.className = 'selected';
            var id=z.elements[x].id;
            for (i in c) {
                if (id == c[i]) {
                   // z.elements[x].checked = false;
                    z.elements[x].disabled = false;
                    z.elements[x].parentNode.className = 'unselected';
                }
            }
        }
    }
}

function disablebuy(z)
{
	//alert("hi");
    var l = z.buyprop_type.value;
	
    if (l == 'Residential Plot') var c=new Array('Power Back Up','Lift','Park','Reserved Parking','Security','Water Storage','Air Conditioned','Visitor Parking','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Piped Gas');
    if (l == 'Residential House') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Multistorey Apartment') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Builder Floor Apartment') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Independent Villa') var c=new Array('Power Back Up','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Commercial Land') var c=new Array(0);
	if (l == 'Commercial Office Space') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','RO Water System','Cafeteria/Food Court','Conference Room');
	if (l == 'Commercial Shop') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','RO Water System','Cafeteria/Food Court');
	
	
	if (l == 'Commercial Showroom') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','RO Water System','Cafeteria/Food Court');
	
	if (l == 'Kiosk') var c=new Array('Power Back Up','Security');
	if (l == 'Hotel') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Hotel Sites') var c=new Array(0);
	if (l == 'Guest House') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Businees Centre') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Park','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Warehouse/Godown') var c=new Array('Power Back Up','Lift','Reserved Parking','Security','Water Storage','Service/Goods Lift','Air Conditioned','Intercom Facility');
	if (l == 'Industrial Land') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Club House','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Visitor Parking','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	if (l == 'Industrial Building') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Reserved Parking','Security','Water Storage','Service/Goods Lift','Visitor Parking','Intercom Facility');
	if (l == 'Industrial Shed') var c=new Array('Power Back Up','Lift','Rain Water Harvesting','Reserved Parking','Security','Water Storage','Service/Goods Lift','Visitor Parking','Intercom Facility');
	
	if (l == 'Farm House') var c=new Array('Power Back Up','Rain Water Harvesting','Swimming Pool','Gymnasium','Park','Reserved Parking','Security','Servant Quarters','Water Storage','Private Terrace/ Garden','Vaastu Compliant','Service/Goods Lift','Air Conditioned','Intercom Facility','Maintenance Staff','Waste Disposal','Laundry Service','Internet / Wi-Fi Connectivity','DTH Television Facility','RO Water System','Banquet Hall','Bar/Lounge','Cafeteria/Food Court','Conference Room','Piped Gas');
	
	
   
   
   
   
     for (x=0;x<z.elements.length;x++){
        if (z.elements[x].type == 'checkbox'){
            z.elements[x].disabled = true;
            z.elements[x].parentNode.className = 'selected';
            var id=z.elements[x].id;
            for (i in c) {
                if (id == c[i]) {
                    //z.elements[x].checked = false;
                    z.elements[x].disabled = false;
                    z.elements[x].parentNode.className = 'unselected';
                }
            }
        }
    }
}


<!-- Begin to hide script contents from old browsers.

// Author: Ernest J. Huffine

function Unit(type,text,factor)
    {
    this.text = text;
    this.type = type;
    this.factor = factor;
    }

function MakeArray(n)
    {
    this.length = n;
    for (var i = 1; i <= n; i++)
        { 
        this[i] = 0 ;
        }
    return this;
    }

function CheckNumber(str)
    {
	
    if (str == "") 
        {
        alert("Enter a number in the field, please.");
        return false;
        }
    for (var i = 0; i < str.length; i++) 
        {
        var ch = str.substring(i, i + 1);
        if (ch=="0" || ch=="1" || ch=="2" || ch=="3" || ch=="4" || ch=="5" ||
            ch=="6" || ch=="7" || ch=="8" || ch=="9" || ch=="." || ch=="e" || ch=="E")
            {
            // it's a number
            }
        else
            {
            alert("Please enter numeric values only.");
            return false;
            }
        }
    return true;
    }

function FormatNumber(input, rsize)
    {
    var invalid = "**************************";
    var nines = "999999999999999999999999";
    var strin = "" + input;
    var fltin = parseFloat(strin);
    if (strin.length <= rsize) return strin;
    if (strin.indexOf("e") != -1 ||  fltin > parseFloat(nines.substring(0,rsize)+".4"))
        return invalid.substring(0, rsize);
    var rounded = "" + (fltin + (fltin - parseFloat(strin.substring(0, rsize))));
    return rounded.substring(0, rsize);
    }

function ConvertFactor(form)
    {
    var fromIndex,toIndex,fromText,toText;
    var factor1,factor2,type1,type2;

    factor1=0.;
    factor2=0.;
    type1=0;
    type2=1;
   
    fromIndex=form.fromUnit.selectedIndex;
    toIndex=form.toUnit.value;
    fromText=form.fromUnit.options[fromIndex].text;
    toText=toIndex;
    
   //if (form.fromUnit.length!=form.toUnit.length)
//        {
//        alert("Unit select lists are different!");
//        return false;
//        }
    // unselect multiples
//    for (i=0; i<form.fromUnit.length;i++)
//        {
//        if (i!=fromIndex) form.fromUnit.options[i].selected=false;
//        if (i!=toIndex) form.toUnit.options[i].selected=false;
//        }

    if (fromText=="---------------" || fromText=="")        
        {
//        alert("Please specify a valid unit system to convert from");
        form.fromUnit.focus();
        return false;
        }
    if (toText=="---------------"  || toText=="")        
        {
//        alert("Please specify a valid unit system to convert to");
        form.toUnit.focus();
        return false;
        }
    for (i=0; i < units.length; i++)
        {
        if (units[i].text==fromText)  {factor1=units[i].factor; type1=units[i].type;}
        if (units[i].text==toText)    {factor2=units[i].factor;  type2=units[i].type;}
        }
    if (type1!=type2)
        {
//        alert("Units are incompatible");
        return false;
        }
   /* if (factor1==0.) 
        {
        alert("Conversion factor for from unit not implemented yet");
        form.fromUnit.focus();
        return false;
        }
    if (factor2==0.)
        {
        alert("Conversion factor for to unit not implemented yet");
        form.toUnit.focus();
        return false;
        }*/
    form.factor.value=factor2/factor1;
    return true
    }

function ConvertValue(form)
    {
	
    if (ConvertFactor(form)==false)
        {
        form.factor.value="";
        form.toVal.value="";
        return false;
        }
    if (form.fromVal.value=="")
        {
        form.fromVal.value="1";
        }
    if (CheckNumber(form.fromVal.value)==false)
        {
        form.fromVal.value="";
        form.toVal.value="";
        form.factor.value=FormatNumber(form.factor.value,form.digits.value);
        return false;
        }
       form.toVal.value=FormatNumber(form.fromVal.value*form.factor.value,form.digits.value);
    // form.fromVal.value=FormatNumber(form.fromVal.value,form.digits.selectedIndex);
    form.factor.value=FormatNumber(form.factor.value,form.digits.value);
	document.property_search.fromVal.focus();
    return true;
    }
	
	function ConverFactor(form)
    {
    var fromIndex,toIndex,fromText,toText;
    var factor1,factor2,type1,type2;

    factor1=0.;
    factor2=0.;
    type1=0;
    type2=1;
   
    fromIndex=form.fromUnitt.selectedIndex;
    toIndex=form.toUnitt.value;
    fromText=form.fromUnitt.options[fromIndex].text;
    toText=toIndex;
    
   //if (form.fromUnit.length!=form.toUnit.length)
//        {
//        alert("Unit select lists are different!");
//        return false;
//        }
    // unselect multiples
//    for (i=0; i<form.fromUnit.length;i++)
//        {
//        if (i!=fromIndex) form.fromUnit.options[i].selected=false;
//        if (i!=toIndex) form.toUnit.options[i].selected=false;
//        }

    if (fromText=="---------------" || fromText=="")        
        {
//        alert("Please specify a valid unit system to convert from");
        form.fromUnitt.focus();
        return false;
        }
    if (toText=="---------------"  || toText=="")        
        {
//        alert("Please specify a valid unit system to convert to");
        form.toUnitt.focus();
        return false;
        }
    for (i=0; i < units.length; i++)
        {
        if (units[i].text==fromText)  {factor1=units[i].factor; type1=units[i].type;}
        if (units[i].text==toText)    {factor2=units[i].factor;  type2=units[i].type;}
        }
    if (type1!=type2)
        {
//        alert("Units are incompatible");
        return false;
        }
   /* if (factor1==0.) 
        {
        alert("Conversion factor for from unit not implemented yet");
        form.fromUnitt.focus();
        return false;
        }
    if (factor2==0.)
        {
        alert("Conversion factor for to unit not implemented yet");
        form.toUnitt.focus();
        return false;
        }*/
    form.factor.value=factor2/factor1;
    return true
    }

function ConverValue(form)
    {
    if (ConverFactor(form)==false)
        {
        form.factor.value="";
        form.toVall.value="";
        return false;
        }
    if (form.fromVall.value=="")
        {
        form.fromVall.value="1";
        }
    if (CheckNumber(form.fromVall.value)==false)
        {
        form.fromVall.value="";
        form.toVall.value="";
        form.factor.value=FormatNumber(form.factor.value,form.digits.value);
        return false;
        }
       form.toVall.value=FormatNumber(form.fromVall.value*form.factor.value,form.digits.value);
    // form.fromVal.value=FormatNumber(form.fromVal.value,form.digits.selectedIndex);
    form.factor.value=FormatNumber(form.factor.value,form.digits.value);
	document.property_search.fromVall.focus();
    return true;
    }

function ConvValue(form)
    {
    if (ConverFactor(form)==false)
        {
        form.factor.value="";
        form.tobuytotprice.value="";
        return false;
        }
    if (form.buytotprice.value=="")
        {
        form.buytotprice.value="1";
        }
    if (CheckNumber(form.buytotprice.value)==false)
        {
        form.buytotprice.value="";
        form.tobuytotprice.value="";
        form.factor.value=FormatNumber(form.factor.value,form.digits.value);
        return false;
        }
       form.tobuytotprice.value=FormatNumber(form.buytotprice.value*form.factor.value,form.digits.value);
    // form.fromVal.value=FormatNumber(form.fromVal.value,form.digits.selectedIndex);
    form.factor.value=FormatNumber(form.factor.value,form.digits.value);
	document.property_search.tobuytotprice.focus();
    return true;
    }

function ConvertVal(form)
    {
    if (ConverFactor(form)==false)
        {
        form.factor.value="";
        form.tobuyunitprice.value="";
        return false;
        }
    if (form.buyunitprice.value=="")
        {
        form.buyunitprice.value="1";
        }
    if (CheckNumber(form.buytotprice.value)==false)
        {
        form.buyunitprice.value="";
        form.tobuyunitprice.value="";
        form.factor.value=FormatNumber(form.factor.value,form.digits.value);
        return false;
        }
       form.tobuyunitprice.value=FormatNumber(form.buyunitprice.value*form.factor.value,form.digits.value);
    // form.fromVal.value=FormatNumber(form.fromVal.value,form.digits.selectedIndex);
    form.factor.value=FormatNumber(form.factor.value,form.digits.value);
	document.property_search.buyunitprice.focus();
    return true;
    }

function CoValue(form)
    {
		
    if (ConverFactor(form)==false)
        {
        form.factor.value="";
        form.ffrommVal.value="";
        return false;
        }
    if (form.frommVal.value=="")
        {
        form.frommVal.value="1";
        }
    if (CheckNumber(form.frommVal.value)==false)
        {
        form.frommVal.value="";
        form.ffrommVal.value="";
        form.factor.value=FormatNumber(form.factor.value,form.digits.value);
        return false;
        }
       form.ffrommVal.value=FormatNumber(form.frommVal.value*form.factor.value,form.digits.value);
    // form.fromVal.value=FormatNumber(form.fromVal.value,form.digits.selectedIndex);
    form.factor.value=FormatNumber(form.factor.value,form.digits.value);
	document.property_searc.frommVal.focus();
    return true;
    }

units = new MakeArray(10);



units[0] = new Unit(0,"sqr centimeters",1.0e10);
units[1] = new Unit(0,"sqr inches",1550003100.0062);
units[2] = new Unit(0,"sqr feet",10763910.41670972);
units[3] = new Unit(0,"sqr yards",1195990.046301080);
units[4] = new Unit(0,"sqr meters",1.e6);
units[5] = new Unit(0,"sqr kilometers",1);
units[6] = new Unit(0,"sqr miles (nautical)",.2915533495981235);
units[7] = new Unit(0,"sqr miles (statute)",.3861021585424458);
units[8] = new Unit(0,"sqr miles (survey)",.3861006141353548);
units[9] = new Unit(0,"acres",247.1053814671653);
units[10] = new Unit(0,"hectares",100);



// End the hiding here. -->



function areaselection(){	
	if(document.getElementById('areatypediv').style.display == 'block'){		
	document.property_search.buyareaaval.value =document.property_search.buyareatype.value;
	}
	else if(document.getElementById('plotareadiv').style.display == 'block'){		
		document.property_search.buyareaaval.value=document.property_search.buyplottype.value;
	}
	else if(document.getElementById('coverareadiv').style.display == 'block'){		
		document.property_search.buyareaaval.value=document.property_search.buycovertype.value;
	}	
}

function rentareaselection(){
	if(document.getElementById('arearentdiv').style.display == 'block'){		
	document.property_search.rentareaaval.value =document.property_search.rentareatype.value;
	}
	else if(document.getElementById('plotrentdiv').style.display == 'block'){		
		document.property_search.rentareaaval.value=document.property_search.rentplottype.value;
	}
	else if(document.getElementById('coverrentdiv').style.display == 'block'){		
		document.property_search.rentareaaval.value=document.property_search.rentcovertype.value;
	}	
}



function proptypeselll(){
	//alert("hi");
	if(document.property_searc.buyprop_type.value=="Residential House"){		
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/	
	}
	
	if(document.property_searc.buyprop_type.value=="Residential Plot"){	
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";	
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	
	if(document.property_searc.buyprop_type.value=="Multistorey Apartment"){
		//alert("dai");
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	
	if(document.property_searc.buyprop_type.value=="Builder Floor Apartment"){
	document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	 /* document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Independent Villa"){
	 document.getElementById('bedfield').style.display="block";
	/* document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	  document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	 /* document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Commercial Land"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Commercial Office Space"){
	  document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Commercial Shop"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Commercial Showroom"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";	*/
	}
	if(document.property_searc.buyprop_type.value=="Kiosk"){
	document.getElementById('bedfield').style.display="none";
	/*document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";	
	document.getElementById('plotdiv').style.display="none";
	document.getElementById('furnishdiv').style.display="block";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="block";*/
	document.getElementById('areatypediv').style.display="block";
	document.getElementById('plotareadiv').style.display="none";
	/*document.getElementById('coverareadiv').style.display="block";*/	
	}
	if(document.property_searc.buyprop_type.value=="Hotel"){
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Hotel Sites"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";*/
	}
	
	if(document.property_searc.buyprop_type.value=="Guest House"){
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	  document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Businees Centre"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";	*/
	}
	if(document.property_searc.buyprop_type.value=="Warehouse/Godown"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="none";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="none";
	 /*document.getElementById('coverareadiv').style.display="block";	*/
	}
	if(document.property_searc.buyprop_type.value=="Industrial Land"){
	document.getElementById('bedfield').style.display="none";
	/*document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="none";
	document.getElementById('plotdiv').style.display="block";
	document.getElementById('furnishdiv').style.display="none";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="none";*/	
	document.getElementById('areatypediv').style.display="none";
    document.getElementById('plotareadiv').style.display="block";
    /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Industrial Building"){
	document.getElementById('bedfield').style.display="none";
	/*document.getElementById('bathfield').style.display="none";
     document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";	
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/	
	}
	if(document.property_searc.buyprop_type.value=="Industrial Shed"){
	document.getElementById('bedfield').style.display="none";
	/* document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.buyprop_type.value=="Agricultural Land"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/

	}
	if(document.property_searc.buyprop_type.value=="Farm House"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/
	}
}




function proptyperenttt(){   
//alert("Bye");
	if(document.property_searc.rentprop_type.value=="Residential House"){
		
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	 
	
	}
	
	if(document.property_searc.rentprop_type.value=="Residential Plot"){	
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";	
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	
	if(document.property_searc.rentprop_type.value=="Multistorey Apartment"){		
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	
	if(document.property_searc.rentprop_type.value=="Builder Floor Apartment"){
	document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	 /* document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Independent Villa"){
	 document.getElementById('bedfield').style.display="block";
	/* document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	  document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	 /* document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Commercial Land"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Commercial Office Space"){
	  document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Commercial Shop"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Commercial Showroom"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";	*/
	}
	if(document.property_searc.rentprop_type.value=="Kiosk"){
	document.getElementById('bedfield').style.display="none";
	/*document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="block";	
	document.getElementById('plotdiv').style.display="none";
	document.getElementById('furnishdiv').style.display="block";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="block";*/
	document.getElementById('areatypediv').style.display="block";
	document.getElementById('plotareadiv').style.display="none";
	/*document.getElementById('coverareadiv').style.display="block";*/	
	}
	if(document.property_searc.rentprop_type.value=="Hotel"){
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Hotel Sites"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";*/
	}
	
	if(document.property_searc.rentprop_type.value=="Guest House"){
	 document.getElementById('bedfield').style.display="block";
	 /*document.getElementById('bathfield').style.display="block";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/	
	  document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Businees Centre"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  /*document.getElementById('coverareadiv').style.display="none";	*/
	}
	if(document.property_searc.rentprop_type.value=="Warehouse/Godown"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="none";
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="block";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
	 document.getElementById('plotareadiv').style.display="none";
	 /*document.getElementById('coverareadiv').style.display="block";	*/
	}
	if(document.property_searc.rentprop_type.value=="Industrial Land"){
	document.getElementById('bedfield').style.display="none";
	/*document.getElementById('bathfield').style.display="none";
	document.getElementById('coverdiv').style.display="none";
	document.getElementById('plotdiv').style.display="block";
	document.getElementById('furnishdiv').style.display="none";
	document.getElementById('constructdiv').style.display="none";
	document.getElementById('facingdiv').style.display="none";
	document.getElementById('floordiv').style.display="none";
	document.getElementById('totalfloordiv').style.display="none";
	document.getElementById('amenitydiv').style.display="none";*/	
	document.getElementById('areatypediv').style.display="none";
    document.getElementById('plotareadiv').style.display="block";
    /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Industrial Building"){
	document.getElementById('bedfield').style.display="none";
	/*document.getElementById('bathfield').style.display="none";
     document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";
	 document.getElementById('furnishdiv').style.display="none";	
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/	
	}
	if(document.property_searc.rentprop_type.value=="Industrial Shed"){
	document.getElementById('bedfield').style.display="none";
	/* document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="block";*/	
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/
	}
	if(document.property_searc.rentprop_type.value=="Agricultural Land"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="none";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="none";
	 document.getElementById('constructdiv').style.display="none";
	 document.getElementById('facingdiv').style.display="none";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="none";
	 document.getElementById('amenitydiv').style.display="none";*/
	 document.getElementById('areatypediv').style.display="none";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/

	}
	if(document.property_searc.rentprop_type.value=="Farm House"){
	 document.getElementById('bedfield').style.display="none";
	 /*document.getElementById('bathfield').style.display="none";
	 document.getElementById('coverdiv').style.display="block";
	 document.getElementById('plotdiv').style.display="block";	
	 document.getElementById('furnishdiv').style.display="block";
	 document.getElementById('constructdiv').style.display="block";
	 document.getElementById('facingdiv').style.display="block";
	 document.getElementById('floordiv').style.display="none";
	 document.getElementById('totalfloordiv').style.display="block";
	 document.getElementById('amenitydiv').style.display="block";*/
	 document.getElementById('areatypediv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     /*document.getElementById('coverareadiv').style.display="none";*/
	}
	}
//function checkSelected(){
//	alert("HI");
//	if ( document.property_searc.city.value == 1 )
//    {
//	document.getElementById('locldiv').style.display="block";	
//	}
//	else
//	{
//	document.getElementById('locldiv').style.display="none";	
//	}
//	
//}

function propvaldation()
{
	
	if ( ( document.property_search.prop[0].checked == false )
    && ( document.property_search.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		//document.property_search.prop.focus();
        return false;
    }
	 if(document.getElementById('buydiv').style.display == "block")
    {
	
	if ( document.property_search.buyprop_type.selectedIndex == 0 )
    {
        alert ( "Please select Propertyy Type." );
		document.property_search.buyprop_type.focus();
        return false;
    }
	}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( document.property_search.rentprop_type.selectedIndex == 0 )
    {
        alert ( "Please select Property Type." );
		document.property_search.rentprop_type.focus();
        return false;
    }
    }
	
	if ( document.property_search.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.property_search.country.focus();
        return false;
    }
   if ( document.property_search.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.property_search.states.focus();
        return false;
    }
  /*  if ( !document.property_search.city.length )
    {
        alert ( "Please select City." );
		document.property_search.city.focus();
        return false;
    }*/
	if ( document.property_search.city.selectedIndex == 0 )
    {
        alert ( "Please select City." );
		document.property_search.city.focus();
        return false;
    }
	/*if ( document.property_search.locality.selectedIndex < 0 )
    {
        alert ( "Please select Locality." );
		document.property_search.locality.focus();
        return false;
    }*/
	
	
   
	if(document.property_search.address.value == 0 )
	{
		alert ( "Please Specify Your Permanent Address." );
		document.property_search.address.focus();
		return false;
	}
	
	if(document.getElementById('bedfield').style.display == "block")
    {
		
	if ( document.property_search.bhk.selectedIndex == 0 )
    {
        alert ( "Please select Bed Room." );
		document.property_search.bhk.focus();
        return false;
    }
	}
	
	/*if(document.getElementById('coverdiv').style.display == "block")
    {
	if ( document.property_search.fromVal.value == 0 )
    {
        alert ( "Please Specify Covered Area." );
		document.property_search.fromVal.focus();
        return false;
    }
	}*/
	
	if(document.getElementById('plotdiv').style.display == "block")
    {
	if ( document.property_search.fromVall.value == 0 )
    {
        alert ( "Please specify Plot/Land Area." );
		document.property_search.fromVall.focus();
        return false;
    }
	}
	
	if((document.property_search.renttotprice.value == 0) && (document.property_search.rentunitprice.value == 0 ))
	{
	if(document.getElementById('rentpricediv').style.display == "block")
    {
	if ( document.property_search.renttotprice.value == 0 )
    {
        alert ( "Please specify Monthly Rent or Monthly Rent per Unit Area." );
		document.property_search.renttotprice.focus();
        return false;
    }
	}
	}
	
	if((document.property_search.buytotprice.value == 0) && (document.property_search.buyunitprice.value == 0 ))
	{
	if(document.getElementById('buypricediv').style.display == "block")
    {
	if ( document.property_search.buytotprice.value == 0 )
    {
        alert ( "Please specify Total Price." );
		document.property_search.buytotprice.focus();
        return false;
    }
	}
	}
	
	if ( document.property_search.trans.selectedIndex == 0 )
    {
        alert ( "Please select Transaction Type." );
		document.property_search.trans.focus();
        return false;
    }
	
	if(document.property_search.desc.value == 0 )
	{
		alert ( "Please Specify Your Brief Description." );
		document.property_search.desc.focus();
		return false;
	}
	if(document.getElementById('rentpriceonly').style.display == "block")
    {
	if ( document.property_search.hosteltotprice.value == 0 )
    {
        alert ( "Please specify Total Price." );
		document.property_search.hosteltotprice.focus();
        return false;
    }
	}
	if ( document.property_search.mini.selectedIndex == 0 )
    {
        alert ( "Please select Transaction Type." );
		document.property_search.trans.focus();
        return false;
    }
	
	 
	
}

function requirvaldation(daForm){
	
	
	 var postAll;
    var sB = document.getElementById("chooselocality");
	    for(var k=0; k<sB.length; k++){	
	        postAll = document.createElement("input");
	        postAll.setAttribute("type", "hidden");
       postAll.setAttribute("name", "local[]");
        postAll.setAttribute("value", sB[k].value);
        daForm.appendChild(postAll) ;
    }
	
	if ( ( document.property_search.prop[0].checked == false )
    && ( document.property_search.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		//document.property_search.prop.focus();
        return false;
    }
	 if(document.getElementById('buydiv').style.display == "block")
    {
	
	if ( document.property_search.buyprop_type.selectedIndex == 0 )
    {
        alert ( "Please select Propertyy Type." );
		document.property_search.buyprop_type.focus();
        return false;
    }
	}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( document.property_search.rentprop_type.selectedIndex == 0 )
    {
        alert ( "Please select Property Type." );
		document.property_search.rentprop_type.focus();
        return false;
    }
    }
	
	if ( document.property_search.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.property_search.country.focus();
        return false;
    }
   if ( document.property_search.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.property_search.states.focus();
        return false;
    }
    if ( document.property_search.city.selectedIndex == 0 )
    {
        alert ( "Please select City." );
		document.property_search.city.focus();
        return false;
    }
	if ( document.property_search.chooselocality.selectedIndex < 0 )
    {
        alert ( "Please select Locality." );
		document.property_search.chooselocality.focus();
        return false;
    }
	
	if(document.getElementById('coverareadiv').style.display == "block")
    {
	if ( document.property_search.fromVal.value == 0 )
    {
        alert ( "Please Specify Covered Area." );
		document.property_search.fromVal.focus();
        return false;
    }
	
	}
	
	if(document.getElementById('plotareadiv').style.display == "block")
    {
	if ( document.property_search.fromVall.value == 0 )
    {
        alert ( "Please specify Plot/Land Area." );
		document.property_search.fromVall.focus();
        return false;
    }
	}
	
	if(document.getElementById('bedfield').style.display == "block")
    {
	if ( document.property_searc.bhk.selectedIndex == 0 )
    {
        alert ( "Please select Bed Room." );
		document.property_searc.bhk.focus();
        return false;
    }
	}
	

	if ( document.property_search.mini.selectedIndex == 0 )
    {
        alert ( "Please select Minimum Budget." );
		document.property_search.mini.focus();
        return false;
    }
	if ( document.property_search.maxi.selectedIndex == 0 )
    {
        alert ( "Please select Maximum Budget." );
		document.property_search.maxi.focus();
        return false;
    }
	if ( document.property_search.desc.value == 0 )
    {
        alert ( "Please specify Brief Description." );
		document.property_search.desc.focus();
        return false;
    }
	
	
var chks = document.getElementsByName('membertype[]');
var hasChecked = false;
for (var i = 0; i < chks.length; i++)
{
if (chks[i].checked)
{
hasChecked = true;
break;
}
}
if (!hasChecked)
{
alert("Please select at least one Property posted by.");
chks[0].focus();
return false;
}
return true;
	
		
}

function editrequireval(){
	
	if ( document.property_searc.mini.selectedIndex == 0 )
    {
        alert ( "Please select Minimum Budget." );
		document.property_searc.mini.focus();
        return false;
    }
	if ( document.property_searc.maxi.selectedIndex == 0 )
    {
        alert ( "Please select Maximum Budget." );
		document.property_searc.maxi.focus();
        return false;
    }
	if(document.getElementById('bedfield').style.display == "block")
    {
		alert("poi");
	if ( document.property_searc.bhk.selectedIndex == 0 )
    {
        alert ( "Please select Bed Room." );
		document.property_searc.bhk.focus();
        return false;
    }
	
	}
	if(document.property_searc.desc.value == 0 )
	{
		alert ( "Please Specify Your Brief Description." );
		document.property_searc.desc.focus();
		return false;
	}
	
var chks = document.getElementsByName('membertype[]');
var hasChecked = false;
for (var i = 0; i < chks.length; i++)
{
if (chks[i].checked)
{
hasChecked = true;
break;
}
}
if (!hasChecked)
{
alert("Please select at least one Property posted by.");
chks[0].focus();
return false;
}
return true;
	
}

function editpropvaldation(){
	
	
	if(document.getElementById('bedfield').style.display == "block")
    {
	if ( document.property_search.bhk.selectedIndex == 0 )
    {
        alert ( "Please select Bed Room." );
		document.property_search.bhk.focus();
        return false;
    }
	}
	
/*	if(document.getElementById('coverdiv').style.display == "block")
    {
	if ( document.property_search.fromVal.value == 0 )
    {
        alert ( "Please Specify Covered Area." );
		document.property_search.fromVal.focus();
        return false;
    }
	}*/
	
	if(document.getElementById('plotdiv').style.display == "block")
    {
	if ( document.property_search.fromVall.value == 0 )
    {
        alert ( "Please specify Plot/Land Area." );
		document.property_search.fromVall.focus();
        return false;
    }
	}
	
	
	if(document.getElementById('rentpricediv').style.display == "block")
    {
	if ( document.property_search.renttotprice.value == 0 )
    {
        alert ( "Please specify Monthly Rent." );
		document.property_search.renttotprice.focus();
        return false;
    }
	}
	
	
	if((document.property_search.buytotprice.value == 0) && (document.property_search.buyunitprice.value == 0 ))
	{
	if(document.getElementById('buypricediv').style.display == "block")
    {
	if ( document.property_search.buytotprice.value == 0 )
    {
        alert ( "Please specify Total Price." );
		document.property_search.buytotprice.focus();
        return false;
    }
	}
	}
	
	if ( document.property_search.trans.selectedIndex == 0 )
    {
        alert ( "Please select Transaction Type." );
		document.property_search.trans.focus();
        return false;
    }
	
	if(document.property_search.desc.value == 0 )
	{
		alert ( "Please Specify Your Brief Description." );
		document.property_search.desc.focus();
		return false;
	}
	

}

function postrequremwnt(){
	
	if ( ( document.property_require.prop[0].checked == false )
    && ( document.property_require.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		//document.property_require.prop.focus();
        return false;
    }
	 if(document.getElementById('buydiv').style.display == "block")
    {
	
	if ( document.property_require.buyprop_type.selectedIndex == 0 )
    {
        alert ( "Please select Property Type." );
		document.property_require.buyprop_type.focus();
        return false;
    }
	}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( document.property_require.rentprop_type.selectedIndex == 0 )
    {
        alert ( "Please select Property Type." );
		document.property_require.rentprop_type.focus();
        return false;
    }
    }
	
	if ( document.property_require.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.property_require.country.focus();
        return false;
    }
   if ( document.property_require.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.property_require.states.focus();
        return false;
    }
    if ( document.property_require.city.selectedIndex == 0 )
    {
        alert ( "Please select City." );
		document.property_require.city.focus();
        return false;
    }
	if ( document.property_require.locality.selectedIndex < 0 )
    {
        alert ( "Please select Locality." );
		document.property_require.locality.focus();
        return false;
    }

	if ( document.property_require.fromVal.value == 0 )
    {
        alert ( "Please Specify Covered Area." );
		document.property_require.fromVal.focus();
        return false;
    }
	
	if ( document.property_require.fromVall.value == 0 )
    {
        alert ( "Please specify Plot/Land Area." );
		document.property_require.fromVall.focus();
        return false;
    }
	if ( document.property_require.mini.selectedIndex == 0 )
    {
        alert ( "Please select Minimum Bubget." );
		document.property_require.mini.focus();
        return false;
    }
	if ( document.property_require.maxi.selectedIndex == 0 )
    {
        alert ( "Please select Maximum Bubget." );
		document.property_require.maxi.focus();
        return false;
    }

	if(document.property_require.desc.value == 0 )
	{
		alert ( "Please Specify Your Brief Description." );
		document.property_require.desc.focus();
		return false;
	}
	if((document.property_require.membertype[0].checked == false) &&
	    (document.property_require.membertype[1].checked == false) &&
		 (document.property_require.membertype[2].checked == false) &&
		 (document.property_require.membertype[3].checked == false))
	{
	 alert ("Please Select atleast one Property Looking for");
	 return false;
	 
	}
	
}

function findleng(){

var leng= document.property_searc.buy_type.length;
if(leng==5)
{
	
	alert("You can not select more than 5");
	return false;
}
else
{
swapElement('buyprop_type','buy_type');	

}
}
function findbuyleng(){

var leng= document.buyer_searc.buy_type.length;
if(leng==5)
{
	
	alert("You can not select more than 5");
	return false;
}
else
{
swapElement('buyprop_type','buy_type');	

}

}

function findrentleng(){



var lang= document.property_searc.rent_type.length;
if(lang==5)
{
	
	alert("You can not select more than 5");
	return false;
}
else
{
swapElement('rentprop_type','rent_type');		
}
}

function findbuyrentleng(){

var leng= document.buyer_searc.rent_type.length;
if(leng==5)
{
	
	alert("You can not select more than 5");
	return false;
}
else
{
swapElement('rentprop_type','rent_type');		
}
}

function findcityleng(){
var leng= document.property_searc.sel_city.length;
if(leng==5)
{
	
	alert("You can not select more than 5 city");
	return false;
}
else
{
swapElement('city','sel_city');		
}	
}
function findbuycityleng(){
var leng= document.buyer_searc.sel_city.length;
if(leng==5)
{
	
	alert("You can not select more than 5 city");
	return false;
}
else
{
swapElement('city','sel_city');		
}	
}



function searchprop(seform){
	var postAll;
    var sB = document.getElementById("buy_type");
	    for(var k=0; k<sB.length; k++){	
	        postAll = document.createElement("input");
	        postAll.setAttribute("type", "hidden");
       postAll.setAttribute("name", "buyprop_typee[]");
        postAll.setAttribute("value", sB[k].value);
        seform.appendChild(postAll) ;
    }
	
	var alll;
    var it = document.getElementById("rent_type");
	    for(var h=0; h<it.length; h++){	
	        alll = document.createElement("input");
	        alll.setAttribute("type", "hidden");
       alll.setAttribute("name", "rentprop_typee[]");
        alll.setAttribute("value", it[h].value);
        seform.appendChild(alll) ;
    }
	var posted;
	 var ci = document.getElementById("sel_city");
	    for(var s=0; s<ci.length; s++){	
	        posted = document.createElement("input");
	        posted.setAttribute("type", "hidden");
       posted.setAttribute("name", "sele_city[]");
        posted.setAttribute("value", ci[s].value);
        seform.appendChild(posted) ;
    }
	
	
	if ( ( document.property_searc.prop[0].checked == false )
    && ( document.property_searc.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent");
		//document.property_searc.prop.focus();
        return false;
    }
	 if(document.getElementById('buydiv').style.display == "block")
    {
	
	if (!document.property_searc.buy_type.length) {
		
alert("Please select Property Type.");
document.property_searc.buy_type.focus();
return false;
} 

}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( !document.property_searc.rent_type.length)
    {
        alert ( "Please select Property Type.");
		document.property_searc.rent_type.focus();
        return false;
    }
    }
	
	if ( document.property_searc.country.selectedIndex == 0 )
    {
        alert ( "Please select Country.");
		document.property_searc.country.focus();
        return false;
    }
   if ( document.property_searc.states.selectedIndex == 0 )
    {
        alert ( "Please select State.");
		document.property_searc.states.focus();
        return false;
    }
    if ( !document.property_searc.sel_city.length)
    {
        alert ( "Please select City.");
		document.property_searc.sel_city.focus();
        return false;
    }
	
	

}





function findlocalleng(){
var leng= document.property_searc.chooselocality.length;
if(leng==5)
{
	
	alert("You can not select more than 5 Locality");
	return false;
}
else
{
swapElement('locality','chooselocality')	
	
}	
}

function localsearchprop(loform){
	var postAll;
    var sB = document.getElementById("buy_type");
	    for(var k=0; k<sB.length; k++){	
	        postAll = document.createElement("input");
	        postAll.setAttribute("type", "hidden");
       postAll.setAttribute("name", "buyprop_typee[]");
        postAll.setAttribute("value", sB[k].value);
        loform.appendChild(postAll) ;
    }
	
	var alll;
    var it = document.getElementById("rent_type");
	    for(var h=0; h<it.length; h++){	
	        alll = document.createElement("input");
	        alll.setAttribute("type", "hidden");
       alll.setAttribute("name", "rentprop_typee[]");
        alll.setAttribute("value", it[h].value);
        loform.appendChild(alll) ;
    }
	 
	
	  document.property_searc.sele_city.value=document.property_searc.city.value;
	       
	 var postall;
    var SB = document.getElementById("chooselocality");
	    for(var f=0; f<SB.length; f++){	
	        postall = document.createElement("input");
	        postall.setAttribute("type", "hidden");
       postall.setAttribute("name", "local[]");
        postall.setAttribute("value", SB[f].value);
        loform.appendChild(postall) ;
    }
	
	if ( ( document.property_searc.prop[0].checked == false )
    && ( document.property_searc.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		//document.property_searc.prop.focus();
        return false;
    }
	 if(document.getElementById('buydiv').style.display == "block")
    {
	if (!document.property_searc.buy_type.length) {
		
    alert("Please select Property Type.");
    document.property_searc.buy_type.focus();
    return false;
    } 
	}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( !document.property_searc.rent_type.length)
    {
        alert ( "Please select Property Type.");
		document.property_searc.rent_type.focus();
        return false;
    }
    }
	
	if ( document.property_searc.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.property_searc.country.focus();
        return false;
    }
   if ( document.property_searc.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.property_searc.states.focus();
        return false;
    }
    if ( document.property_searc.city.selectedIndex == 0 )
    {
        alert ( "Please select City." );
		document.property_searc.city.focus();
        return false;
    }
	
	if ( !document.property_searc.chooselocality.length)
    {
        alert ( "Please select Locality.");
		document.property_searc.chooselocality.focus();
        return false;
    }
	
    if(document.getElementById('bedfield').style.display == "block")
    {
	if ( document.property_searc.bhk.selectedIndex == 0 )
    {
        alert ( "Please select Bed Room." );
		document.property_searc.bhk.focus();
        return false;
    }
	}

}
function advasearchprop(adform){
	
	var postAll;
    var sB = document.getElementById("buy_type");
	    for(var k=0; k<sB.length; k++){	
	        postAll = document.createElement("input");
	        postAll.setAttribute("type", "hidden");
       postAll.setAttribute("name", "buyprop_typee[]");
        postAll.setAttribute("value", sB[k].value);
        adform.appendChild(postAll) ;
    }
	
	var alll;
    var it = document.getElementById("rent_type");
	    for(var h=0; h<it.length; h++){	
	        alll = document.createElement("input");
	        alll.setAttribute("type", "hidden");
       alll.setAttribute("name", "rentprop_typee[]");
        alll.setAttribute("value", it[h].value);
        adform.appendChild(alll) ;
    }
	var posted;
	 var ci = document.getElementById("sel_city");
	    for(var s=0; s<ci.length; s++){	
	        posted = document.createElement("input");
	        posted.setAttribute("type", "hidden");
       posted.setAttribute("name", "sele_city[]");
        posted.setAttribute("value", ci[s].value);
        adform.appendChild(posted) ;
    }

	if ( ( document.property_searc.prop[0].checked == false )
    && ( document.property_searc.prop[1].checked == false ) )
    {
        alert ( "Please choose your Property: Buy or Rent" );
		//document.property_searc.prop.focus();
        return false;
    }
	 if(document.getElementById('buydiv').style.display == "block")
    {
	
	if (!document.property_searc.buy_type.length) {
		
    alert("Please select Property Type.");
    document.property_searc.buy_type.focus();
    return false;
    } 
	}
	else if(document.getElementById('rentdiv').style.display == "block")
    {
		
	if ( !document.property_searc.rent_type.length)
    {
        alert ( "Please select Property Type.");
		document.property_searc.rent_type.focus();
        return false;
    }
    }
	
	if ( document.property_searc.country.selectedIndex == 0 )
    {
        alert ( "Please select Country." );
		document.property_searc.country.focus();
        return false;
    }
   if ( document.property_searc.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.property_searc.states.focus();
        return false;
    }
	if ( !document.property_searc.sel_city.length)
    {
        alert ( "Please select City.");
		document.property_searc.sel_city.focus();
        return false;
    }
   
	if(document.getElementById('bedfield').style.display == "block")
    {
	if ( document.property_searc.bhk.selectedIndex == 0 )
    {
        alert ( "Please select Bed Room." );
		document.property_searc.bhk.focus();
        return false;
    }
	}

	if ( document.property_searc.mini.selectedIndex == 0 )
    {
        alert ( "Please select Minimum Bubget." );
		document.property_searc.mini.focus();
        return false;
    }
	if ( document.property_searc.maxi.selectedIndex == 0 )
    {
        alert ( "Please select Maximum Bubget." );
		document.property_searc.maxi.focus();
        return false;
    }
	
  if(document.getElementById('areatypediv').style.display == "block")
    {
	if ( document.property_searc.fromVal.value == 0 )
    {
        alert ( "Please Specify Covered Area." );
		document.property_searc.fromVal.focus();
        return false;
    }
	}
	
	if(document.getElementById('plotareadiv').style.display == "block")
    {
	
	if ( document.property_searc.fromVall.value == 0 )
    {
        alert ( "Please specify Plot/Land Area." );
		document.property_searc.fromVall.focus();
        return false;
    }
	

	}
	
}

function savespropmod(){
if ( document.saved_search.mini.selectedIndex == 0 )
    {
        alert ( "Please select Minimum Bubget." );
		document.saved_search.mini.focus();
        return false;
    }
	if ( document.saved_search.maxi.selectedIndex == 0 )
    {
        alert ( "Please select Maximum Bubget." );
		document.saved_search.maxi.focus();
        return false;
    }	
	
if ( document.saved_search.fromVal.value == 0 )
    {
        alert ( "Please Specify Covered Area." );
		document.saved_search.fromVal.focus();
        return false;
    }
	
	if ( document.saved_search.fromVall.value == 0 )
    {
        alert ( "Please specify Plot/Land Area." );
		document.saved_search.fromVall.focus();
        return false;
    }	
}

function contact(){

if (document.contactus.txtname.value == 0)
{
alert("Name Should Not Empty");
document.contactus.txtname.focus();
return false;
}
if (document.contactus.txtemail.value == 0)
{
alert("Email Should Not Empty");
document.contactus.txtemail.focus();
return false;
}
if (document.contactus.txtphone.value == 0)
{
alert("Please Enter Numbers Only");
document.contactus.txtphone.focus();
return false;
}
if (document.contactus.txtsubject.value == 0)
{
alert("Subject Should Not Empty");
document.contactus.txtsubject.focus();
return false;
}
if (document.contactus.txtmsg.value == 0)
{
alert("Message Should Not Empty");
document.contactus.txtmsg.focus();
return false;
}
return true;
}

function swapElement(fromList,toList){
    var selectOptions = document.getElementById(fromList);
	//alert(selectOptions);
    for (var i = 0; i < selectOptions.length; i++) {
		
        var opt = selectOptions[i];
		
        if (opt.selected) {
            document.getElementById(fromList).removeChild(opt);
            document.getElementById(toList).appendChild(opt);
            i--;
        }
		
    }
}

function requiredivsell(){	
	//alert("hi");
	if(document.property_searc.buyprop_type.value=="Residential House"){		
	 document.getElementById('bedfield').style.display="block";	
	  document.getElementById('coverareadiv').style.display="block";	
	 document.getElementById('plotareadiv').style.display="block";
	
	}
	
	if(document.property_searc.buyprop_type.value=="Residential Plot"){	
	 document.getElementById('bedfield').style.display="none";	 
	 document.getElementById('plotareadiv').style.display="block";
	 document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_searc.buyprop_type.value=="Multistorey Apartment"){
		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 document.getElementById('coverareadiv').style.display="block";
	}
	
	if(document.property_searc.buyprop_type.value=="Builder Floor Apartment"){
	document.getElementById('bedfield').style.display="block";	
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="block";
	}
	if(document.property_searc.buyprop_type.value=="Independent Villa"){
	 document.getElementById('bedfield').style.display="block";	
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="block";
	}
	if(document.property_searc.buyprop_type.value=="Commercial Land"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.buyprop_type.value=="Commercial Office Space"){
	  document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.buyprop_type.value=="Commercial Shop"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.buyprop_type.value=="Commercial Showroom"){
	 document.getElementById('bedfield').style.display="none";	 
	 document.getElementById('coverareadiv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  
	}
	if(document.property_searc.buyprop_type.value=="Kiosk"){
	document.getElementById('bedfield').style.display="none";	
	document.getElementById('coverareadiv').style.display="block";
	document.getElementById('plotareadiv').style.display="none";	
	}
	if(document.property_searc.buyprop_type.value=="Hotel"){
	 document.getElementById('bedfield').style.display="block";	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	
	}
	if(document.property_searc.buyprop_type.value=="Hotel Sites"){
	 document.getElementById('bedfield').style.display="none";
	 
	 document.getElementById('coverareadiv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  
	}
	
	if(document.property_searc.buyprop_type.value=="Guest House"){
	 document.getElementById('bedfield').style.display="block";
	 
	  document.getElementById('coverareadiv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.buyprop_type.value=="Businees Centre"){
	 document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	
	}
	if(document.property_searc.buyprop_type.value=="Warehouse/Godown"){
	 document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="none";
	
	}
	if(document.property_searc.buyprop_type.value=="Industrial Land"){
	document.getElementById('bedfield').style.display="none";
	
	document.getElementById('coverareadiv').style.display="none";
    document.getElementById('plotareadiv').style.display="block";
    
	}
	if(document.property_searc.buyprop_type.value=="Industrial Building"){
	 document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
    
	}
	if(document.property_searc.buyprop_type.value=="Industrial Shed"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     
	}
	if(document.property_searc.buyprop_type.value=="Agricultural Land"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="none";
     document.getElementById('plotareadiv').style.display="block";
     

	}
	if(document.property_searc.buyprop_type.value=="Farm House"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     
	}

}


function requiredivrent(){		
    if(document.property_searc.rentprop_type.value=="Paying Guest"){		
	 document.getElementById('bedfield').style.display="block";		 
	 document.getElementById('plotareadiv').style.display="none";
	 document.getElementById('coverareadiv').style.display="none";	
	}
	if(document.property_searc.rentprop_type.value=="Hostel"){		
	 document.getElementById('bedfield').style.display="block";		 
	 document.getElementById('plotareadiv').style.display="none";
	 document.getElementById('coverareadiv').style.display="none";	
	}
	if(document.property_searc.rentprop_type.value=="Residential House"){		
	 document.getElementById('bedfield').style.display="block";		 
	 document.getElementById('plotareadiv').style.display="block";
	 document.getElementById('coverareadiv').style.display="block";	
	}
	
	if(document.property_searc.rentprop_type.value=="Residential Plot"){	
	 document.getElementById('bedfield').style.display="none";	 
	 document.getElementById('plotareadiv').style.display="block";
	 document.getElementById('coverareadiv').style.display="none";
	}
	
	if(document.property_searc.rentprop_type.value=="Multistorey Apartment"){
		
	 document.getElementById('bedfield').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 document.getElementById('coverareadiv').style.display="block";
	}
	
	if(document.property_searc.rentprop_type.value=="Builder Floor Apartment"){
	document.getElementById('bedfield').style.display="block";	
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="block";
	}
	if(document.property_searc.rentprop_type.value=="Independent Villa"){
	 document.getElementById('bedfield').style.display="block";	
	  document.getElementById('plotareadiv').style.display="block";
	  document.getElementById('coverareadiv').style.display="block";
	}
	if(document.property_searc.rentprop_type.value=="Commercial Land"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.rentprop_type.value=="Commercial Office Space"){
	  document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.rentprop_type.value=="Commercial Shop"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.rentprop_type.value=="Commercial Showroom"){
	 document.getElementById('bedfield').style.display="none";	 
	 document.getElementById('coverareadiv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	  
	}
	if(document.property_searc.rentprop_type.value=="Kiosk"){
	document.getElementById('bedfield').style.display="none";	
	document.getElementById('coverareadiv').style.display="block";
	document.getElementById('plotareadiv').style.display="none";	
	}
	if(document.property_searc.rentprop_type.value=="Hotel"){
	 document.getElementById('bedfield').style.display="block";	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="block";
	
	}
	if(document.property_searc.rentprop_type.value=="Hotel Sites"){
	 document.getElementById('bedfield').style.display="none";
	 
	 document.getElementById('coverareadiv').style.display="none";
	  document.getElementById('plotareadiv').style.display="block";
	  
	}
	
	if(document.property_searc.rentprop_type.value=="Guest House"){
	 document.getElementById('bedfield').style.display="block";
	 
	  document.getElementById('coverareadiv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	 
	}
	if(document.property_searc.rentprop_type.value=="Businees Centre"){
	 document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
	  document.getElementById('plotareadiv').style.display="block";
	
	}
	if(document.property_searc.rentprop_type.value=="Warehouse/Godown"){
	 document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
	 document.getElementById('plotareadiv').style.display="none";
	
	}
	if(document.property_searc.rentprop_type.value=="Industrial Land"){
	document.getElementById('bedfield').style.display="none";
	
	document.getElementById('coverareadiv').style.display="none";
    document.getElementById('plotareadiv').style.display="block";
    
	}
	if(document.property_searc.rentprop_type.value=="Industrial Building"){
	 document.getElementById('bedfield').style.display="none";
	
	 document.getElementById('coverareadiv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
    
	}
	if(document.property_searc.rentprop_type.value=="Industrial Shed"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     
	}
	if(document.property_searc.rentprop_type.value=="Agricultural Land"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="none";
     document.getElementById('plotareadiv').style.display="block";
     

	}
	if(document.property_searc.rentprop_type.value=="Farm House"){
	 document.getElementById('bedfield').style.display="none";	
	 document.getElementById('coverareadiv').style.display="block";
     document.getElementById('plotareadiv').style.display="block";
     
	}
}


function forumvali(){
	
if(document.forum.a_name.value == 0 )
	{
		alert ( "Please Enter Your Name." );
		document.forum.a_name.focus();
		return false;
	}	
	
if(document.forum.a_answer.value == 0 )
	{
		alert ( "Please Enter Your Answer." );
		document.forum.a_answer.focus();
		return false;
	}		



}
function forumvalid(){

	
if(document.forum.topic.value == 0 )
	{
		alert ( "Please Enter Your Topic." );
		document.forum.topic.focus();
		return false;
	}
if(document.forum.detail.value == 0 )
	{
		alert ( "Please Enter Your Forum detail." );
		document.forum.detail.focus();
		return false;
	}	
if(document.forum.name.value == 0 )
	{
		alert ( "Please Enter Your Name." );
		document.forum.name.focus();
		return false;
	}		
	
}
function testihome(){
	
if(document.testfrm.name.value == 0 )
	{
		alert ( "Please Enter Your Name." );
		document.testfrm.name.focus();
		return false;
	}	
if(document.testfrm.designation.value == 0 )
	{
		alert ( "Please Enter Your Designation." );
		document.testfrm.designation.focus();
		return false;
	}
if(document.testfrm.name.value == 0 )
{
		alert ( "Please Enter Your Name." );
		document.testfrm.name.focus();
		return false;
}
}
function reg3_validation(){

/*	
if ( ( document.memform.txt_nation[0].checked == false )
    && ( document.memform.txt_nation[1].checked == false ) )
    {
        alert ( "Please choose your nationality" );
		
        return false;
    }
if ( document.memform.member_type.selectedIndex == 0 )
    {
        alert ( "Please select Member Type." );
		document.memform.member_type.focus();
        return false;
    }	*/
	
if(document.memform.txtfirstname.value == 0 )
{
		alert ("Please Enter Your First Name");
		document.memform.txtfirstname.focus();
		return false;
}	

if(document.memform.txtlastname.value == 0 )
{
		alert ("Please Enter Your Last Name");
		document.memform.txtlastname.focus();
		return false;
}

/*if(document.memform.txtpwd.value == 0 )
{
		alert ( "Please Enter Your Password." );
		document.memform.txtpwd.focus();
		return false;
}*/
if ((document.memform.txt_gender[0].checked == false)
    && (document.memform.txt_gender[1].checked == false))
    {
        alert ( "Please Specify Gender" );
		return false;
    }

if(document.memform.dob.value == 0)
{
		alert ("Please Enter Your Date of Birth");
		document.memform.dob.focus();
		return false;
}
if((document.memform.retiredate.value=="") &&(document.memform.retireage.value == 0 ))
{
		alert ( "Please Enter Your Retirement Date or Age" );
		document.memform.retireage.focus();
		return false;
}
	  	 
	if ( document.memform.country.selectedIndex == 0 )
    {
        alert ( "Please select Country" );
		document.memform.country.focus();
        return false;
    }
  /* if ( document.memform.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.memform.states.focus();
        return false;
    }
	if ( document.memform.city.selectedIndex == 0)
    {
        alert ( "Please select City." );
		document.memform.city.focus();
        return false;
    }*/
	if ( document.memform.locality.value == 0 )
    {
        alert ( "Please select Locality." );
		document.memform.locality.focus();
        return false;
    }
	if ( document.memform.mobile.value == 0 )
    {
        alert ( "Please enter your mobile number." );
		document.memform.mobile.focus();
        return false;
    }
	if ( ( document.memform.txt_newltr[0].checked == false )
    && ( document.memform.txt_newltr[1].checked == false ) )
    {
        alert ( "Please specify News Letter Subscription." );		
        return false;
    }

}
function propreg2_validation(){
	 if ((document.memform.txt_nation[0].checked == false)
		&&(document.memform.txt_nation[1].checked == false))
	 	{
			 alert("Please Select Nationality");			 
			 return false;
			 }	
	 if (document.memform.member_type.value == 0) 
	 	{
			 alert("Type of member should not be empty");
			 document.memform.member_type.focus();
			 return false;
			 }
	if(document.memform.txtfirstname.value == 0 )
    {
		alert ( "Please Enter Your First Name" );
		document.memform.txtfirstname.focus();
		return false;
	}	

if(document.memform.txtlastname.value == 0 )
{
		alert ( "Please Enter Your Last Name" );
		document.memform.txtlastname.focus();
		return false;
}
if (document.memform.txtpwd.value == 0) 
	 	{
			 alert("Password should not empty");
			 document.memform.txtpwd.focus();
			 return false;
			 }	
if ((document.memform.txt_gender[0].checked == false)
    && (document.memform.txt_gender[1].checked == false))
    {
        alert ("Please Specify Gender" );
		return false;
    }
if(document.memform.dob.value == 0)
{
		alert ("Please Enter Your Date of Birth");
		document.memform.dob.focus();
		return false;
}
if((document.memform.retiredate.value=="")&&(document.memform.retireage.value == 0))
{
		alert ( "Please Enter Your Retirement Date or Age." );
		document.memform.retireage.focus();
		return false;
}
	  	 
	if (document.memform.country.selectedIndex == 0)
    {
        alert ("Please select Country");
		document.memform.country.focus();
        return false;
    }
 /*  if ( document.memform.states.selectedIndex == 0 )
    {
        alert ( "Please select State." );
		document.memform.states.focus();
        return false;
    }
	if ( document.memform.city.selectedIndex == 0)
    {
        alert ( "Please select City." );
		document.memform.city.focus();
        return false;
    }*/
	if ( document.memform.locality.value == 0 )
    {
        alert ( "Please select Locality." );
		document.memform.locality.focus();
        return false;
    }
	if ( document.memform.mobile.value == 0 )
    {
        alert ( "Please enter your mobile number." );
		document.memform.mobile.focus();
        return false;
	}
	if(isNaN(memform.mobile.value)){
		  alert("Please Enter Numbers only");
		  memform.mobile.focus();
		  return false;
	}
	if ( ( document.memform.txt_newltr[0].checked == false )
    && ( document.memform.txt_newltr[1].checked == false ) )
    {
        alert ( "Please specify News Letter Subscription." );		
        return false;
    }


}
function teaserval(){
	
	
	if( document.teaform.loanamt.value == 0 )
	{ 
	   alert ("Please Enter Loan Amount");
	   document.teaform.loanamt.focus();
       return false;
	}
	if( document.teaform.txttenure.value == 0 )
	{ 
	 
	   alert ("Please Enter Tenure Month");
	   document.teaform.txttenure.focus();
       return false;
	}
	if ( document.teaform.txttenure.value > 300)
	{
	  alert ("Tenure should not be more then 300");
	   document.teaform.txttenure.focus();
       return false;
		
	}
	if ( document.teaform.bank_compare.selectedIndex == 0 )
    {
        alert ( "Please select Bank." );
		document.teaform.bank_compare.focus();
        return false;
    }
	
}

function emicalc_valid(){
	
if( document.emiform.loanamt.value == 0 )
	{ 
	   alert ("Please Enter Loan Amount");
	   document.emiform.loanamt.focus();
       return false;
	}	
if( document.emiform.txttenure.value == 0 )
	{ 
	 
	   alert ("Please Enter Tenure");
	   document.emiform.txttenure.focus();
       return false;
	}
if ( document.emiform.txttenure.value > 300)
	{
	  alert ("Tenure should not be more then 300");
	   document.emiform.txttenure.focus();
       return false;
		
}	
if( document.emiform.interestrate.value == 0 )
	{ 
	 
	   alert ("Please Enter Interest Rate");
	   document.emiform.interestrate.focus();
       return false;
	}
    
if ( document.emiform.startmonth.selectedIndex == 0 )
    {
        alert ( "Please select Installment month." );
		document.emiform.startmonth.focus();
        return false;
    }
if ( document.emiform.startyear.selectedIndex == 0 )
    {
        alert ( "Please select Installment year." );
		document.emiform.startyear.focus();
        return false;
    }	
}

function emiform_validation()
{
	if( document.emiform.loanamt.value == "")
	{ 
	   alert ("Please Enter Loan Amount");
	   document.emiform.loanamt.focus();
       return false;
	}	
if( document.emiform.txttenure.value == "")
	{ 
	 
	   alert ("Please Enter Tenure");
	   document.emiform.txttenure.focus();
       return false;
	}
if ( document.emiform.txttenure.value > 300)
	{
	  alert ("Tenure should not be more then 300");
	   document.emiform.txttenure.focus();
       return false;
		
}	
if( document.emiform.interestrate.value == "")
	{ 
	 
	   alert ("Please Enter Interest Rate");
	   document.emiform.interestrate.focus();
       return false;
	}
    
if ( document.emiform.startmonth.selectedIndex == "" )
    {
        alert ( "Please select Installment month." );
		document.emiform.startmonth.focus();
        return false;
    }
if ( document.emiform.startyear.selectedIndex == "" )
    {
        alert ( "Please select Installment year." );
		document.emiform.startyear.focus();
        return false;
    }	
}

function compar_valid(){
	
if( document.compform.amount.value == 0 )
	{ 
	   alert ("Please Enter Loan Amount");
	   document.compform.amount.focus();
       return false;
	}	
if( document.compform.tenure.value == 0 )
	{ 
	 
	   alert ("Please Enter Tenure");
	   document.compform.tenure.focus();
       return false;
	}
if ( document.compform.tenure.value > 300)
	{
	  alert ("Tenure should not be more then 300");
	   document.compform.tenure.focus();
       return false;
		
}
if ( document.compform.bank_name.selectedIndex == 0 )
    {
        alert ( "Please select Bank1." );
		document.compform.bank_name.focus();
        return false;
    }	
if ( document.compform.bank_compare.selectedIndex == 0 )
    {
        alert ( "Please select Bank2." );
		document.compform.bank_compare.focus();
        return false;
    }	

}

function pree_valid(){
	
	if( document.preemi.totalcost.value == 0 )
	{ 
	 
	   alert ("Please Enter cost");
	   document.preemi.totalcost.focus();
       return false;
	}
	if( document.preemi.marginpersent.value == 0 )
	{ 
	 
	   alert ("Please enter percentage of margin");
	   document.preemi.marginpersent.focus();
       return false;
	}
	if( document.preemi.rateofintrest.value == 0 )
	{ 
	 
	   alert ("Please enter rate of interest");
	   document.preemi.rateofintrest.focus();
       return false;
	}
	if( document.preemi.date.value == 0 )
	{ 
	 
	   alert ("Please enter starting date");
	   document.preemi.date.focus();
       return false;
	}
	
}
function isNumberKey(evt)
      {
         var charCode = (evt.which) ? evt.which : event.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
            return false;

         return true;
      }




<!------------google analytics------------------->
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19903646-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

