function submitSideActivitiesSearch() {
	var country = document.getElementById('searchCountry').value;
	var act = document.getElementById('searchActivity').value;
//alert(country + '  ' + act);
	destinationSearch('', '', act, country);
}

function submitSideDestinationSearch() {
	var key = document.getElementById('searchKey').value;
	var spot = document.getElementById('searchSpot').value;
	var act = '';//document.getElementById('searchActivity').value;
	if (key == 'Search a destination' || key == 'Please enter a search') key = '';
	if (spot == 'Search a spot') spot = '';
	if (key != '' || spot != '') {
		destinationSearch(key, spot, '', '');
		var q = document.getElementById('qSearchKey')
		if (document.getElementById('qSearchKey')) {
		}
		return false;
	} else {
		 document.getElementById('searchKey').value = 'Please enter a search';
	}
}

var g_traylelisttarget = '';
function showTraylePage(page, o, isReview, countryCode, destinationId, poiId) {
	if(page > 0) {
		if(page == 1) {
			document.getElementById(o+"_prev").className = "disabled";
		}else{
			document.getElementById(o+"_prev").className = "enabled";
		}
		g_traylelisttarget = o;
		var url = '/call/snippet/destinations.php?go=traylelist&page='+page+'&review='+isReview+'&countrycode='+countryCode+'&destinationid='+destinationId+'&poiid='+poiId;
		var cObj = Connect.asyncRequest('GET', url , traylePageReaction);
	}
}

function traylePageReaction(o, success) {
	if(success) {
		if(g_traylelisttarget != '') {
			document.getElementById(g_traylelisttarget).innerHTML = o.responseText;	
		}
	}
}
