function subscribe()
{
	var subscribeHTML = "<form id='subscribeNewsletters' method='post' action='\/sendmail.php'>"
	+ "<table id='subscribeTable' cellpadding='0' cellspacing='0' border='0'>"
	+ "<tr>"
	+ "<td>Subscribe to our newsletters:<\/td>"
	+ "<td><input id='subscribeName' value='Enter Name' type='text' name='name' title='Enter name' onfocus=\"clickclear(this, 'Enter Name')\" onblur=\"clickrecall(this, 'Enter Name')\"' \/><\/td>"
	+ "<td><input id='subscribeEmail' value='Enter Email Address' type='text' name='email' title='Enter email address' onfocus=\"clickclear(this, 'Enter Email Address')\" onblur=\"clickrecall(this,'Enter Email Address')\" \/><\/td>"
	+ "<td><label for='general'>General:&nbsp;<input class='checkbox' id='general' name='general' title='Choose general newsletter' type='checkbox' value='Yes please' \/><\/label><\/td>"
	+ "<td><label for='lifestyle'>Lifestyle:&nbsp;<input class='checkbox' id='lifestyle' name='lifestyle' title='Choose lifestyle newsletter' type='checkbox' value='Yes please' \/><\/label><\/td>"
	+ "<td><label for='corporate'>Corporate:&nbsp;<input class='checkbox' id='corporate' name='corporate' title='Choose corporate newsletter' type='checkbox' value='Yes please' \/><\/label><\/td>"
	+ "<td>"
	+ "<a href='javascript:document.forms[\"subscribeNewsletters\"].submit();' title='Subscribe to our newsletters' id='submitButton'><span class='graphicLinkText'>Subscribe<\/span><\/a><\/td>"
	+ "<td><input type='hidden' name='form_type' id='form_type' value='newsletter' \/><\/td>"
	+ "<td><input type='hidden' name='email_to' id='email_to' value='newsletter' \/><\/td>"
	+ "<\/tr>"
	+ "<\/table>"
	+ "<\/form>";
	document.write(subscribeHTML);
}

function clickclear(thisfield, defaulttext, color) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
		if (!color) {
			color = "383838";
		}
		thisfield.style.color = "#" + color;
	}
}
function clickrecall(thisfield, defaulttext, color) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
		if (!color) {
			color = "808285";
		}
		thisfield.style.color = "#" + color;
	}
}
// JS replacement for _blank
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

// JS copyright notice
function copyrightNotice() {
document.writeln('<ul id="copyright">');
document.writeln('<li>');
document.write('&copy; ');
document.write(new Date().getFullYear());
document.writeln(' Stapleford Park');
document.writeln('</li>');
document.write('</ul>');
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0
	centreWindow=eval("window.open(theURL,winName,features)");
	width=(screen.width/2)-200;
	height=(screen.height/2)-95;
	centreWindow.window.moveTo(width,height);
}