function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function validateForm() {
with (document.updateForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Name.value == "") alertMsg += "\nName";
if (Name.value == "Enter your name here") alertMsg += "\nName";
if (Email.value == "") alertMsg += "\nEmail address";
if (Email.value == "Enter your email address") alertMsg += "\nEmail address";
if (Name.value == "") alertMsg += "\nName";
if (Name.value == "<>") alertMsg += "\nName";
if (Email.value == "<>") alertMsg += "\nEmail address";
if (Email.value == "") alertMsg += "\nEmail address";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

function validateForm2() {
with (document.contactForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (name.value == "") alertMsg += "\nName";
if (email.value == "") alertMsg += "\nEmail address";
if (name.value == "<>") alertMsg += "\nName";
if (email.value == "<>") alertMsg += "\nEmail address";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

function validateForm3() {
with (document.webtipsForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Name.value == "") alertMsg += "\nName";
if (Email.value == "") alertMsg += "\nEmail address";
if (Name.value == "<>") alertMsg += "\nName";
if (Email.value == "<>") alertMsg += "\nEmail address";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

function validateForm4() {
with (document.domainForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Name.value == "") alertMsg += "\nName";
if (Email.value == "") alertMsg += "\nEmail address";
if (Name.value == "<>") alertMsg += "\nName";
if (Email.value == "<>") alertMsg += "\nEmail address";
if (Domain.value == "") alertMsg += "\nDomain name - e.g. www.mysite.co.nz";
if (Domain.value == "www.yoursite.co.nz") alertMsg += "\nDomain name - e.g. www.mysite.co.nz";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 



function openWindow(windowURL,windowName,windowWidth,windowHeight) {
  window.name = 'parentWnd';
  newWindow = window.open(windowURL,windowName,'width='+windowWidth+',height='+windowHeight+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');
  newWindow.focus();
}

/*
CSS Menu highlight- By Marc Boussard (marc.boussard@syntegra.fr)
Modified by DD for NS4 compatibility
Visit http://www.dynamicdrive.com for this script
*/

var ns4class=''