// JavaScript Document
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function showlayer(elementid) {
document.getElementById(elementid).style.visibility = 'visible';
}
function hidelayer(elementid) {
document.getElementById('projects').style.visibility = 'hidden';
document.getElementById('catalogues').style.visibility = 'hidden';
}
function sendmail() {
var recipient = "breid";
var domain = "@northumberland.gov.uk";
var address = recipient+domain;
parent.location = "mailto:" +address;
}
function openwindow(image) {
if (image == "northumberland") 
	{
	height = "486";
	width = "340";
	}
if (image == "kite") 
{
	height = "500";
	width = "335";
}
DispWin = window.open('','NewWin','toolbar=no,status=no,width=500,height=600')
message = "<html><head><title>Cara Lockhart Smith</title></head>\n";
message += "\n<body bgcolor=\"#566094\"><center>\n";
message += "<img src=\"big_images/";
message += image;
message += ".jpg\" height=\"" + height + "\" width=\"" + width + "\">";
message += "\n<br><br><input type=button value=close onclick=\"window.close();\">\n</center>\n<\/body>\n<\/html>";
DispWin.document.write(message);
}
function checkform() {
	if (document.guestbook.name.value == "") {
		alert("Please enter your name.");
	return false;
	}
	if (document.guestbook.comment.value == "") {
		alert("Please enter a comment.");
	return false;
	}
	if (document.guestbook.country.value == "") {
		alert("Please enter your country.");
	return false;
	}
return true;
}
function clearform()
{
document.guestbook.town.value = "";
document.guestbook.country.value = "";
document.guestbook.email.value = "";
document.guestbook.name.value = "";
document.guestbook.comment.value = "";
}
function sendform()
{
guestbook.submit();
}
//-->
