one = new Image();
one.src='images/tmenu1b.jpg';
two = new Image();
two.src='images/tmenu2b.jpg';
three = new Image();
three.src='images/tmenu3b.jpg';
four = new Image();
four.src='images/tmenu4b.jpg';
five = new Image();
five.src='images/tmenu5b.jpg';
six = new Image();
six.src='images/tmenu6b.jpg';
seven = new Image();
seven.src='images/tmenu7b.jpg';
eight = new Image();
eight.src='images/tmenu8b.jpg';

nine = new Image();
nine.src='images/bmenu1b.jpg';
ten = new Image();
ten.src='images/bmenu2b.jpg';
eleven = new Image();
eleven.src='images/bmenu3b.jpg';

twelve = new Image();
twelve.src='images/smenu1b.jpg';
thirteen = new Image();
thirteen.src='images/smenu2b.jpg';
fourteen = new Image();
fourteen.src='images/smenu3b.jpg';
fifteen = new Image();
fifteen.src='images/smenu4b.jpg';
sixteen = new Image();
sixteen.src='images/smenu5b.jpg';

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=RFCA%20Wales%20Website%20Enquiry";
	}

function mailsas(domain,user) 
	{ 
		document.location.href = "mailto:" + user + "@" + domain + "?subject=RFCA%20Wales%20E%20Squadron%2021%20SAS%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='800';
		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)
	{
		//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=1,resizable=1,width="+winwidth+",height="+winheight+"')")
	}

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.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.form2.Name.value.length < 6) {  alert("You have missed out some information\nPlease enter your Full Name\n\nThank you for your interest in E Squadron 21 SAS");     return false; }
	if (document.form2.email.value.length < 6) { alert("You have missed out some information\nPlease enter your Email Address\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	if (document.form2.Telno.value.length < 6) { alert("You have missed out some information\nPlease enter your Telephone Number\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	}
function validate3() {
	if (document.form3.Name.value.length < 6) {  alert("You have missed out some information\nPlease enter your Full Name\n\nThank you for your interest in E Squadron 21 SAS");     return false; }
	if (document.form3.email.value.length < 6) { alert("You have missed out some information\nPlease enter your Email Address\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	if (document.form3.Telno.value.length < 6) { alert("You have missed out some information\nPlease enter your Telephone Number\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	if (document.form3.Mobile.value.length < 6) { alert("You have missed out some information\nPlease enter your Mobile Number\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	if (document.form3.Address1.value.length < 12) { alert("You have missed out some information\nPlease enter your Address\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	if (document.form3.PostCode.value.length < 7) { alert("You have missed out some information\nPlease enter your Postcode\n\nThank you for your interest in E Squadron 21 SAS"); return false; }
	}
