browserName = navigator.appName;browserVer = parseInt(navigator.appVersion);if (browserName == "Netscape" && browserVer>= 3) version = "n3";else version = "n2";if (browserVer >= 4) version = "n3";if (version == "n3") {
        pic1on = new Image(); pic1off = new Image();
        pic1on.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/cityon.gif"; pic1off.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/cityoff.gif";
        pic2on = new Image(); pic2off = new Image();
        pic2on.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/hotelon.gif"; pic2off.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/hoteloff.gif";
        pic3on = new Image(); pic3off = new Image();
        pic3on.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/flighton.gif"; pic3off.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/flightoff.gif";
        pic4on = new Image(); pic4off = new Image();
        pic4on.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/beachon.gif"; pic4off.src = "http://www.instantcitybreaks.com/images/www.instantcitybreaks.com/beachoff.gif";
};function img_act(imgName) {if (version == "n3") {imgOn = eval(imgName + "on.src");document [imgName].src = imgOn;}};function img_inact(imgName) {if (version == "n3") {imgOff = eval(imgName + "off.src");document [imgName].src = imgOff;}}

function displayavail (rooms, message) {
	var messages = new Array('unknown','reserved','notavail');
	for (var i = 1; i <= 3; i++) {
		if (document.getElementById(message + "-" + i)) {
			for (x = 0; x < messages.length; x++) {
				document.getElementById(messages[x] + "-" + i).style.display = 'none';
			}
			if (document.getElementById("roomtype-" + i).value != '') {
				document.getElementById(message + "-" + i).style.display = 'inline';
			} else {
				document.getElementById(message + "-" + i).style.display = 'none';
			}
		}
	}

	if (message == 'reserved') {
		document.getElementById("itinerary").style.display = 'inline';
	} else {
		document.getElementById("itinerary").style.display = 'none';
	}
}

function leadpax (name, textbox) {
	document.getElementById(textbox).value = name;
}

function disablebutton (button) {
	document.getElementById(button).disabled = true;
}
	
var newWindow;
function openwin(param,w,h) {
	if (newWindow) {
		newWindow.close();
	}
	newWindow = window.open(param,"","toolbar=no,scrollbars=yes,resizable=no,height=" + h + ",width=" + w);
	newWindow.focus();
}

function imagepop(file,key,widt,heit) {
	popupwindow = window.open(file,key,'status=yes,scrollbars=yes,resizable=no,width=' + widt + ',height=' + heit);
	popupwindow.focus();
}
