// JavaScript Document

// non-empty textbox

function isEmpty(strng) {
var error = "";
  if (strng.length == 0) {
     error = "A mandatory text area has not been filled in.\n"
  }
return error;
}

function checkWholeForm(enquiryform) {
    var why = "";
    why += isEmpty(enquiryform.Surname.value);
    why += isEmpty(enquiryform.Lastname.value);
    why += isEmpty(enquiryform.Email.value);
        why += isEmpty(enquiryform.address.value);
    why += isEmpty(enquiryform.postcode.value);

      if (why != "") {
       alert(why);
       return false;
    }
return true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


startList = function() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("dmenu");
		for (i=0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

window.onload=startList;


