function lookup(txtkeyword) {

	if(txtkeyword.length == 0) {
		// Hide the suggestion box.
		$('#suggestions').hide();
	} else {
		// post data to our php processing page and if there is a return greater than zero
		// show the suggestions box
		$.post("http://www.traveladda.com/string_search.php", {mysearchString: ""+txtkeyword+""}, function(data){
			if(data.length >0) {
				$('#suggestions').show();
				$('#autoSuggestionsList').html(data);
			}
		});
	}
} //end

function lookup_city(address1) {
setTimeout("$('#suggestions1').hide();", 3000);
	if(address1.length == 0) {
		// Hide the suggestion box.
		$('#suggestions1').hide();
	} else {
		// post data to our php processing page and if there is a return greater than zero
		// show the suggestions box
		$.post("http://www.traveladda.com/city_string_search.php", {mysearchString: ""+address1+""}, function(data){
			if(data.length >0) {
				$('#suggestions1').show();
				$('#autoSuggestionsList1').html(data);
			}
		});
	}
} //end
function lookup_city2(address2) {
setTimeout("$('#suggestions2').hide();", 3000);
	if(address2.length == 0) {
		// Hide the suggestion box.
		$('#suggestions2').hide();
	} else {
		// post data to our php processing page and if there is a return greater than zero
		// show the suggestions box
		$.post("http://www.traveladda.com/city_string_search2.php", {mysearchString: ""+address2+""}, function(data){
			if(data.length >0) {
				$('#suggestions2').show();
				$('#autoSuggestionsList2').html(data);
			}
		});
	}
} //end


// if user clicks a suggestion, fill the text box.
function fill(thisValue) {
	$('#txtkeyword').val(thisValue);
	setTimeout("$('#suggestions').hide();", 200);
}
function fill1(thisValue) {
	$('#address1').val(thisValue);
	setTimeout("$('#suggestions1').hide();", 200);
}
function fill2(thisValue) {
	$('#address2').val(thisValue);
	setTimeout("$('#suggestions2').hide();", 200);
}
function validate_search()
{
	
		if(document.frmsearch.lststates.value=='Select State')
		{
			alert("Please select state")
			return false;
		}
}
function validate_autosuggest()
{
	//alert(document.form1.txtkeyword.value);
		if(document.form1.txtkeyword.value=='')
		{
			alert("Please enter search keword")
			return false;
		}
}
function lookup3(txtkeyword3) {

	if(txtkeyword3.length == 0) {
		// Hide the suggestion box.
		$('#suggestions_hotel').hide();
	} else {
		// post data to our php processing page and if there is a return greater than zero
		// show the suggestions box
		$.post("http://www.traveladda.com/string_search3.php", {mysearchString: ""+txtkeyword3+""}, function(data){
			if(data.length >0) {
				$('#suggestions_hotel').show();
				$('#autoSuggestionsList_hotel').html(data);
			}
		});
	}
} 
function fill3(thisValue) {
	$('#txtkeyword3').val(thisValue);
	setTimeout("$('#suggestions_hotel').hide();", 200);
}
