	function trimAll(sString) 
	{
		while (sString.substring(0,1) == ' ')
		{
		sString = sString.substring(1, sString.length);
		}
		while (sString.substring(sString.length-1, sString.length) == ' ')
		{
		sString = sString.substring(0,sString.length-1);
		}
		return sString;
	}
	function doClick(buttonName,e)
		{
			var key;
			if(window.event)
              key = window.event.keyCode;     //IE
			else
              key = e.which;     //firefox
				if (key == 13)
				{
					//Get the button the user wants to have clicked
					var btn = document.getElementById(buttonName);
					if (btn != null)
					{ //If we find the button click it
						btn.click();
						event.keyCode = 0
					}
				}
		}
		
function validateRegisterPage()
{	
	FirstName=trimAll(form1.txtFirstName.value)
	if(FirstName=="")
	{
	alert("Please enter your First Name")
	form1.txtFirstName.focus()
	return (false)
	}
	LastName=trimAll(form1.txtLastName.value)
	if (LastName=="")
	{
	alert("Please enter your Last Name")
	form1.txtLastName.focus()
	return (false)
	}
	UserID=trimAll(form1.txtUserID.value)
	if (UserID=="")
	{
	alert("Please enter User ID")
	form1.txtUserID.focus()
	return (false)
	}
	password=trimAll(form1.txtPassward.value)
	if (password=="")
	{
	alert("Please enter Password")
	form1.txtPassward.focus()
	return (false)
	}
	email=form1.txtEmail.value
	if (email=="")
	{
		alert("Please enter EmailID")
		form1.txtEmail.focus()
		return (false)
	}
	
	if ((email.indexOf("@")==-1)||(email.indexOf(".")==-1))
	{
	alert("Please enter a valid email-id")
	form1.txtEmail.focus()
	return (false)
	}
	
	if (email.indexOf(" ")>-1)
	{
	alert("Please enter  a valid value for the \"E-Mail\" field")
	form1.txtEmail.focus()
	return (false)
	}
		
	Country=trimAll(form1.txtCountry.value)
	if (Country=="")
	{
	alert("Please enter Country")
	form1.txtCountry.focus()
	return (false)
	}
	State=trimAll(form1.txtState.value)
	if (State=="")
	{
	alert("Please enter State")
	form1.txtState.focus()
	return (false)
	}
	
	City=trimAll(form1.txtCity.value)
	if (City=="")
	{
	alert("Please enter City")
	form1.txtCity.focus()
	return (false)
	}
	Mobile=trimAll(form1.txtMobile.value)
	if (Mobile=="")
	{
	alert("Please enter Mobile")
	form1.txtMobile.focus()
	return (false)
	}
	phone=trimAll(form1.txtPhone.value)
	if (phone=="")
	{
	alert("Please enter Phone No")
	form1.txtPhone.focus()
	return (false)
	}
}
function validateBusinessPage()
{	
	CompanyName=trimAll(form1.txtCompanyName.value)
	if(CompanyName=="")
	{
	alert("Please enter Company Name")
	form1.txtCompanyName.focus()
	return (false)
	}

	ContactPerson=trimAll(form1.txtContactPerson.value)
	if (ContactPerson=="")
	{
	alert("Please enter Contact Person")
	form1.txtContactPerson.focus()
	return (false)
	}
	
	Address=trimAll(form1.txtAddress.value)
	if (Address=="")
	{
	alert("Please enter Address")
	form1.txtAddress.focus()
	return (false)
	}
	
	PostCode=trimAll(form1.txtPostCode.value)
	if (PostCode=="")
	{
	alert("Please enter Postal Code")
	form1.txtPostCode.focus()
	return (false)
	}
	
	Phone=trimAll(form1.txtPhone.value)
	if (Phone=="")
	{
	alert("Please enter Phone")
	form1.txtPhone.focus()
	return (false)
	}
	
	email=form1.txtEmail.value
	if (email=="")
	{
		alert("Please enter EmailID")
		form1.txtEmail.focus()
		return (false)
	}
	
	if ((email.indexOf("@")==-1)||(email.indexOf(".")==-1))
	{
	alert("Please enter a valid email-id")
	form1.txtEmail.focus()
	return (false)
	}
	
	if (email.indexOf(" ")>-1)
	{
	alert("Please enter  a valid value for the \"E-Mail\" field")
	form1.txtEmail.focus()
	return (false)
	}
	
	BusinessType=trimAll(form1.txtBusinessType.value)
	if (BusinessType=="")
	{
	alert("Please enter Business Descrition")
	form1.txtBusinessType.focus()
	return (false)
	}
	
	YearsEstablished=trimAll(form1.txtYearsEstablished.value)
	if (YearsEstablished=="")
	{
	alert("Please How old business is")
	form1.txtYearsEstablished.focus()
	return (false)
	}
	
	AnnualTurnOver=trimAll(form1.txtAnnualTurnOver.value)
	if (AnnualTurnOver=="")
	{
	alert("Please enter Annual Turn Over of the company")
	form1.txtAnnualTurnOver.focus()
	return (false)
	}
	
	Price=trimAll(form1.txtPrice.value)
	if (Price=="")
	{
	alert("Please enter price demand")
	form1.txtPrice.focus()
	return (false)
	}
	
	Profit=trimAll(form1.txtProfit.value)
	if (Profit=="")
	{
	alert("Please enter profit of business")
	form1.txtProfit.focus()
	return (false)
	}
	
	FixValues=trimAll(form1.txtFixValues.value)
	if (FixValues=="")
	{
	alert("Please enter fixture value of business")
	form1.txtFixValues.focus()
	return (false)
	}
	
	StockValue=trimAll(form1.txtStockValue.value)
	if (StockValue=="")
	{
	alert("Please enter stock value of business")
	form1.txtStockValue.focus()
	return (false)
	}
}

