<!-- hide from old browsers

var days = new Array();
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

var months = new Array();
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";


var url="http://www.marmaxproducts.co.uk"
var title="Marmax Products"
function addfave() {
if (document.all)
window.external.AddFavorite(url,title)}

function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TR")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}

function changeImage(newImg) {
	document.ProdID.src = "products/" + newImg + ".jpg";
}

function noimgnormal(imgPath) {
	eval(imgPath).src = "products/noimg.jpg";
}

function noimgsmall(imgPath) {
	eval(imgPath).src = "products/noimgt.jpg";
}

self.name = "main";
function openWin(width, height, imagewidth, imageheight, pic) {
        picWin = open("", "popup", "width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,location=no,scrollbars=yes,resizable=no,menubar=no");
        picWin.document.open();
        picWin.document.clear();
        picWin.document.writeln("<html><head><title>Marmax Products</TITLE></head><body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><table width=\"100%\" height=\"100%\" cellpadding=0 cellspacing=0 border=0><tr><td valign=\"middle\" align=\"center\"><img src=\"products/" + pic + "p.jpg\" width=\"" + imagewidth + "\" height=\"" + imageheight + "\" alt=\"enlarged image\"></td></tr><tr><td align=\"center\"><FONT SIZE=\"1\" FACE=\"Verdana,Helvetica,Arial,MS Sans Serif\" COLOR=\"#000000\"><a href=\"#\" onClick='self.close()'>close this window</a></FONT></td></tr></table></body></html>");
        picWin.document.close();
}

<!-- //hide the script
function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}


function comp_validator(theForm)
{

 	if(theForm.caption.value == "") {
 		 alert("Please enter an answer.");
 		 theForm.caption.focus();
 		 return(false);
 	}

 	if(theForm.yourname.value == "") {
 		 alert("Please enter your name.");
 		 theForm.yourname.focus();
 		 return(false);
 	}

	if(!checkEmail(theForm.youremail.value)) {
		 alert("Please enter a valid Email Address");
		theForm.youremail.focus();
		 return false;
	}


	return (true);
}
// end script hiding -->


// - end hiding -->
