
$(document).ready(function(){$("input[name='whatsearch']").change(function(){var whatsearch=$("input[name='whatsearch']:checked");var gjuha=$("input[name='gj']");var gj=gjuha.val();var whatsearchvalue=whatsearch.val();if(whatsearchvalue=="hotels")
{$.ajax({url:"/php/formahotels.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="tours")
{$.ajax({url:"/php/formatours.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="specials")
{$.ajax({url:"/php/formaspeciale.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="crociere")
{$.ajax({url:"/php/formacrociere.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="flights")
{$.ajax({url:"/php/formaflights.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="ferries")
{$.ajax({url:"/php/formaferries.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="packages")
{$.ajax({url:"/php/formapackages.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
else if(whatsearchvalue=="cars")
{$.ajax({url:"/php/formacars.php",type:"GET",data:'gj='+gj,cache:false,success:function(data){if(data!="")
{$('#formselected').html(data);}
else{if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}}});}
return false;});});