function validateFreeListingPage()
{	
	companyname=trimAll(form1.txtCompanyName.value)
	if(companyname=="")
	{
	alert("Please enter companyname")
	form1.txtCompanyName.focus()
	return (false)
	}

	BusinessService=trimAll(form1.txtBusinessService.value)
	if (BusinessService=="")
	{
	alert("Please enter about your business")
	form1.txtBusinessService.focus()
	return (false)
	}
	
	ContactPerson=trimAll(form1.txtContactPerson.value)
	if (ContactPerson=="")
	{
	alert("Please enter contact person")
	form1.txtContactPerson.focus()
	return (false)
	}
	Address=trimAll(form1.txtAddress.value)
	if (Address=="")
	{
	alert("Please enter address")
	form1.txtAddress.focus()
	return (false)
	}
	
	City=trimAll(form1.txtCity.value)
	if (City=="")
	{
	alert("Please enter city")
	form1.txtCity.focus()
	return (false)
	}
	
	state=trimAll(form1.txtState.value)
	if (state=="")
	{
	alert("Please enter state")
	form1.txtState.focus()
	return (false)
	}
	
	PhoneOff=trimAll(form1.txtPhoneOff.value)
	if (PhoneOff=="")
	{
	alert("Please enter phone")
	form1.txtPhoneOff.focus()
	return (false)
	}
}
					
function validateAdvertise()
{	
	companyname=trimAll(form1.txtCompanyName.value)
	if(companyname=="")
	{
	alert("Please enter companyname")
	form1.txtCompanyName.focus()
	return (false)
	}

	ContactPerson=trimAll(form1.txtContactPerson.value)
	if (ContactPerson=="")
	{
	alert("Please enter Contact Person")
	form1.txtContactPerson.focus()
	return (false)
	}
	
	Address=trimAll(form1.txtAddress.value)
	if (Address=="")
	{
	alert("Please enter address")
	form1.txtAddress.focus()
	return (false)
	}
	
	City=trimAll(form1.txtCity.value)
	if (City=="")
	{
	alert("Please enter city")
	form1.txtCity.focus()
	return (false)
	}
	
	PhoneOff=trimAll(form1.txtPhoneOff.value)
	if (PhoneOff=="")
	{
	alert("Please enter phone")
	form1.txtPhoneOff.focus()
	return (false)
	}
	
	email=form1.txtEmail.value
	if (email=="")
	{
		alert("Please enter EmailID")
		form1.txtEmail.focus()
		return (false)
	}
	
	if ((email.indexOf("@")==-1)||(email.indexOf(".")==-1))
	{
	alert("Please enter a valid email-id")
	form1.txtEmail.focus()
	return (false)
	}
	
	if (email.indexOf(" ")>-1)
	{
	alert("Please enter  a valid value for the \"E-Mail\" field")
	form1.txtEmail.focus()
	return (false)
	}
	
	Comments=trimAll(form1.txtComments.value)
	if (Comments=="")
	{
	alert("Please enter comments")
	form1.txtComments.focus()
	return (false)
	}
}

