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';
ten = new Image();
ten.src='images/menu10b.gif';
eleven = new Image();
eleven.src='images/menu11b.gif';
sone = new Image();
sone.src='images/smenu01b.gif';
stwo = new Image();
stwo.src='images/smenu02b.gif';
sthree = new Image();
sthree.src='images/smenu03b.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=Chepstow%20Acoustic%20Music%20Club%20Website%20Enquiry";
	}

function pop(url,winheight,winwidth)
	{
		//Default sizes for window
		if (winheight==null) winheight='480';
		if (winwidth==null) winwidth='540';
		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='620';
		if (winwidth==null) winwidth='480';
		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 pop3(url,winheight,winwidth)
{
	//Centred popup window
	if (winheight==null) winheight='480';
	if (winwidth==null) winwidth='540';
	window.name="mainwin"
	wintype="prodwin"
	var left   = (screen.width  - winwidth)/2;
	var top    = (screen.height - winheight)/2;
	var params = 'width='+winwidth+', height='+winheight;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=no';
	params += ', scrollbars=yes';
	params += ', status=no';
	params += ', toolbar=no';
	newwin=window.open(url, wintype, params);
}

function validate() {
	if (document.form1.Name.value.length < 4) { alert("You have missed out some information\nPlease enter your Full Name\n\nThank you for your interest"); return false; }
	if (document.form1.Telno.value.length < 6) { alert("You have missed out some information\nPlease enter your Telephone Number\n\nThank you for your interest"); return false; }
	if (document.form1.email.value.length < 6) { alert("You have missed out some information\nPlease enter your Email Address\n\nThank you for your interest"); return false; }
	}
function validate2() {
	if (document.formr.Login1.value.length < 1) {  alert("You have missed out some information\nPlease enter your the First Part of Your Email Name\n\nThank you"); return false; }
	if (document.formr.Login2.value.length < 2) {  alert("You have missed out some information\nPlease enter your the Second Part of Your Email Name\n\nThank you"); return false; }
	if (document.form2.Codeno.value.length < 2) { alert("You have missed out some information\nPlease enter your Code in full\n\nThank you"); return false; }
}
function validater() {
	if (document.formr.Login1.value.length < 1) {  alert("You have missed out some information\nPlease enter your the First Part of Your Email Name\n\nThank you"); return false; }
	if (document.formr.Login2.value.length < 2) {  alert("You have missed out some information\nPlease enter your the Second Part of Your Email Name\n\nThank you"); return false; }
	if (document.formr.Codeno.value.length < 6) { alert("You have missed out some information\nPlease enter your full 6 Digit Pin Code\n\nThank you"); return false; }
	if (document.formr.Telno.value.length < 11) { alert("You have missed out some information\n\nPlease enter your full Contact Telephone Number\n\nThank you"); return false; }
}
