<!-- HIDE FROM NON-JAVASCRIPT ENABLED BROWSERS
/*
 * Copyright (c) KevinCorr.com
 * All Rights Reserved
 */

/** ----------------------------------------------------------------------
  * Initialising image objects to be used for roll over button effect.
  * Certainly not the most generic way of creating this effect, but one
  * of the least brittle - gives good cross browser results.
  *
  * When setting up the onMouse events that will call the rollover
  * functions, remember to place them in the <A HREF> tag - in NS (<6.0)
  * onMouse events are not supported on the <IMG> tag.
  * 
  * If any buttons are to be added to the menu, they need to be initalised
  * here - remembering to give each a unique name by following the
  * sequence - link1, link2 and so on.
  * ----------------------------------------------------------------------
  */
if (document.images)
{
	// Active images
	link1on = new Image();
	link1on.src = "/_buttons/but01_on.gif";
	link2on = new Image();
	link2on.src = "/_buttons/but02_on.gif";
	link3on = new Image();
	link3on.src = "/_buttons/but03_on.gif";
	link4on = new Image();
	link4on.src = "/_buttons/but04_on.gif";
	link5on = new Image();
	link5on.src = "/_buttons/but05_on.gif";
	link6on = new Image();
	link6on.src = "/_buttons/but06_on.gif";
	
	side1on = new Image();
	side1on.src = "/_buttons/s_on01.gif";
	side2on = new Image();
	side2on.src = "/_buttons/s_on02.gif";
	side3on = new Image();
	side3on.src = "/_buttons/s_on03.gif";
	side4on = new Image();
	side4on.src = "/_buttons/s_on04.gif";
	side5on = new Image();
	side5on.src = "/_buttons/s_on05.gif";
	side6on = new Image();
	side6on.src = "/_buttons/s_on06.gif";
	side7on = new Image();
	side7on.src = "/_buttons/s_on07.gif";
	side8on = new Image();
	side8on.src = "/_buttons/s_on08.gif";
	side9on = new Image();
	side9on.src = "/_buttons/s_on09.gif";
	side10on = new Image();
	side10on.src = "/_buttons/s_on10.gif";
	side11on = new Image();
	side11on.src = "/_buttons/s_on11.gif";
	side12on = new Image();
	side12on.src = "/_buttons/s_on12.gif";
	side13on = new Image();
	side13on.src = "/_buttons/s_on13.gif";
	side14on = new Image();
	side14on.src = "/_buttons/s_on14.gif";
	side15on = new Image();
	side15on.src = "/_buttons/s_on15.gif";
	side16on = new Image();
	side16on.src = "/_buttons/s_on16.gif";
	side17on = new Image();
	side17on.src = "/_buttons/s_on17.gif";
	side18on = new Image();
	side18on.src = "/_buttons/s_on18.gif";

	// Inactive images
	link1off = new Image();
	link1off.src = "/_buttons/but01.gif";
	link2off = new Image();
	link2off.src = "/_buttons/but02.gif";
	link3off = new Image();
	link3off.src = "/_buttons/but03.gif";
	link4off = new Image();
	link4off.src = "/_buttons/but04.gif";
	link5off = new Image();
	link5off.src = "/_buttons/but05.gif";
	link6off = new Image();
	link6off.src = "/_buttons/but06.gif";
	
	side1off = new Image();
	side1off.src = "/_buttons/s1.gif";
	side2off = new Image();
	side2off.src = "/_buttons/s2.gif";
	side3off = new Image();
	side3off.src = "/_buttons/s3.gif";
	side4off = new Image();
	side4off.src = "/_buttons/s4.gif";
	side5off = new Image();
	side5off.src = "/_buttons/s5.gif";
	side6off = new Image();
	side6off.src = "/_buttons/s6.gif";
	side7off = new Image();
	side7off.src = "/_buttons/s7.gif";
	side8off = new Image();
	side8off.src = "/_buttons/s8.gif";
	side9off = new Image();
	side9off.src = "/_buttons/s9.gif";
	side10off = new Image();
	side10off.src = "/_buttons/s10.gif";
	side11off = new Image();
	side11off.src = "/_buttons/s11.gif";
	side12off = new Image();
	side12off.src = "/_buttons/s12.gif";
	side13off = new Image();
	side13off.src = "/_buttons/s13.gif";
	side14off = new Image();
	side14off.src = "/_buttons/s14.gif";
	side15off = new Image();
	side15off.src = "/_buttons/s15.gif";
	side16off = new Image();
	side16off.src = "/_buttons/s16.gif";
	side17off = new Image();
	side17off.src = "/_buttons/s17.gif";
	side18off = new Image();
	side18off.src = "/_buttons/s18.gif";

}

/** ----------------------------------------------------------------------
  * imgOn
  *
  * Remarks:
  * Changes the src file of the image element 'imgName' from the 'off'
  * image to the 'on' image
  *
  * parameters: imgName - name attribute value of image elem to manipulate
  * returns: None
  *
  * Created:    23 Jan 2003
  * Author:     Kevin Corr
  * ----------------------------------------------------------------------
  */
function imgOn(imgName)
{

	if (document.images)
	{
		document[imgName].src = eval(imgName + "on.src");
	}
}



/** ----------------------------------------------------------------------
  * imgOff
  *
  * Remarks:
  * Changes the src file of the image element 'imgName' from the 'on'
  * image to the 'off' image
  *
  * parameters: imgName - name attribute value of image elem to manipulate
  * returns: None
  *
  * Created:    23 Jan 2003
  * Author:     Kevin Corr
  * ----------------------------------------------------------------------
  */
function imgOff(imgName)
{
	if (document.images)
	{
		document[imgName].src = eval(imgName + "off.src");
	}
}


/** ----------------------------------------------------------------------
  * openWindow
  *
  * Remarks:
  * Spawns a new browser window, and opens the file found identified by
  * URL in the new window.
  *
  * parameters: url - the URL of the file to open in the new window
  * returns: None
  *
  * Created:    23 Jan 2003
  * Author:     Kevin Corr
  * ----------------------------------------------------------------------
  */
function openWindow(url)
{
	window.open(url,"","height=595,width=485,left=140,top=40,screenX=140,screenY=40,scrollbars=1'");
}


/** ----------------------------------------------------------------------
  * Function to efficiently fix elements that are not filled. 
  * ----------------------------------------------------------------------
  */
function fixElement(element, message)
{
	alert(message);
	element.focus();
}

/** ----------------------------------------------------------------------
 * isGBSignReady:
 *  1. checks elements
 *  2. submits form.
 * ---------------------------------------------------------------------- 
 */
function isGBSignReady(form)
  {
     var passed = false;
     if (form.Fname.value == "")
     {
        fixElement(form.Fname, "Please inlcude your first name.");
     } 
     else if (form.Sname.value.toLowerCase() == "viagra" || form.Fname.value.toLowerCase() == "viagra" || form.Sname.value.toLowerCase() == "cialis" || form.Fname.value.toLowerCase() == "cialis")
     {
		alert("Your spam attempt has been blocked");
     }     
     else if (form.Sname.value == "")
     {
        fixElement(form.Sname, "Please include your last name.");
     }
     else if (form.Location.value == "")
     {
        fixElement(form.Location, "Please include where you are from.");
     }
     else if (form.comment.value == "")
     {
        fixElement(form.comment, "Please inlcude a comment.");
     }
     else
     {
        passed = true;
     }
     return passed;
  }

// END HIDE -->