
function GetTown(name)
{
	// prototype
	//new Ajax.Updater('townxp', 'ajax/ajaxRequest.php?country='+ name, { method: 'get' });

	//jquery
	$.ajax({
	url: 'ajax/ajaxRequest.php?country='+ name,
	type: 'GET',
	data: name,
	dataType: 'html',
	contentType: "application/json; charset=utf-8",
	beforeSend: function() { $("#townxp").html("Saving").show(); },
	success: function(request) {
		//alert(request.length) ;
		$("#townxp").html(request).show();
	}

		
	});
}


function GetTownFast(name)
{
	// prototype
	//new Ajax.Updater('townxp', 'ajax/ajaxRequest.php?country='+ name, { method: 'get' });

	//jquery
	$.ajax({
	url: 'ajax/ajaxRequest.php?country='+ name,
	type: 'GET',
	data: name,
	dataType: 'html',
	contentType: "application/json; charset=utf-8",
	beforeSend: function() { $("#townxpfast").html("Saving").show(); },
	success: function(request) {
		//alert(request.length) ;
		$("#townxpfast").html(request).show();
	}

		
	});
}

function ShowList()
{
	country = document.ajaxSearch.country.value;
	town = document.ajaxSearch.town.value;
	window.location = 'listadestinatii.php?country='+country+'&town='+town; 
}

//jquery
$(document).ready(function(){
	$("#demoOne").jqGalScroll({width:185, height:140,speed:500});
});
