function valid_resident()
{		
			/*if(!document.addproperty_residential.agreement.checked)
			{
			alert('Please agree with terms and conditions');
			document.addproperty_residential.agreement.focus();
			return false;
			}*/
		
	
			if((document.addproperty_residential.title.value).length < 1)
			{
			alert('Please Enter Title');
			document.addproperty_residential.title.focus();
			return false;
			}
		
		if((document.addproperty_residential.txtarea.value).length < 1)
		{
		alert('Please Enter Area');
		document.addproperty_residential.txtarea.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_residential.txtarea.value))
		{
		alert('Please Enter Area as Number');
		document.addproperty_residential.txtarea.value="";
		document.addproperty_residential.txtarea.focus();
		return false;
		}
		
		if((document.addproperty_residential.drpbedroom.value)==0)
		{
		alert('Please Select Bedrooms');
		document.addproperty_residential.drpbedroom.focus();
		return false;
		}
		if((document.addproperty_residential.drpbathroom.value)==0)
		{
		alert('Please Select Bathrooms');
		document.addproperty_residential.drpbathroom.focus();
		return false;
		}
		
		if((document.addproperty_residential.drpageofprop.value)==0)
		{
		alert('Please Select Age of Property');
		document.addproperty_residential.drpageofprop.focus();
		return false;
		}
		
		if((document.addproperty_residential.drp_tot_no_floors.value)==0)
		{
		alert('Please Select No of floors');
		document.addproperty_residential.drp_tot_no_floors.focus();
		return false;
		}
		if(document.addproperty_residential.category.value==1)
		{
			if((document.addproperty_residential.drpfloors.value)==0)
			{
			alert('Please Select Property on floor');
			document.addproperty_residential.drpfloors.focus();
			return false;
			}
		}
		
		if((document.addproperty_residential.no_of_car_parking.value).length < 1)
		{
		alert('Please Enter No of Car Parking');
		document.addproperty_residential.no_of_car_parking.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_residential.no_of_car_parking.value))
			{
			alert('Please Enter No of Car Parking as Number');
			document.addproperty_residential.no_of_car_parking.value="";
			document.addproperty_residential.no_of_car_parking.focus();
			return false;
			}
		
		if((document.addproperty_residential.currency.value)== 0 || (document.addproperty_residential.price.value).length < 1)
		{
		alert('Please Select or Enter value for rent per month');
		document.addproperty_residential.currency.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_residential.price.value))
			{
			alert('Please Enter Rent per month as Number');
			document.addproperty_residential.price.value="";
			document.addproperty_residential.price.focus();
			return false;
			}
			
		//contact form
		if((document.addproperty_residential.contactname.value).length < 1)
		{
		alert('Please Enter Contact Name');
		document.addproperty_residential.contactname.focus();
		return false;
		}
		
		if((document.addproperty_residential.contact_country_code.value).length < 1)
		{
		alert('Please Enter Country Code');
		document.addproperty_residential.contact_country_code.focus();
		return false;
		}

		if((document.addproperty_residential.contact_country_code.value)==0)
		{
		alert('Country Code Should not 0');
		document.addproperty_residential.contact_country_code.focus();
		document.addproperty_residential.contact_country_code.value="";
		return false;
		}
		
		if((document.addproperty_residential.contact_landline.value).length < 1 && (document.addproperty_residential.contact_mobie.value).length < 1)
		{
		alert('Atlest one Phone Number is required');
		document.addproperty_residential.contact_landline.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_residential.contact_landline.value))
			{
			alert('Please Enter Land-line Number as Number');
			document.addproperty_residential.contact_landline.value="";
			document.addproperty_residential.contact_landline.focus();
			return false;
			}


	if((document.addproperty_residential.contact_landline.value)!="")
		{
	if((document.addproperty_residential.contact_landline.value)==0)
		{
		alert('Land Line Number Should not 0');
		document.addproperty_residential.contact_landline.focus();
		document.addproperty_residential.contact_landline.value="";
		return false;
		}
}
		
		if(!IsNumeric(document.addproperty_residential.contact_mobie.value))
			{
			alert('Please Enter Mobile Number as Number');
			document.addproperty_residential.contact_mobie.value="";
			document.addproperty_residential.contact_mobie.focus();
			return false;
			}

		var mobile =document.addproperty_residential.contact_mobie.value;
		var result=mobile.charAt(0);
		if((document.addproperty_residential.contact_mobie.value).length>0)
		{
		if(result==0)
		{
		alert('Plese Enter Digit 1-9 as a first digit of Mobile Number');
		document.addproperty_residential.contact_mobie.value="";
		return false;
		}
		}
		
			
			
			if(echeck(document.addproperty_residential.textemail.value)==false)
			{
			document.addproperty_residential.textemail.value="";
			document.addproperty_residential.textemail.focus();
			return false;
			}
			
			document.addproperty_residential.submit();
			
}
function more_resi()
{
		/*if(!document.residential_resi.agree_feature.checked)
		{
			alert('Please agree with terms and conditions');
			document.residential_resi.agree_feature.focus();
			return false;
		}*/
		
		if((document.residential_resi.prop_address.value).length < 1)
			{
			alert('Please Enter Property Address');
			document.residential_resi.prop_address.focus();
			return false;
			}
		if((document.residential_resi.describe_prop.value).length < 1)
			{
			alert('Please Describe Your Property');
			document.residential_resi.describe_prop.focus();
			return false;
			}
	document.residential_resi.submit();
	}
	
	
