one = new Image();
one.src='images/menu01b.gif';
two = new Image();
two.src='images/menu02b.gif';
three = new Image();
three.src='images/menu03b.gif';
four = new Image();
four.src='images/menu04b.gif';
five = new Image();
five.src='images/menu05b.gif';
six = new Image();
six.src='images/menu06b.gif';
seven = new Image();
seven.src='images/menu07b.gif';
eight = new Image();
eight.src='images/menu08b.gif';
nine = new Image();
nine.src='images/menu09b.gif';

function swap(name, source, message)
	{
		eval("document." + name + ".src = 'images/" + source + "';");	
		window.status = message; 
	}

function mailto(domain,user) 
	{ 
		document.location.href = "mailto:" + user + "@" + domain + "?subject=Hilarys%20Four%20Seasons%20Website%20Enquiry";
	}

function pop(url,winheight,winwidth)
	{
		//Default sizes for window
		if (winheight==null) winheight='800';
		if (winwidth==null) winwidth='800';
		window.name="mainwin"
		wintype="prodwin"
		eval("window.open(url, wintype, 'toolbar=0,location=,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+winwidth+",height="+winheight+"')")
	}

function pop2(url,winheight,winwidth)
	{
		//Default sizes for window
		if (winheight==null) winheight='800';
		if (winwidth==null) winwidth='600';
		window.name="mainwin"
		wintype="prodwin"
		eval("window.open(url, wintype, 'toolbar=0,location=,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+winwidth+",height="+winheight+"')")
	}

function validate() {
	if (document.form1.Name.value.length < 4) {		alert("Please enter your Name.");				return false;	}
	if (document.form1.Telno.value.length < 6) {	alert("Please enter your Telephone Number.");	return false;	}
	if (document.form1.email.value.length < 6) {	alert("Please enter your Email Address.");		return false;	}
}

function validate2() {
	if (document.form2.Login.value.length < 8) {  alert("You have missed out some information\nPlease enter your Login Name in full\n\nThank you"); return false; }
	if (document.form2.Codeno.value.length < 6) { alert("You have missed out some information\nPlease enter your Code in full\n\nThank you"); return false; }
}
