function doStartUp()	{
document.ContactForm.reset();
x = document.getElementById('reservation');
		
x.style.display = "none"
var str = document.URL;
				var formState = 0
				if (str.match("toggleRes")){
				formState = 1
				}
				else if (str.match("toggleDin")){
				formState = 2
				}

if (formState==1) {
document.ContactForm.MakeReservation[0].checked = true;
x = document.getElementById('reservation');
x.style.display = "block"
}
if (formState==2) {
document.ContactForm.MakeReservation[1].checked = true;
x = document.getElementById('dinner');
x.style.display = "block"
}
}

function showReservations(toggle) {
		var r = document.getElementById('reservation');
		r.style.display = "none";
		var d = document.getElementById('dinner');
		d.style.display = "none";
		if (toggle == 1) { 
		r.style.display = "block";
	}
	if (toggle == 2) { 
		d.style.display = "block";	
	}
	else if (toggle == 3) { 
		r.style.display = "block";
		d.style.display = "block";
	}
}
		
		var hasrun = 0;
		function makeRooms() {
		a = document.getElementById('room_choices');
		b = document.getElementById('no_rooms');
		
		var rmcount = document.ContactForm.NumberOfRooms.options[document.ContactForm.NumberOfRooms.options.selectedIndex].value
		rmint = rmcount/1;
		
		if (rmint==7) {
		a.style.display = "none";
		b.style.display = "block";
		var i = 0;
		for (i>=0; i < 7; i++) {
		rmcount = ('select' + i);
		x = document.getElementById(rmcount);
		x.style.display = "block";
		}
		hasrun=7;
		}
		
		else if (hasrun > rmint) {
		
		a.style.display = "block";
		b.style.display = "none";
		i = hasrun;
		for (i>2; i > rmint && i >2; i-- ) {
		rmcount = ('select' + i);
		x = document.getElementById(rmcount);
		x.style.display = "none";
		}
		
		}
		else {
		a.style.display = "block";
		b.style.display = "none";
		var i = 3;
		for (i>2; i <= rmint; i++) {
		rmcount = ('select' + i);
		x = document.getElementById(rmcount);
		x.style.display = "block";
		}
		
		}
		hasrun = rmint;
		
		
		}
