/* useful functions */

function GoTo(url) {
	location.href = url;
	return void 0;
}

function City(selField) {
	var call = new String();
	var w = selField.options[selField.selectedIndex].value;

	if ( w == "NULL" ) {
		alert("Please select the city you wish to visit.");
		return false;
	}

	call = "http://www.romereservation.com/search.php?from=apt&city=" + w + "&lg=";

	return call;
}

function gbi(imgUrl, w, h, num, numtot, name) {
	LeftPos = (screen.width) ? (screen.width-w)/2 : 0;
	TopPos = (screen.height) ? (screen.height-h)/2 : 0;
	winUrl = 'view-th.php?photo=' + imgUrl + '&num=' + num + '&numtot=' + numtot + '&msw=' + w + '&msh=' + h + '&name=' + name;
	winName = 'rr';
	wid = (w*1/1+20);
	hei = (h*1/1+60);
	winProp = 'width=' + wid + ',height=' + hei + ',left=' + LeftPos + ',top=' + TopPos + ',menubar=no,toolbar=no';
	window.open(winUrl, winName, winProp);
}