// JavaScript Document
function openInParent(URL) {
try {
// open links to website in parent window if available, new window if not
var mywin = null;
mywin = document.parentWindow.top.opener;
if (mywin != "") {
mywin.focus();
mywin.location = URL;
} else {
var newwin = window.open(URL);
newwin.focus();
}
} catch (e) {
var newwin = window.open(URL);
newwin.focus();
}
}


function roomNumberSelection() {
document.MainForm.f204.selectedIndex = 0;
}
function numberOfRoomsSelection() {
document.MainForm.f207.selectedIndex = 0;
}

function doPost(message) {
if ((message == 'search') || (message == 'select')) {
document.MainForm.f100.value = "116";
document.MainForm.submit();
} else if (message == 'view') {
document.MainForm.f100.value = "101";
document.MainForm.submit();
} else if (message == 'find') {
document.MainForm.f100.value = "141";
document.MainForm.submit();
} else if (message == 'rules') {
document.MainForm.f100.value = "151";
document.MainForm.submit();
}
}

function setCurrentMonth(number) {
document.MainForm.f236.value = number;
document.MainForm.f100.value = "104";
document.MainForm.submit();
}
function updateCalendar(msg) {
document.MainForm.f236.value = document.MainForm.displaymonth.value;
document.MainForm.f100.value = "104";
if (msg == 1) {

} else if (msg == 2) {
document.MainForm.f241.selectedIndex = 0;

}
document.MainForm.submit();
}
function updateDetails(update) {
document.MainForm.f242.value = update;
if (update == "false") {


}
document.MainForm.f100.value = "104";
document.MainForm.submit();
}
function setSelectedDay(day,month) {
document.MainForm.f220.selectedIndex = day-1;
document.MainForm.f222.selectedIndex = month;
document.MainForm.f220.focus();
}
