function swapIn(objTD,objColor) {
	objTD.style.backgroundColor = objColor;
}
function swapOut(objTD,objColor) {
	objTD.style.backgroundColor = objColor;
}
function ValidateForm(){
	formobj=document.mailform;
	if (formobj.txtname.value == "") {
		alert("Please fill in your name");
		formobj.txtname.focus();
		return false;
	}
	if (formobj.txtemail.value == "") {
		alert("The Email Address cannot be blank");
		formobj.txtemail.focus();
		formobj.txtemail.blur();
		formobj.txtemail.select();
		return false;
	}
	if (formobj.txtcomments.value == ""){
		alert("Please leave a message");
		formobj.txtcomments.focus();
		return false;
	}
}
function Zoom(imgName,imgWidth,imgHeight) {
	var imgtop;
	var imgleft;
	var zoomWindow;
	imgtop=((screen.height/2)-(imgHeight/2))-50;
	imgleft=(screen.width-imgWidth)/2;
	zoomWindow = window.open('', 'zoomWin', 'width='+imgWidth+',height='+imgHeight+',top='+imgtop+',left='+imgleft+',toolbar=0,menubar=0,location=0,scrollbars=0')
	zoomWindow.document.write("<html><head><title>Loading Image, Please Wait...<\/title><\/head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 text='",imgWidth,imgHeight,"'><center><a href='#' onClick =javascript:window.close()><img src='",imgName,"' alt='Click to Close' border='0'><\/a><\/center><\/body><\/html>")
	zoomWindow.focus()
	zoomWindow.window.resizeTo(imgWidth+8, imgHeight+29);
	zoomWindow.document.title = " M Y T I T A N I C . C O . U K "
}
window.defaultStatus = 'mytitanic.co.uk';
