function validate(frmobj){

	if(!isSelect(frmobj.destCitySlt)){
		alert("Please select a city from the list");
		frmobj.destCitySlt.focus();
		return false;
	}

	if(!isEmpty(frmobj.pickDateTxt)){
		alert("Please enter Pick up date");
		frmobj.pickDateTxt.focus();
		frmobj.pickDateTxt.select();
		return false;
	}

	if(!isDate(frmobj.pickDateTxt.value)){
		frmobj.pickDateTxt.focus();
		frmobj.pickDateTxt.select();
		return false;
	}

	if(!isEmpty(frmobj.dropDateTxt)){
		alert("Please enter Drop off date");
		frmobj.dropDateTxt.focus();
		frmobj.dropDateTxt.select();
		return false;
	}

	if(!isDate(frmobj.dropDateTxt.value)){
		frmobj.dropDateTxt.focus();
		frmobj.dropDateTxt.select();
		return false;
	}

	if(new Date(frmobj.pickDateTxt.value) > new Date(frmobj.dropDateTxt.value)){
		alert("Pick up date should be less than or equal to Drop off date");
		frmobj.dropDateTxt.focus();
		frmobj.dropDateTxt.select();
		return false;
	}
	return true;
}

function isSelect(sltobj){
	if(sltobj.selectedIndex == 0)
		return false;
	return true;
}

function isEmpty(txtobj){
	if(Trim(txtobj.value) == "")
		return false;
	return true;
}