function validateProductPage()
{	
	if(document.getElementById('cmbProducts').selectedIndex<= 0)
	{
	alert("Please Select Product")
	form1.cmbProducts.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMake').selectedIndex<= 0)
	{
	alert("Please Select Make")
	form1.cmbMake.focus()
	return (false)
	}
	
	if(document.getElementById('cmbModels').selectedIndex<= 0)
	{
	alert("Please Select Model")
	form1.cmbModels.focus()
	return (false)
	}
	
	Spec=trimAll(form1.txtSpec.value)
	if (Spec=="")
	{
	alert("Please enter Short Description about product")
	form1.txtSpec.focus()
	return (false)
	}
	
	Demand=trimAll(form1.txtDemand.value)
	if (Demand=="")
	{
	alert("Please enter Price demand")
	form1.txtDemand.focus()
	return (false)
	}
	
	if(document.getElementById('cmbLocation').selectedIndex<= 0)
	{
	alert("Please Select Location")
	form1.cmbLocation.focus()
	return (false)
	}	
}
function validateBuyPage()
{
	if(document.getElementById('cmbPropertyType').selectedIndex<=0)
	{
	alert("Please Select Property Type")
	form1.cmbPropertyType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
	if(document.getElementById('cmbLocality').selectedIndex<=0)
	{
	alert("Please Select Locality")
	form1.cmbLocality.focus()
	return (false)
	}
	
	AreaFrom=trimAll(form1.txtAreaFrom.value)
	if (AreaFrom=="")
	{
	alert("Please enter required Area")
	form1.txtAreaFrom.focus()
	return (false)
	}
	
	AreaTo=trimAll(form1.txtAreaTo.value)
	if (AreaTo=="")
	{
	alert("Please enter required Area")
	form1.txtAreaTo.focus()
	return (false)
	}
	
	if(document.getElementById('txtAreaFrom').value>=document.getElementById('txtAreaTo').value)
	{
	alert("please enter proper area range")
	form1.txtAreaTo.focus()
	return (false)
	}

	
	
	if(document.getElementById('cmbAreaType').selectedIndex<=0)
	{
	alert("Please Select Area Type")
	form1.cmbAreaType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbBudgetFrom').selectedIndex<=0)
	{
	alert("Please Select Area Budget From")
	form1.cmbBudgetFrom.focus()
	return (false)
	}
	
	if(document.getElementById('cmbBudgetTo').selectedIndex<=0)
	{
	alert("Please Select Area Budget To")
	form1.cmbBudgetTo.focus()
	return (false)
	}
	
	if(document.getElementById('cmbBudgetTo').selectedIndex<=document.getElementById('cmbBudgetFrom').selectedIndex)
	{
	alert("Upper limit must be greater than to lower limit")
	form1.cmbBudgetTo.focus()
	return (false)
	}
	
	Name=trimAll(form1.txtName.value)
	if (Name=="")
	{
	alert("Please enter Name")
	form1.txtName.focus()
	return (false)
	}
	
	Address=trimAll(form1.txtAddress.value)
	if (Address=="")
	{
	alert("Please enter Address")
	form1.txtAddress.focus()
	return (false)
	}
	
	Phone=trimAll(form1.txtPhone.value)
	if (Phone=="")
	{
	alert("Please enter Phone No")
	form1.txtPhone.focus()
	return (false)
	}
	
	if(document.getElementById('cmbPcity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbPcity.focus()
	return (false)
	}
}
function validateVehiclesPage()
{	
	if(document.getElementById('cmbCategory').selectedIndex<= 0)
	{
	alert("Please Select Category")
	form1.cmbCategory.focus()
	return (false)
	}
	
	if(document.getElementById('cmbType').selectedIndex<= 0)
	{
	alert("Please Select Type")
	form1.cmbType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbLocation').selectedIndex<= 0)
	{
	alert("Please Select Location")
	form1.cmbLocation.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMakeYear').selectedIndex<= 0)
	{
	alert("Please Select Year")
	form1.cmbMakeYear.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMake').selectedIndex<= 0)
	{
	alert("Please Select Make")
	form1.cmbMake.focus()
	return (false)
	}
	
	if(document.getElementById('cmbModels').selectedIndex<= 0)
	{
	alert("Please Select Model")
	form1.cmbModels.focus()
	return (false)
	}
	
	if(document.getElementById('cmbVersion').selectedIndex<= 0)
	{
	alert("Please Select Version")
	form1.cmbVersion.focus()
	return (false)
	}
	
	RegNo=trimAll(form1.txtRegistrationNo.value)
	if (RegNo=="")
	{
	alert("Please enter Registration No")
	form1.txtRegistrationNo.focus()
	return (false)
	}
	
	Kilometers=trimAll(form1.txtKilometers.value)
	if (Kilometers=="")
	{
	alert("Please enter kilometers")
	form1.txtKilometers.focus()
	return (false)
	}
	
	PriceDemand=trimAll(form1.txtPriceDemand.value)
	if (PriceDemand=="")
	{
	alert("Please enter Price Demand")
	form1.txtPriceDemand.focus()
	return (false)
	}
	
	Owners=trimAll(form1.txtNoOfOwners.value)
	if (Owners=="")
	{
	alert("Please enter No. of Owners")
	form1.txtNoOfOwners.focus()
	return (false)
	}
	
	Insurance=trimAll(form1.txtInsurance.value)
	if (Insurance=="")
	{
	alert("Please enter Insurance")
	form1.txtInsurance.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMonth').selectedIndex<= 0)
	{
	alert("Please Select Month")
	form1.cmbMonth.focus()
	return (false)
	}	
	
	if(document.getElementById('cmbMonth').selectedIndex<= 0)
	{
	alert("Please Select Isnurance Month")
	form1.cmbMonth.focus()
	return (false)
	}
	
	if(document.getElementById('cmbYear').selectedIndex<= 0)
	{
	alert("Please Select Insurance Year")
	form1.cmbYear.focus()
	return (false)
	}	
}

function validateAnonymousUserPage()
{	
	tName=trimAll(form1.txtName.value)
	if (tName=="")
	{
	alert("Please enter your Name")
	form1.txtName.focus()
	return (false)
	}
	
	tAddress=trimAll(form1.txtAddress.value)
	if (tAddress=="")
	{
	alert("Please enter your Address")
	form1.txtAddress.focus()
	return (false)
	}
	
	tPhone=trimAll(form1.txtPhone.value)
	if (tPhone=="")
	{
	alert("Please enter Your Phone")
	form1.txtPhone.focus()
	return (false)
	}
	
	email=form1.txtEmail.value
	if (email=="")
	{
		alert("Please enter EmailID")
		form1.txtEmail.focus()
		return (false)
	}
	
	if ((email.indexOf("@")==-1)||(email.indexOf(".")==-1))
	{
	alert("Please enter a valid email-id")
	form1.txtEmail.focus()
	return (false)
	}
	
	if (email.indsexOf(" ")>-1)
	{
	alert("Please enter  a valid value for the \"E-Mail\" field")
	form1.txtEmail.focus()
	return (false)
	}
}
function validateRentPage()
{
	if(document.getElementById('cmbPropertyType').selectedIndex<=0)
	{
	alert("Please Select Property Type")
	form1.cmbPropertyType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
	if(document.getElementById('cmbLocality').selectedIndex<=0)
	{
	alert("Please Select Locality")
	form1.cmbLocality.focus()
	return (false)
	}
	

		if(document.getElementById('cmbArea').selectedIndex<=0)
		{
		alert("Please Select Bedrooms")
		form1.cmbArea.focus()
		return (false)
		}

		if(document.getElementById('cmbCommercial').selectedIndex<=0)
		{
		alert("Please Select Floors")
		form1.cmbCommercial.focus()
		return (false)
		}

		if(document.getElementById('cmbAgricultural').selectedIndex<=0)
		{
		alert("Please Select Land")
		form1.cmbAgricultural.focus()
		return (false)
		}

		
	if(document.getElementById('cmbBudgetFrom').selectedIndex<=0)
	{
	alert("Please Select Area Budget From")
	form1.cmbBudgetFrom.focus()
	return (false)
	}
	
	if(document.getElementById('cmbBudgetTo').selectedIndex<=0)
	{
	alert("Please Select Area Budget To")
	form1.cmbBudgetTo.focus()
	return (false)
	}
	
	if(document.getElementById('cmbBudgetTo').selectedIndex<=document.getElementById('cmbBudgetFrom').selectedIndex)
	{
	alert("Upper limit must be greater than to lower limit")
	form1.cmbBudgetTo.focus()
	return (false)
	}
	
	Name=trimAll(form1.txtName.value)
	if (Name=="")
	{
	alert("Please enter Name")
	form1.txtName.focus()
	return (false)
	}
	
	Address=trimAll(form1.txtAddress.value)
	if (Address=="")
	{
	alert("Please enter Address")
	form1.txtAddress.focus()
	return (false)
	}
	
	Phone=trimAll(form1.txtPhone.value)
	if (Phone=="")
	{
	alert("Please enter Phone No")
	form1.txtPhone.focus()
	return (false)
	}
	
	email=form1.txtEmail.value
	if (email=="")
	{
		alert("Please enter EmailID")
		form1.txtEmail.focus()
		return (false)
	}
	
	if ((email.indexOf("@")==-1)||(email.indexOf(".")==-1))
	{
	alert("Please enter a valid email-id")
	form1.txtEmail.focus()
	return (false)
	}
	
	if (email.indsexOf(" ")>-1)
	{
	alert("Please enter  a valid value for the \"E-Mail\" field")
	form1.txtEmail.focus()
	return (false)
	
	}
	if(document.getElementById('cmbPcity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbPcity.focus()
	return (false)
	}
}
function ValidateSellPropertyForm()
{	
	if(document.getElementById('cmbPropertyType').selectedIndex<=0)
	{
	alert("Please Select Property Type")
	form1.cmbPropertyType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
	if(document.getElementById('cmbLocality').selectedIndex<=0)
	{
	alert("Please Select Locality")
	form1.cmbLocality.focus()
	return (false)
	}
		
	FirstName=trimAll(form1.txtPlotArea.value)
	if(FirstName=="")
	{
	alert("Please enter Land Area")
	form1.txtPlotArea.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMeasure2').selectedIndex<=0)
	{
	alert("Please Select Units")
	form1.cmbMeasure2.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMeasure2').selectedIndex<=0)
	{
	alert("Please Select Land Area Units")
	form1.cmbMeasure2.focus()
	return (false)
	}
		
	LastName=trimAll(form1.txtPrice.value)
	if (LastName=="")
	{
	alert("Please enter Price")
	form1.txtPrice.focus()
	return (false)
	}
}

function ValidateProType()
{	
	if(document.getElementById('cmbPropertyType').selectedIndex==3)
	{
	//alert("Please Select Property Type")
	location.replace("SellAgriLand.aspx")
	}
}

function ValidateIndexPropertyForm()
{
if(document.getElementById('cmbPropertyType').selectedIndex<=0)
	{
	alert("Please Select Property Type")
	form1.cmbPropertyType.focus()
	return (false)
	}
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}

}
function ValidateAgriculturalProperty()
{	

	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
	if(document.getElementById('cmbVillage').selectedIndex<=0)
	{
	alert("Please Select Village")
	form1.cmbVillage.focus()
	return (false)
	}
	
	
	TotalArea=trimAll(form1.txtCoveredArea.value)
	if(TotalArea=="")
	{
	alert("Please enter Total Land Area")
	form1.txtCoveredArea.focus()
	return (false)
	}
	if(document.getElementById('cmbMeasure').selectedIndex<=0)
	{
	alert("Please Select Units")
	form1.cmbMeasure.focus()
	return (false)
	}
		
	PriceDemand=trimAll(form1.txtPrice.value)
	if(PriceDemand=="")
	{
	alert("Please enter Price")
	form1.txtPrice.focus()
	return (false)
	}
}

function ValidatePropertyPage()
{	
	if(document.getElementById('cmbPropertyType').selectedIndex<=0)
	{
	alert("Please Select Property")
	form1.cmbPropertyType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
	if(document.getElementById('cmbLocality').selectedIndex<=0)
	{
	alert("Please Select Locality")
	form1.cmbLocality.focus()
	return (false)
	}
	
	TotalArea=trimAll(form1.txtPlotArea.value)
	if(TotalArea=="")
	{
	alert("Please enter Area")
	form1.txtPlotArea.focus()
	return (false)
	}
	
	if(document.getElementById('cmbMeasure2').selectedIndex<=0)
	{
	alert("Please Select Units")
	form1.cmbMeasure2.focus()
	return (false)
	}
		
	PriceDemand=trimAll(form1.txtPrice.value)
	if(PriceDemand=="")
	{
	alert("Please enter Price")
	form1.txtPrice.focus()
	return (false)
	}
}
function ValidateSearchResultPage()
{	
	if(document.getElementById('cmbPropertyType').selectedIndex<=0)
	{
	alert("Please Select Property")
	form1.cmbPropertyType.focus()
	return (false)
	}
	
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
}

function ValidateSetNewsPage()
{	
	S1=trimAll(form1.txtSubject.value)
	if(S1=="")
	{
	alert("Please enter Subject of Newsletter")
	form1.txtSubject.focus()
	return (false)
	}
	
	H1=trimAll(form1.txtHeader1.value)
	if(H1=="")
	{
	alert("Please enter Description of Newsletter")
	form1.txtHeader1.focus()
	return (false)
	}
	
	F1=trimAll(form1.txtFooter.value)
	if(F1=="")
	{
	alert("Please enter Footnote of Newsletter")
	form1.txtFooter.focus()
	return (false)
	}
}



function ValidateSendNewsPage()
{	

	if(document.getElementById('EmailSubjects').selectedIndex<=0)
	{
	alert("Please Select Subject")
	form1.EmailSubjects.focus()
	return (false)
	}
	
	if(document.getElementById('SelectedEmailIDs').selectedIndex<=0)
	{
	alert("Please Add Email Ids")
	form1.EmailAddresses.focus()
	return (false)
	}
	
	//if(document.getElementById('EmailAddresses').selectedIndex<=0)
	//{
	//alert("Please Select Email Ids")
	//form1.EmailAddresses.focus()
	//return (false)
	//}
	
	//if(document.getElementById('SelectedEmailIDs').selectedIndex<=0)
	//{
	//alert("Please Select Email Ids")
	//form1.SelectedEmailIDs.focus()
	//return (false)
	//}
	
}

function ValidateLocalitiesPage()
{		
		
	if(document.getElementById('cmbCity').selectedIndex<=0)
	{
	alert("Please Select City")
	form1.cmbCity.focus()
	return (false)
	}
	
	TCity=trimAll(form1.txtCity.value)
	if(TCity=="")
	{
	alert("Please enter Locality")
	form1.txtCity.focus()
	return (false)
	}
}

function ValidateRemoveSingle()
{		
		
	if(document.getElementById('SelectedEmailIDs').selectedIndex<=0)
	{
	alert("Please Select Email Ids")
	form1.SelectedEmailIDs.focus()
	return (false)
	}
}