<!--

function UnCryptMailto(s) {
	var n = 0;
	var r = "";
	for (var i=0; i<s.length; i++) {
		n = s.charCodeAt(i);
		if(n >= 8364) {
			n = 128;
		}
		r += String.fromCharCode(n - 1);
	}
	return r;
}

function linkTo_UnCryptMailto(s) {
	location.href=UnCryptMailto(s);
}

function UpdateCost() {
	var dropdownIndexAdult = document.getElementById('adult_guests').selectedIndex;
	var dropdownValueAdult = document.getElementById('adult_guests')[dropdownIndexAdult].value;
	var dropdownIndexJunior = document.getElementById('junior_guests').selectedIndex;
	var dropdownValueJunior = document.getElementById('junior_guests')[dropdownIndexJunior].value;
	var dropdownIndexChildren = document.getElementById('children_guests').selectedIndex;
	var dropdownValueChildren = document.getElementById('children_guests')[dropdownIndexChildren].value;
	
	totalAmount = (dropdownValueAdult * 20) + (dropdownValueJunior * 10) + (dropdownValueChildren * 0);
	
	document.getElementById('totalcost').value = totalAmount;
	document.getElementById('showcost').innerHTML = totalAmount;
}

function popup(mylink, windowname) {
	params  = 'width='+screen.width;
	params += ', height='+screen.height;
	params += ', top=0, left=0'
	params += ', fullscreen=yes';
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, params);
	return false;
}

//-->

