function dealCounter()
{
		var ajaxRequest;  // The variable that makes Ajax possible!
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				var answer = ajaxRequest.responseText;
				if(answer == ''){
					answer = 0;
				}
				document.getElementById('founddiv_deal').innerHTML = answer+' Results';
			} else {
				//document.getElementById('founddiv_deal').innerHTML = '';

			}
		}

		var duration = document.getElementById('cruise_duration').value; 
		var vendor = document.getElementById('cruiseVendor_d').value; 
		var portid = document.getElementById('portid_d').value; 
		var startprice = document.getElementById('startprice').value; 
		var endprice = document.getElementById('endprice').value;
		var chkin = document.getElementById('DPC_date1').value;
		var chkout = document.getElementById('DPC_date2').value;

		var Ajaxurl	=	'../searchcounter.php?duration='+duration+'&vendor='+vendor+'&portid='+portid+'&startprice='+startprice+'&endprice='+endprice+'&chkin='+chkin+'&chkout='+chkout;
		alert(Ajaxurl);
		ajaxRequest.open("GET",Ajaxurl, true);
		ajaxRequest.send(null); 
}

// counter script for destination deals page START #######################################

function dealCounter_Destination()
{
		var ajaxRequest;  // The variable that makes Ajax possible!
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				var answer = ajaxRequest.responseText;
				if(answer == ''){
					answer = 0;
				}
				document.getElementById('founddiv_deal').innerHTML = answer+' Results';
			} else {
				document.getElementById('founddiv_deal').innerHTML = 'Wait...';

			}
		}

		var duration = document.getElementById('cruise_duration').value;
		var vendor = document.getElementById('cruiseVendor_d').value; 
		var chkin = document.getElementById('cruiseMonth').value;
		var port = document.getElementById('portid_d').value;
		var dest_id = document.getElementById('destination_id').value;

		var Ajaxurl	=	'../searchcounter_destination.php?duration='+duration+'&vendor='+vendor+'&chkin='+chkin+'&port='+port+'&dest_id='+dest_id;
		ajaxRequest.open("GET",Ajaxurl, true);
		ajaxRequest.send(null); 
}

// update cruiseline drop down for destination deals page START #######################################


function updateCruiseline_Destinationdeal()
{
		var ajaxRequest;  // The variable that makes Ajax possible!
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				document.getElementById('cruiseline_destdeal').innerHTML = ajaxRequest.responseText;
			}
		}

		var duration = document.getElementById('cruise_duration').value;
		var vendor = document.getElementById('cruiseVendor_d').value; 
		var chkin = document.getElementById('cruiseMonth').value;
		var port = document.getElementById('portid_d').value;
		var dest_id = document.getElementById('destination_id').value;

		var Ajaxurl	=	'../updatecruiseline_destination_deal.php?duration='+duration+'&vendor='+vendor+'&chkin='+chkin+'&port='+port+'&dest_id='+dest_id;
		ajaxRequest.open("GET",Ajaxurl, true);
		ajaxRequest.send(null); 
}

// update cruiseline length drop down for destination deals page START #######################################

function updateCruiselength_Destinationdeal()
{
		var ajaxRequest;  // The variable that makes Ajax possible!
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				document.getElementById('cruiselength_destdeal').innerHTML = ajaxRequest.responseText;
			}
		}

		var duration = document.getElementById('cruise_duration').value;
		var vendor = document.getElementById('cruiseVendor_d').value; 
		var chkin = document.getElementById('cruiseMonth').value;
		var port = document.getElementById('portid_d').value;
		var dest_id = document.getElementById('destination_id').value;

		var Ajaxurl	=	'../updatecruiselength_destination_deal.php?duration='+duration+'&vendor='+vendor+'&chkin='+chkin+'&port='+port+'&dest_id='+dest_id;
		ajaxRequest.open("GET",Ajaxurl, true);
		ajaxRequest.send(null); 
}

// update departure port drop down for destination deals page START #######################################

function updateDeparturePort_Destinationdeal()
{
		var ajaxRequest;  // The variable that makes Ajax possible!
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				document.getElementById('deptport_destdeal').innerHTML = ajaxRequest.responseText;
			}
		}

		var duration = document.getElementById('cruise_duration').value;
		var vendor = document.getElementById('cruiseVendor_d').value; 
		var chkin = document.getElementById('cruiseMonth').value;
		var port = document.getElementById('portid_d').value;
		var dest_id = document.getElementById('destination_id').value;

		var Ajaxurl	=	'../updateport_destination_deal.php?duration='+duration+'&vendor='+vendor+'&chkin='+chkin+'&port='+port+'&dest_id='+dest_id;
		ajaxRequest.open("GET",Ajaxurl, true);
		ajaxRequest.send(null); 
}


// update departure month drop down for destination deals page START #######################################

function updatemonth_Destinationdeal()
{
		var ajaxRequest;  // The variable that makes Ajax possible!
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				document.getElementById('month_destdeal').innerHTML = ajaxRequest.responseText;
			}
		}

		var duration = document.getElementById('cruise_duration').value;
		var vendor = document.getElementById('cruiseVendor_d').value; 
		var chkin = document.getElementById('cruiseMonth').value;
		var port = document.getElementById('portid_d').value;
		var dest_id = document.getElementById('destination_id').value;

		var Ajaxurl	=	'../updatemonth_destination_deal.php?duration='+duration+'&vendor='+vendor+'&chkin='+chkin+'&port='+port+'&dest_id='+dest_id;
		ajaxRequest.open("GET",Ajaxurl, true);
		ajaxRequest.send(null); 
}
