<!--
	// this function changes the size of the text on a page.
	// TO DO: make text size persistent across all pages
	function initFontSize()
		{
		var strCurrentFontSize = loadCookie();
		document.body.style.fontSize = (strCurrentFontSize) + "px"; // change size
		}

	function setSize(i)
		{
		var strCurrentFontSize = "11";

		if (document.body.style.fontSize.length != 0)
			{strCurrentFontSize = document.body.style.fontSize.replace(/px/, "");}

		strCurrentFontSize = parseInt(strCurrentFontSize, 10);

		switch(i)
			{
			case 0:
				document.body.style.fontSize = "11px"; // rest to default
				setCookie("fontSize", 11);
				break;
			default:
				document.body.style.fontSize = (strCurrentFontSize + i) + "px"; // change size
				setCookie("fontSize", strCurrentFontSize + i);
				break;
			}
		}

	function loadCookie() {
		var cookieValue = getCookie("fontSize");
		if (cookieValue) {
			return(cookieValue);
		} else {
			return("11");
		}
	}


	// save a cookie
	function setCookie(name, value)
		{
		date = new Date();
		date.setTime( date.getTime() + (60*24*60*60*1000) );
		expires = date.toGMTString();

		document.cookie = name + "=" + escape(value) + "; expires=" + expires;
		}


	// retrieves a cookie value of given name
	function getCookie(Name)
		{
		var search = Name + "=";
		if (document.cookie.length > 0)
			{
			offset = document.cookie.indexOf(search);
			if (offset != -1)
				{
				offset += search.length;
				end = document.cookie.indexOf(";", offset);
				if (end == -1)
					{end = document.cookie.length;}
				return unescape(document.cookie.substring(offset, end))
				}
			}
		else
			{return;}
		}


	// toggle turns a span object on or off
	function toggleSpan(spanId)
		{
		var strActiveClass = "spanShow";
		var strInactiveClass = "spanHide";

		if (document.getElementById)
			{
			var objSpan = document.getElementById(spanId);

			if (objSpan.className == strInactiveClass)
				{objSpan.className = strActiveClass;}
			else
				{objSpan.className = strInactiveClass;}
			}
		}

	// toggle diable a field
	function disableField(fieldId, classMode)
		{
		if (document.getElementById)
			{
			var objField = document.getElementById(fieldId);
			objField.disabled = (classMode == "show") ? false : true;
			}
		}

	// function to control the tab-swapping
	function tabClickHandler(panel, tab)
		{
		i = -1;
		while (true)
			{
			i++;
			objTab = eval(document.getElementById("Tab_" + panel + i));

			if (objTab)
				{
				objTab.className = (i == tab) ? "Speerio-SelectedTab" : ((i > tab) ? "Speerio-RightTab" : "Speerio-LeftTab");
				document.getElementById("Panel_" + panel + i).style.display = (i == tab ? "block" : "none");
				}
			else
				{break;}
			}
		}

		/*
		This script is written by Eric (Webcrawl@usa.net)
		For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
		*/

	function printit(){
		if (window.print) {
		    window.print() ;
		} else {
		    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
			document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";
		}
	}
// -->