<!--
var flag = ( navigator.userAgent.indexOf("MSIE") >=0 && parseInt( navigator.appVersion ) >= 4);
var eOpenMenu = null;
var eOpenSubMenu = null;

function ajaxSend(ajaxMethod, ajaxUrl, ajaxDiv, ajaxOutput)
{ function ajaxObject()
{ if (document.all && !window.opera)
{ obj = new ActiveXObject("Microsoft.XMLHTTP"); }
else
{ obj = new XMLHttpRequest(); }
return obj; }
var ajaxHttp = ajaxObject(); ajaxHttp.open(ajaxMethod, ajaxUrl); ajaxHttp.onreadystatechange = function()
{ if(ajaxHttp.readyState == 4)
{ var ajaxResponse = ajaxHttp.responseText; if (ajaxOutput == "innerHTML")
{ document.getElementById(ajaxDiv).innerHTML = ajaxResponse; }
else if (ajaxOutput == "value")
{ document.getElementById(ajaxDiv).value = ajaxResponse; }
}
}
ajaxHttp.send(null);}

function openMenus() {
	if ( flag )	{
		document.onmouseover=mouseover;
		document.onmouseout=mouseout;
		drawmenus();
	}
}

function OpenMenu(eSrc,eMenu)
{
	// need this for mac
	// eMenu.style.top = divMenuBar.offsetHeight + divMenuBar.offsetTop ;
	//
	eMenu.style.visibility = "visible";
	eOpenMenu = eMenu;
	
	// setSelectBoxes("hidden");
}

function OpenSubMenu(eSrc,eMenu)
{
	// need this for mac
	// eMenu.style.top = divMenuBar.offsetHeight + divMenuBar.offsetTop ;
	eMenu.style.visibility = "visible";
	eOpenSubMenu = eMenu;
	
	// setSelectBoxes("hidden");
}

function setSelectBoxes(myopt)
{
	// this to hide select boxes that shine through menus //
	var allSelectBoxes = document.all.tags("select");
	if(allSelectBoxes) {
		for(x=0;x<allSelectBoxes.length;x++) {
			allSelectBoxes[x].style.visibility=myopt;
		}
	}
}

function CloseMenu(eMenu)
{
	eMenu.style.visibility = "hidden";
	eOpenMenu = null;
	// setSelectBoxes("visible");
}

function CloseSubMenu(eMenu)
{
	eMenu.style.visibility = "hidden";
	eOpenSubMenu = null;
	// setSelectBoxes("visible");
}

function setmsg(msg) 
{
	window.status = msg;
	return true;
}

function mouseover()
{
	if ( flag )
		{
		var eSrc = window.event.srcElement;

		if ( eSrc.className == "clsMenuBarItem" )	{
			var eMenu = document.all[eSrc.id.replace("tdMenuBarItem", "divMenu")];
			if (eOpenMenu && eOpenMenu != eMenu) 
				CloseMenu(eOpenMenu);
				
			if (eOpenSubMenu && eOpenSubMenu != eMenu) 
				CloseSubMenu(eOpenSubMenu);
				
			if (eMenu) 
				OpenMenu(eSrc,eMenu);
				}
				
		else if ( eSrc.className == "clsSubMenuItem" ) {
			var eMenu = document.all[eSrc.id.replace("aSubMenuItem", "divSubMenu")];
			if (eOpenSubMenu && eOpenSubMenu != eMenu) 
				CloseSubMenu(eOpenSubMenu);
				
			if (eMenu) 
				OpenSubMenu(eSrc,eMenu);
				}	
				
		else if (eOpenMenu && !eOpenMenu.contains(eSrc) && !divMenuBar.contains(eSrc)) {
				if ( eOpenSubMenu )
					return true;
				else
					CloseMenu(eOpenMenu);
				}
				
		else if (eOpenSubMenu && !eOpenSubMenu.contains(eSrc)) {
				CloseSubMenu(eOpenSubMenu);
				}
		}
}

function mouseout()
{
	if ( flag )	{
		var eSrc = window.event.srcElement;
	}
}	

function drawmenus()
{
	var str='';

	
	if ( flag )	{
	
	str += '<div id="divMenuA" class="clsMenu" style="left:635;">';
	str += '<a href="./default.asp?nav=2008">Handbooks for 2008</a><br>';
	str += '<a href="./default.asp?nav=2007">Handbooks for 2007</a><br>';
	str += '<a href="./default.asp?nav=2006">Handbooks for 2006</a><br>';
	str += '<a href="./default.asp?nav=2005">Handbooks for 2005</a><br>';
	str += '</div>';
	
	document.write( str )
	}
}

function Redirect(url) {
	location.replace(url);
}

function Goback() {
	history.back();
}

function PopLookup(url)	{
	window.open(url,"Lookups","height=300,width=500,left=150,top=120,scrollbars=yes, resizable=yes");
}

function PopEdit(url)	{
	window.open(url,"PopEdit","height=500,width=700,left=25,top=25,scrollbars=yes, resizable=yes");
}

function PopReport(url)	{
	window.open(url,"Reports","height=500,width=600,left=50,top=20,scrollbars=yes, resizable=yes");
}

function PopWindow(url,name,hit,wid,lft,top) {
	var optiontxt
	optiontxt = "height=" + hit + ",width=" + wid + ",left=" + lft + ",top=" + top + ",scrollbars=yes,toolbar=no,resizable=yes";
	window.open(url,name,optiontxt);
}

function Popdown() {
	window.close();
}

function Confirmdelete(url) {
	var truthBeTold, msgtxt
	msgtext = "Are you sure you want to delete this entry?";
	truthBeTold = window.confirm(msgtext);
	if (truthBeTold) {
		document.location.href = url;
	}
}

function confirmList(url,cnt) {
	var truthBeTold, msgtxt
	if (parseInt(cnt) > 50) {
		msgtext = "Are you sure you want to list all " + cnt + " records?";
		truthBeTold = window.confirm(msgtext);
		}
	else {
		truthBeTold = true;
		}
	if (truthBeTold) {
		location.replace(url);
	}
}

function Setfocus(frm,ele) {
	document.forms[frm].elements[ele].focus();
}

function showDiv(ID) {
	var divname;
	divname = eval(ID);
	if (divname.style.visibility == "visible") {
		divname.style.visibility = "hidden";
		}
	else {
		divname.style.visibility = "visible";
	}
}

function selectAll() {
for (var i=0; i < document.forms[0].elements.length; i++)
		document.forms[0].elements[i].checked=!document.forms[0].elements[i].checked;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function doMouseOver(pid, tid)
{
  var picElement = document.getElementById(pid);
  var textElement = document.getElementById(tid);
  picElement.src = 'images/buttono.gif';
  textElement.style.textDecoration = 'underline';
}

function doMouseOut(pid, tid)
{
  var picElement = document.getElementById(pid);
  var textElement = document.getElementById(tid);
  picElement.src = 'images/buttonn.gif';
  textElement.style.textDecoration = 'none';
}

function doMouseDown(pid, tid)
{
  var picElement = document.getElementById(pid);
  var textElement = document.getElementById(tid);
  picElement.src = 'images/buttond.gif';
  textElement.style.textDecoration = 'underline';
}

function doMouseUp(pid, tid)
{
  var picElement = document.getElementById(pid);
  var textElement = document.getElementById(tid);
  picElement.src = 'images/buttonn.gif';
  textElement.style.textDecoration = 'underline';
}

//-->