///////////////////End of residence and vila 

function validation_showrooms()
{
    
	/*if(!document.addproperty_showroom.agreement.checked)
		{
		alert('Please agree with terms and conditions');
		document.addproperty_showroom.agreement.focus();
		return false;
		}*/


		if((document.addproperty_showroom.title.value).length < 1)
		{
			alert('Please Enter Title');
			document.addproperty_showroom.title.focus();
			return false;
		}
		
		
		if((document.addproperty_showroom.area.value).length < 1)
		{
		alert('Please Enter Area');
		document.addproperty_showroom.area.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_showroom.area.value))
		{
		alert('Please Enter Area as Number');
		document.addproperty_showroom.area.value="";
		document.addproperty_showroom.area.focus();
		return false;
		}
		
		if((document.addproperty_showroom.rest_rooms.value) == -1)
		{
		alert('Please Select Restrooms');
		document.addproperty_showroom.rest_rooms.focus();
		return false;
		}
		if((document.addproperty_showroom.age_of_prop.value)==0)
		{
		alert('Please Select Age of Property');
		document.addproperty_showroom.age_of_prop.focus();
		return false;
		}
		
		if((document.addproperty_showroom.tot_no_of_floors.value)==0)
		{
		alert('Please Select Property on floor');
		document.addproperty_showroom.tot_no_of_floors.focus();
		return false;
		}
		
		if((document.addproperty_showroom.price.value).length < 1)
		{
		alert('Please Enter Price');
		document.addproperty_showroom.price.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_showroom.price.value))
		{
		alert('Please Enter Price as Number');
		document.addproperty_showroom.price.value="";
		document.addproperty_showroom.price.focus();
		return false;
		}
		
		if((document.addproperty_showroom.contactname.value).length < 1)
		{
		alert('Please Enter Contact Name');
		document.addproperty_showroom.contactname.focus();
		return false;
		}
		
		
		if((document.addproperty_showroom.contact_country_code.value).length < 1)
		{
		alert('Please Enter Country Code Name');
		document.addproperty_showroom.contact_country_code.focus();
		return false;
		}
		
		if((document.addproperty_showroom.contact_country_code.value)==0)
		{
		alert('Country Code Should not 0');
		document.addproperty_showroom.contact_country_code.focus();
		document.addproperty_showroom.contact_country_code.value="";
		return false;
		}
		
    if((document.addproperty_showroom.contact_landline.value).length < 1 && (document.addproperty_showroom.contact_mobie.value).length < 1)
		{
		alert('Atlest one Phone Number is required');
		document.addproperty_showroom.contact_landline.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_showroom.contact_landline.value))
			{
			alert('Please Enter Land-line Number as Number');
			document.addproperty_showroom.contact_landline.value="";
			document.addproperty_showroom.contact_landline.focus();
			return false;
			}

		if((document.addproperty_showroom.contact_landline.value)!="")
		{
		if((document.addproperty_showroom.contact_landline.value)==0)
		{
		alert('Land Line Number Should not 0');
		document.addproperty_showroom.contact_landline.focus();
		document.addproperty_showroom.contact_landline.value="";
		return false;
		}
	}
		
		if(!IsNumeric(document.addproperty_showroom.contact_mobie.value))
			{
			alert('Please Enter Mobile Number as Number');
			document.addproperty_showroom.contact_mobie.value="";
			document.addproperty_showroom.contact_mobie.focus();
			return false;
			}
		
	
		var mobile =document.addproperty_showroom.contact_mobie.value;
		var result=mobile.charAt(0);


		if((document.addproperty_showroom.contact_mobie.value).length>0)
		{
		if(result==0)
		{
		alert('Plese Enter Digit 1-9 as a first digit of Mobile Number');
		document.addproperty_showroom.contact_mobie.value="";
		return false;
		}
		}


		if(echeck(document.addproperty_showroom.textemail.value)==false)

			{
			document.addproperty_showroom.textemail.value="";
			document.addproperty_showroom.textemail.focus();
			return false;
			}
		document.addproperty_showroom.submit();
