
function hhotelPTC(val, lg, codeprice, codetrack, cluster)
{
var waction = "http://www.fastbooking.co.uk/DIRECTORY/";
waction += "preresa.phtml?Hotelnames="+val;
if (lg != "") waction += "&langue="+lg;
if (codeprice!= "") waction += "&FSTBKNGCode="+codeprice;
if (codetrack != "") waction += "&FSTBKNGTrackLink="+codetrack;
if (cluster != "") waction += "&clustername="+cluster;
window.open(waction,"reservation","toolbar=no,width=400,height=350,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes");
}

function tornaCorporate(param,param1,param2,param3,lng) {
	if (window.parent.opener && !window.parent.opener.closed) {
		window.parent.opener.focus();
		window.parent.opener.location.href="http://www.lungarnohotels.com/default.asp?SZ="+param+"&RG="+param1+"&AR="+param2+"&PC="+param3+"&lng="+lng+"";
	} else {
		var winl = self.screen.width;
		var wint = self.screen.height;	
		newWin = window.open("http://www.lungarnohotels.com/default.asp?SZ="+param+"&RG="+param1+"&AR="+param2+"&PC="+param3+"&lng="+lng+"",'Corp','toolbar=1, width="+winl+", height="+wint+", resizable=1, location=1, status=1, menubar=1, scrollbars=1');
		newWin.moveTo(0,0);
		newWin.resizeTo(winl,wint);		
		newWin.focus();
	}
}
function goFastBooking(codice) {
	window.open('http://www.fastbooking.co.uk/DIRECTORY/crs.phtml?name='+codice, 'fastBooking', 'width=750,height=570,scrollbars=1,resizable=yes');
}
function apriMinisito(url,target) {
	var winl = self.screen.width;
	var wint = self.screen.height;
	//newWin = window.open(url, target, 'width=' + winl + ' ,height=' + wint + '');
	if (target != "_self" || target != "") {
		newWin = window.open(url, target, 'fullscreen=1');
		newWin.moveTo(0,0);
		newWin.focus();
	} else {
		window.parent.location.href= url;
	}
}

function chiudi(){
	top.close();
}
