<!-- Hide from old browsers

// This code controls the drop down box on the news pages. Each page calls this code
// which saves having to enter this code into every news page each time this list increases.
// The drop down box enables users to link to all other news pages when clicked on.

// This function jumps to item selected when user selects it from the drop down box

function jumpurl(form)
{
  location = form.URL.options[form.URL.selectedIndex].value;
  return true;
};


// Copyright © 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com


// This script checks the entries made on the form to see if whether empty or incorrect.
// A message is given if all correct telling user details have been sent.
// A message is also given if entries are incorrect telling user what errors have occurred.

function validate_form() {
missinginfo = "";
  validity = true; // assume valid 
  if (!check_empty(document.form.name.value))
        { validity = false; missinginfo += ("\n- Please enter your name to book on the course");}
  if (!check_empty(document.form.tel.value))
        { validity = false; missinginfo += ("\n- Please enter your contact telephone number\nso we can call you in the event of course cancellation");}
  if (!check_email(document.form.email.value))
        { validity = false; missinginfo += ("\n- Your Email Address appears to be incorrect"); }
  if (validity) {}
  else {missinginfo = ("\nINCORRECT DATA ENTRY" + "\n_____________________________\n"
 + missinginfo + "\n_____________________________" + "\n\nPlease re-enter and submit again!");
  alert(missinginfo);}

  return validity;
}

function check_empty(text) {
  return (text.length > 0); // returns false if empty
}

function check_email(address) {
  if ((address == "")
    || (address.indexOf ('@') == -1)
    || (address.indexOf ('.') == -1))
      return false;
  return true;
}


// This script came from Web-Development.Com JavaScript Site
// Located at http://www.web-development.com/jscript/code/pulldown.htm 

// This script is used to load URL (Meeting Type) chosen in drop down box, into bottom frame. 
function goTo(form) {
        var myindex=form.dest.selectedIndex
        window.open(form.dest.options[myindex].value,"bottom");
}

/*********************************************************
               M A G I C  B U T T O N S  v3.0
        http://junior.apk.net/~jbarta/tutor/buttons/
       Permission is granted to freely use this script.
 **********************************************************/

// preload images:
 if (document.images) {
 clickhelp1 = new Image(45,24); clickhelp1.src = "images/help.gif";
 clickhelp2 = new Image(45,24); clickhelp2.src = "images/helpover.gif";

 }


function hiLite(imgName,imgObjName) {
 if (document.images) {
   document.images[imgName].src = eval(imgObjName + ".src");
 }}

// --End Hiding Here -->