//contact

}

function more_showroom()
{
		/*if(!document.rent_show_room.agree_feature.checked)
		{
			alert('Please agree with terms and conditions');
			document.rent_show_room.agree_feature.focus();
			return false;
		}*/
		
		if((document.rent_show_room.prop_address.value).length < 1)
			{
			alert('Please Enter Property Address');
			document.rent_show_room.prop_address.focus();
			return false;
			}
		if((document.rent_show_room.describe_prop.value).length < 1)
			{
			alert('Please Describe Your Property');
			document.rent_show_room.describe_prop.focus();
			return false;
			}
	
	document.rent_show_room.submit();
	
	}




		
		


///office

function validation_office()
{
	

	/*if(!document.addproperty_office_rent.agreement.checked)
			{
			alert('Please agree with terms and conditions');
			document.addproperty_office_rent.agreement.focus();
			return false;
			}*/

	if((document.addproperty_office_rent.title.value).length < 1)
		{
		alert('Please Enter Property Title');
		document.addproperty_office_rent.title.focus();
		return false;
		}
		
		
		if((document.addproperty_office_rent.txtarea.value).length < 1)
		{
		alert('Please Enter Area');
		document.addproperty_office_rent.txtarea.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_office_rent .txtarea.value))
		{
		alert('Please Enter Area as Number');
		document.addproperty_office_rent.txtarea.value="";
		document.addproperty_office_rent.txtarea.focus();
		return false;
		}
		
		if((document.addproperty_office_rent.restrooms.value) == -1)
		{
		alert('Please Select Restrooms');
		document.addproperty_office_rent.restrooms.focus();
		return false;
		}
		if((document.addproperty_office_rent.drpageofprop.value)==0)
		{
		alert('Please Select Age of Property');
		document.addproperty_office_rent.drpageofprop.focus();
		return false;
		}
		
		if((document.addproperty_office_rent.drp_tot_no_floors.value)==0)
		{
		alert('Please Select total no of floor');
		document.addproperty_office_rent.drp_tot_no_floors.focus();
		return false;
		}
		
		if((document.addproperty_office_rent.drpfloors.value)==0)
		{
		alert('Please Select Property on floor');
		document.addproperty_office_rent.drpfloors.focus();
		return false;
		}
		
		
		if((document.addproperty_office_rent.no_of_car_parking.value).length < 1)
		{
		alert('Please Enter No. of Car Parking');
		document.addproperty_office_rent.no_of_car_parking.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_office_rent.no_of_car_parking.value))
			{
			alert('Please Enter no of car as Number');
			document.addproperty_office_rent.no_of_car_parking.value="";
			document.addproperty_office_rent.no_of_car_parking.focus();
			return false;
			}
		
		
		
		if((document.addproperty_office_rent.price.value).length < 1)
		{
		alert('Please Enter Price');
		document.addproperty_office_rent.price.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_office_rent.price.value))
		{
		alert('Please Enter Price as Number');
		document.addproperty_office_rent.price.value="";
		document.addproperty_office_rent.price.focus();
		return false;
		}
		
		if((document.addproperty_office_rent .contactname.value).length < 1)
		{
		alert('Please Enter Contact Name');
		document.addproperty_office_rent .contactname.focus();
		return false;
		}
		
		if((document.addproperty_office_rent .contact_country_code.value).length < 1)
		{
		alert('Please Enter Country Code');
		document.addproperty_office_rent .contact_country_code.focus();
		return false;
		}

		if((document.addproperty_office_rent.contact_country_code.value)==0)
		{
		alert('Country Code Should not 0');
		document.addproperty_office_rent.contact_country_code.focus();
		document.addproperty_office_rent.contact_country_code.value="";
		return false;
		}

		if((document.addproperty_office_rent .contact_landline.value).length < 1 && (document.addproperty_office_rent .contact_mobie.value).length < 1)
		{
		alert('Atlest one Phone Number is required');
		document.addproperty_office_rent .contact_landline.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_office_rent.contact_landline.value))
			{
			alert('Please Enter Land-line Number as Number');
			document.addproperty_office_rent .contact_landline.value="";
			document.addproperty_office_rent .contact_landline.focus();
			return false;
			}
	   if((document.addproperty_office_rent.contact_landline.value)!="")
		{
		if((document.addproperty_office_rent.contact_landline.value)==0)
		{
		alert('Land Line Number Should not 0');
		document.addproperty_office_rent.contact_landline.focus();
		document.addproperty_office_rent.contact_landline.value="";
		return false;
		 }
		}
		
		if(!IsNumeric(document.addproperty_office_rent.contact_mobie.value))
			{
			alert('Please Enter Mobile Number as Number');
			document.addproperty_office_rent .contact_mobie.value="";
			document.addproperty_office_rent .contact_mobie.focus();
			return false;
			}
			
	
		var mobile_office =document.addproperty_office_rent.contact_mobie.value;
		var result_office=mobile_office.charAt(0);
		
		if((document.addproperty_office_rent.contact_mobie.value).length>0)
		{
			if(result_office==0)
			{
			document.addproperty_office_rent.contact_mobie.value="";
			alert('Plese Enter Digit 1-9 as a first digit of Mobile Number');
			return false;
			}
		}

		if(echeck(document.addproperty_office_rent .textemail.value)==false)
		{
		document.addproperty_office_rent .textemail.value="";
		document.addproperty_office_rent .textemail.focus();
		return false;
		}
		document.addproperty_office_rent.submit();
}

