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 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 (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 (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }
function validateForm3() {
with (document.memberForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Company_Name.value == "") alertMsg += "\nCompany Name";
if (Company_Phone.value == "") alertMsg += "\nCompany Phone";
if (Number_of_Employees.value == "") alertMsg += "\nNumber of Employees";
if (PhysAdd_Street.value == "") alertMsg += "\nPhysical Address: number & street";
if (PhysAdd_Suburb.value == "") alertMsg += "\nPhysical Address: suburb";
if (First_Name.value == "") alertMsg += "\nFirst name";
if (Last_Name.value == "") alertMsg += "\nLast name";
if (Email.value == "") alertMsg += "\nContact email address (even if it's the same as your company email)";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

function validateForm4() {
with (document.awardForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Company_Name.value == "") alertMsg += "\nCompany Name";
if (Contact_Person.value == "") alertMsg += "\nContact Person";
if (Company_Phone.value == "") alertMsg += "\nCompany Phone";
if (Company_Email.value == "") alertMsg += "\nCompany Email";
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=''