var urlPars = new Array('service_model', 'country_id', 'showCountries', 'showCounties','showAccoTypes', 'hotel_group', 'hotel_id', 'guide_id', 'months_ahead', 'user_language');
var pStr = '?';

	if(service_model == undefined) {var service_model="";}
	if(service_model != '') {
		pStr = pStr + 'service_model=' + service_model + '&';
	}

	if(country_id == undefined) {var country_id="";}
	if(country_id != '') {
		pStr = pStr + 'country_id=' + country_id + '&';
	}

	if(showCountries == undefined) {var showCountries="";}
	if(country_id != '') {
		pStr = pStr + 'showCountries=' + showCountries + '&';
	}

	if(showCounties == undefined) {var showCounties="";}
	if(showCounties != '') {
		pStr = pStr + 'showCounties=' + showCounties + '&';
	}

	if(showAccoTypes == undefined) {var showAccoTypes="";}
	if(showAccoTypes != '') {
		pStr = pStr + 'showAccoTypes=' + showAccoTypes + '&';
	}

	if(hotel_group == undefined) {var hotel_group="";}
	if(hotel_group != '') {
		pStr = pStr + 'hotel_group=' + hotel_group + '&';
	}

	if(hotel_id == undefined) {var hotel_id="";}
	if(hotel_id != '') {
		pStr = pStr + 'hotel_id=' + hotel_id + '&';
	}

	if(guide_id == undefined) {var guide_id="";}
	if(guide_id != '') {
		pStr = pStr + 'guide_id=' + guide_id + '&';
	}

	if(county == undefined) {var county="";}
	if(county != '') {
		pStr = pStr + 'county=' + county + '&';
	}

	if(months_ahead == undefined) {var months_ahead="";}
	if(months_ahead != '') {
		pStr = pStr + 'months_ahead=' + months_ahead + '&';
	}

	if(user_language == undefined) {var user_language="";}
	if(user_language != '') {
		pStr = pStr + 'user_language=' + user_language + '&';
	}
	if(cg_group_id == undefined) {var cg_group_id="";}
	if(cg_group_id != '') {
		pStr = pStr + 'cg_group_id=' + cg_group_id + '&';
	}
	if(countiesAndHotels == undefined) {var countiesAndHotels="";}
	if(countiesAndHotels != '') {
		pStr = pStr + 'countiesAndHotels=' + countiesAndHotels + '&';
	}
	
	if(countiesForGroup == undefined) {var countiesForGroup="";}
	if(countiesForGroup != '') {
		pStr = pStr + 'countiesForGroup=' + countiesForGroup + '&';
	}
	
	if(show_stars == undefined) {var show_stars="";}
	if(show_stars != '') {
		pStr = pStr + 'show_stars=' + show_stars + '&';
	}
	



//for(i=0; i<urlPars.length; i++) {
	//alert(urlPars[i])
	//alert('if('+urlPars[i]+' == undefined) { var '+urlPars[i]+'="";}');
	//eval('if('+urlPars[i]+' == undefined) {var '+urlPars[i]+'="";}');
	//alert(urlPars[i] + ' after if eval');
	//eval('var thisParam = '+urlPars[i]+';')
	//alert('thisParam: ' + thisParam);
	//if(thisParam != '') {
	//	pStr = pStr + urlPars[i] + '=' + thisParam + '&';
	//}
//}