function more_rent_office()
{
	
	/*if(!document.office_feature_rent.agree_feature.checked)
		{
			alert('Please agree with terms and conditions');
			document.office_feature_rent.agree_feature.focus();
			return false;
		}*/
	
		if((document.office_feature_rent.no_of_lifts.value)==0)
		{
		alert('Please Select No of Lifts');
		document.office_feature_rent.no_of_lifts.focus();
		return false;
		}
		
		if((document.office_feature_rent.prop_address.value).length < 1)
			{
			alert('Please Enter Property Address');
			document.office_feature_rent.prop_address.focus();
			return false;
			}
		
		if((document.office_feature_rent.describe_prop.value).length < 1)
			{
			alert('Please Describe Your Property');
			document.office_feature_rent.describe_prop.focus();
			return false;
			}
			document.office_feature_rent.submit();
}



function validation_land()
{
	/*if(!document.addproperty_land.agree_feature.checked)
		{
			alert('Please agree with terms and conditions');
			document.addproperty_land.agree_feature.focus();
			return false;
		}*/
	if((document.addproperty_land.title.value).length < 1)
	{
		alert('Please Enter Property title');
		document.addproperty_land.title.focus();
		return false;
	}
	if((document.addproperty_land.area.value).length < 1)
	{
		alert('Please Enter area');
		document.addproperty_land.area.focus();
		return false;
	}
	
	if(!IsNumeric(document.addproperty_land.area.value))
			{
			alert('Please Enter Area as Number');
			document.addproperty_land.area.value="";
			document.addproperty_land.area.focus();
			return false;
			}
			
	if((document.addproperty_land.price.value).length < 1)
		{
		alert('Please Enter Price');
		document.addproperty_land.price.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_land.price.value))
		{
		alert('Please Enter Price as Number');
		document.addproperty_land.price.value="";
		document.addproperty_land.price.focus();
		return false;
		}
		
		
		if((document.addproperty_land.contactname.value).length < 1)
		{
		alert('Please Enter Contact Name');
		document.addproperty_land.contactname.focus();
		return false;
		}
		
		if((document.addproperty_land.contact_country_code.value).length < 1)
		{
		alert('Please Enter Country Code');
		document.addproperty_land.contact_country_code.focus();
		return false;
		}
	if((document.addproperty_land.contact_country_code.value)==0)
		{
		alert('Country Code Should not 0');
		document.addproperty_land.contact_country_code.focus();
		document.addproperty_land.contact_country_code.value="";
		return false;
		}
		
		if((document.addproperty_land.contact_landline.value).length < 1 && (document.addproperty_land.contact_mobie.value).length < 1)
		{
		alert('Atlest one Phone Number is required');
		document.addproperty_land.contact_landline.focus();
		return false;
		}
		
		if(!IsNumeric(document.addproperty_land.contact_landline.value))
			{
			alert('Please Enter Land-line Number as Number');
			document.addproperty_land.contact_landline.value="";
			document.addproperty_land.contact_landline.focus();
			return false;
			}
		if((document.addproperty_land.contact_landline.value)!="")
		{
		if((document.addproperty_land.contact_landline.value)==0)
		{
		alert('Land Line Number Should not 0');
		document.addproperty_land.contact_landline.focus();
		document.addproperty_land.contact_landline.value="";
		return false;
		}
	}
		
		if(!IsNumeric(document.addproperty_land.contact_mobie.value))
			{
			alert('Please Enter Mobile Number as Number');
			document.addproperty_land.contact_mobie.value="";
			document.addproperty_land.contact_mobie.focus();
			return false;
			}
			

		
		var mobile_land=document.addproperty_land.contact_mobie.value;
		var result_land=mobile_land.charAt(0);
		if((document.addproperty_land.contact_mobie.value).length >0)
		{
			if(result_land==0)
			{
			alert('Plese Enter Digit 1-9 as a first digit of Mobile Number');
			document.addproperty_land.contact_mobie.value="";
			return false;
			}
		}


			if(echeck(document.addproperty_land.textemail.value)==false)
			{
			document.addproperty_land.textemail.value="";
			document.addproperty_land.textemail.focus();
			return false;
			}
			
		if((document.addproperty_land.prop_address.value).length < 1)
			{
			alert('Please Enter Property Address');
			document.addproperty_land.prop_address.focus();
			return false;
			}
		if((document.addproperty_land.describe_prop.value).length < 1)
			{
			alert('Please Describe Your Property');
			document.addproperty_land.describe_prop.focus();
			return false;
			}
		
	document.addproperty_land.submit();
}
	
	//////////////////////////////////////////////////////////////////////
	
	

	
	
	