<!-- 

function imageroll(imgNum, imgSrc)
{
// Image Changer thing
status = 'Click to view certificate';
document.images[imgNum].src = imgSrc;

}
status =  'Select a link or action.';

/* This modified example is from JavaScript: The Definitive Guide, 3rd Edition.
That book and this example were Written by David Flanagan.
They are Copyright (c) 1996, 1997, 1998 O'Reilly & Associates.This example is provided WITHOUT WARRANTY either expressed or implied.You may study, use, modify, and distribute it for any purpose,as long as this notice is retained.additional stuff added by Sheridan Dec 2000.

*/

// A utility function that returns true if a string contains only
// whitespace characters.

function isblank(s)
{
	for(var i = 0; i < s.length; i++)
	{
	var c = s.charAt(i);
     if ((c != ' ') && (c != '\n') && (c != '\t'))
	 return false;
	}
    return true;

}

// This is the function that performs form verification. It will be invoked
// from the onSubmit() event handler. The handler should return whatever
// value this function returns.

function verify(f)
{
                    var msg;
		    var empty_fields = "";
		    var errors = "";

		    // Loop through the elements of the form, looking for all
		    // text and textarea elements that don't have an "optional" property
		    // defined. Then, check for fields that are empty and make a list of them.
		    // Also, if any of these elements have a "min" or a "max" property defined,
		    // then verify that they are numbers and that they are in the right range.
		    // Put together error messages for fields that are wrong.

		    for(var i = 0; i < f.length; i++)
		    {
	             var e = f.elements[i];
		     if (((e.type == "text") || (e.type == "textarea")) && !e.optional)
		     {
		     // first check if the field is empty
		     if ((e.value == null) || (e.value == "") || isblank(e.value))
		     {
		      empty_fields += "\n          " + e.name;                continue;
		     }
		     // Now check for fields that are supposed to be numeric.

	             if (e.numeric || (e.min != null) || (e.max != null))
		     {
		     var v = parseFloat(e.value);
		     if (isNaN(v) || ((e.min != null) && (v < e.min)) || ((e.max != null) && (v > e.max)))
		     {
		     errors += "- The field " + e.name + " must be a number";
		     if (e.min != null)
		     errors += " that is greater than " + e.min;
		     if (e.max != null && e.min != null)
		     errors += " and less than " + e.max;
		     else if (e.max != null)
		     errors += " that is less than " + e.max;
		     errors += ".\n";
		     }
		     }
		     }
		     }

	// Now, if there were any errors, display the messages, and
	// return false to prevent the form from being submitted.
	// Otherwise return true.

if (!empty_fields && !errors) return true;
    msg  = "______________________________________________________\n\n"
    msg += "The form could not be submitted because of the following error(s).\n";
    msg += "Please correct these error(s) and re-submit.\n";
    msg += "______________________________________________________\n\n"
    if (empty_fields)
    {
    msg += "- The following required field(s) are empty:"                + empty_fields + "\n";
    if (errors) msg += "\n";
    }
    msg += errors;
    alert(msg);
    return false;
    }

// This is the function that performs form verification. It will be invoked
// from the onSubmit() event handler. The handler should return whatever
// value this function returns.


 
// spamop
 
 function fontPlus() {
  var style, newstyle;
  style = readCookie("style");
  if (style == 'Large') {
    newstyle = 'XLarge';
  } else if (style == 'XLarge') {
    newstyle = "XLarge";
  } else if (style == 'Small') {
    newstyle = '';
  } else if (style == '') {
    newstyle = 'Large';
  } else if (style == 'XSmall') {
    newstyle = 'Small';
  } else {
    newstyle = 'Large';
  }
  if (style != newstyle) {
    setStyle(newstyle);
  }
}

function fontMinus() {
  var style, newstyle;
  style = readCookie("style");
  if (style == 'Large') {
    newstyle = '';
  } else if (style == 'XLarge') {
    newstyle = "Large";
  } else if (style == 'Small') {
    newstyle = 'XSmall';
  } else if (style == 'XSmall') {
    newstyle = 'XSmall';
  } else {
    newstyle = 'Small';
  }
  if (style != newstyle) {
    setStyle(newstyle);
  }
}

function setStyle(title) {
  setActiveStyleSheet(title);
  createCookie("style", title, 365);
}

/* copied from  styleswitcher.js http://www.alistapart.com/articles/alternate/
*/
function setActiveStyleSheet(title) {
  if(! document.getElementsByTagName) return;
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function createCookie(name,value,days) {
  var expires;
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+((60*60*24*1000)*days));
    expires = "; expires="+date.toGMTString();
  } else {
    expires = "";
  }
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}
 
 // end of spamcop

function toggleDiv(divid)
 {
    if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
    }else{
      document.getElementById(divid).style.display = 'none';
    }
  }
 

// -->

