$(document).ready(function() {	
	
$('#kerkodhomacmime').submit(function () {		
		
		//Get the data from all the fields
		var dtfillimi=$('input[name=dtfillimiprenot]');
		var dtmbarimi=$('input[name=dtmbarimiprenot]');
		var gjuha = $('input[name=gjuha]');
		var hID = $('input[name=hID]');
		var rooms = $('select[name=roomshotel]');
		var gj=gjuha.val();
		
		//Simple validation to make sure user entered something
		//If error found, add hightlight class to the text field
		
		
		if (dtfillimi.val()=='') {
			
			dtfillimi.addClass('hightlight');
			return false;
		} else {dtfillimi.removeClass('hightlight')};
		
		if (dtmbarimi.val()=='') {
			
			dtmbarimi.addClass('hightlight');
			return false;
		} else {dtmbarimi.removeClass('hightlight')};
		
		if (rooms.val()==0) {
			
			rooms.addClass('hightlight');
			return false;
		} else {rooms.removeClass('hightlight')};
		
		if(dtfillimi.val()>=dtmbarimi.val())
		{
			dtfillimi.addClass('hightlight');
			dtmbarimi.addClass('hightlight');
			if(gj=="gj1")
			{
				alert('Kujdes! Data e hyrjes nuk duhet te jete me e vogel se data e daljes');
			}
			else
			{
				alert('Caution! Checkin must be smaller than checkout');
			}
			return false;
		}
		else
		{
			dtfillimi.removeClass('hightlight');
			dtmbarimi.removeClass('hightlight')
		}
		$('#dhomatcmime').html('');
		$('#dhomatcmime').html('<div class="loadingroomshotelhotel"></div>');
		$('.loadingroomshotelhotel').show();
		var datat='?gj='+gj+'&hotelID='+hID.val()+'&checkin='+dtfillimi.val()+'&checkout='+dtmbarimi.val()+'&rooms='+rooms.val();
		$.ajax({
			type: 'POST',
			url: $(this).attr('action')+datat,
			data: $(this).serialize(),
			success: function(data) {
				$('#dhomatcmime').html('');
				$('#dhomatcmime').html(data);
			}
		});
		
		//cancel the submit button default behaviours
		return false;
	});	
	
	
$('#roomshotel').change(function () {		
		
		//Get the data from all the fields
		var dtfillimi=$('input[name=dtfillimiprenot]');
		var dtmbarimi=$('input[name=dtmbarimiprenot]');
		var gjuha = $('input[name=gjuha]');
		var hID = $('input[name=hID]');
		var rooms = $('select[name=roomshotel]');
		var gj=gjuha.val();
		
		//Simple validation to make sure user entered something
		//If error found, add hightlight class to the text field
		$('#dhomatcmime').html('');
		$('#dhomat12345').html('');
		$('#loadingroomshotel').html('<div class="loadingroomshotel"></div>');
		$('.loadingroomshotel').show();
		if (dtfillimi.val()=='') {
			
			dtfillimi.addClass('hightlight');
			return false;
		} else {dtfillimi.removeClass('hightlight')};
		
		if (dtmbarimi.val()=='') {
			
			dtmbarimi.addClass('hightlight');
			return false;
		} else {dtmbarimi.removeClass('hightlight')};
		
		if(dtfillimi.val()>=dtmbarimi.val())
		{
			dtfillimi.addClass('hightlight');
			dtmbarimi.addClass('hightlight');
			if(gj=="gj1")
			{
				alert('Kujdes! Data e hyrjes nuk duhet te jete me e vogel se data e daljes');
			}
			else
			{
				alert('Caution! Checkin must be smaller than checkout');
			}
			return false;
		}
		else
		{
			dtfillimi.removeClass('hightlight');
			dtmbarimi.removeClass('hightlight')
		}
		
		
		
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/rooms.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&hotelID='+hID.val()+'&checkin='+dtfillimi.val()+'&checkout='+dtmbarimi.val()+'&rooms='+rooms.val(),		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {
					if(rooms.val()==0)
					{
						$('#dhomat12345').html('');
					}
					else
					{
						$('#dhomat12345').html(data);
					}
					$('#dhomatcmime').html('');
					$('#loadingroomshotel').html('');
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
		
		//cancel the submit button default behaviours
		return false;
	});


$('#nrchildrens0').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens0]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	
	$('#childrensage0').html('');
	$('#loadingchildrensage0').html('<div class="loadingchildrensage0"></div>');
	$('.loadingchildrensage0').show();
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=0&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage0').html(data);
						$('#loadingchildrensage0').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage0').html('');
				$('#loadingchildrensage0').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens1').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens1]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage1').html('');
	$('#loadingchildrensage1').html('<div class="loadingchildrensage1"></div>');
	$('.loadingchildrensage1').show();
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=1&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage1').html(data);
						$('#loadingchildrensage1').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage1').html('');
				$('#loadingchildrensage1').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens2').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens2]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage2').html('');
	$('#loadingchildrensage2').html('<div class="loadingchildrensage2"></div>');
	$('.loadingchildrensage2').show();
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=2&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage2').html(data);
						$('#loadingchildrensage2').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage2').html('');
				$('#loadingchildrensage2').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens3').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens3]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage3').html('');
	$('#loadingchildrensage3').html('<div class="loadingchildrensage3"></div>');
	$('.loadingchildrensage3').show();
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=3&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage3').html(data);
						$('#loadingchildrensage3').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage3').html('');
				$('#loadingchildrensage3').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens4').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens4]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage4').html('');
	$('#loadingchildrensage4').html('<div class="loadingchildrensage4"></div>');
	$('.loadingchildrensage4').show();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=4&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage4').html(data);
						$('#loadingchildrensage4').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage4').html('');
				$('#loadingchildrensage4').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens5').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens5]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage5').html('');
	$('#loadingchildrensage5').html('<div class="loadingchildrensage5"></div>');
	$('.loadingchildrensage5').show();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=5&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage5').html(data);
						$('#loadingchildrensage5').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage5').html('');
				$('#loadingchildrensage5').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens6').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens6]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage6').html('');
	$('#loadingchildrensage6').html('<div class="loadingchildrensage6"></div>');
	$('.loadingchildrensage6').show();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=6&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage6').html(data);
						$('#loadingchildrensage6').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage6').html('');
				$('#loadingchildrensage6').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens7').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens7]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage7').html('');
	$('#loadingchildrensage7').html('<div class="loadingchildrensage7"></div>');
	$('.loadingchildrensage7').show();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=7&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage7').html(data);
						$('#loadingchildrensage7').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage7').html('');
				$('#loadingchildrensage7').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens8').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens8]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage8').html('');
	$('#loadingchildrensage8').html('<div class="loadingchildrensage8"></div>');
	$('.loadingchildrensage8').show();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=8&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage8').html(data);
						$('#loadingchildrensage8').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage8').html('');
				$('#loadingchildrensage8').html('');
			}
		}
		});
	return false;
});
$('#nrchildrens9').change(function () {
	//Get the data from all the fieldsnrAdult
	var nrchildrens = $('select[name=nrchildrens9]');
	var gjuha = $('input[name=gjuha]');
	var hID = $('input[name=hID]').val();
	var gj=gjuha.val();
	var nrchilds=nrchildrens.val();
	$('#childrensage9').html('');
	$('#loadingchildrensage9').html('<div class="loadingchildrensage9"></div>');
	$('.loadingchildrensage9').show();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/childrens.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&nrchilds='+nrchilds+'&dhoma=9&hID='+hID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
			//if process.php returned 1/true (send mail success)
			if(nrchilds!=0)
			{
				if (data!='') {	
						$('#childrensage9').html(data);
						$('#loadingchildrensage9').html('');
					}
				//if process.php returned 0/false (send mail failed)
				else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}	
			else
			{
				$('#childrensage9').html('');
				$('#loadingchildrensage9').html('');
			}
		}
		});
	return false;
});



$('#room0').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room0]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet0').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room1').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room1]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet1').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});

$('#room2').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room2]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet2').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room3').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room3]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet3').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room4').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room4]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet4').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room5').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room5]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet5').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room6').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room6]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet6').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room7').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room7]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet7').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room8').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room8]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet8').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
$('#room9').change(function () {
	//Get the data from all the fieldsnrAdult
	var room = $('select[name=room9]');
	var gjuha = $('input[name=gjuha]');
	var gj=gjuha.val();
	var roomID=room.val();
	
		//start the ajax
		$.ajax({
			//this is the php file that processes the data and send mail
			url: "/scriptsphp/kapacitet.php",	
			
			//GET method is used
			type: "GET",

			//pass the data			
			data: 'gj='+gj+'&roomID='+roomID,		
			
			//Do not cache the page
			cache: false,
			
			//success
			success: function (data) {				
				//if process.php returned 1/true (send mail success)
				if (data!='') {	
					$('#kapacitet9').html(data);
				//if process.php returned 0/false (send mail failed)
				} else {if(gj=="gj1"){alert('Ndodhi nje gabim. Ju lutemi te provoni perseri');}else{alert('Sorry, unexpected error. Please try again later.');}}				
			}		
		});
	return false;
});
	return false;
});
