﻿// JScript File
function toggleLayer(whichLayer,bOnOff)
{
        //! is ued to switch the bOnOff, works right when its switched
	if (document.getElementById)
	{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		//alert(bOnOff);
                style2.display = !bOnOff? "none":"block";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
                style2.display = !bOnOff? "none":"block";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
                style2.display = !bOnOff? "none":"block";
	}
}

function getElement(sID){
	if (document.getElementById)
	{
		// this is the way the standards work
		return document.getElementById(sID);
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		return document.all[sID];
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		return document.layers[sID];
	}
}
function getXMLHttpRequest(){
    var req = null;
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        isIE = true;
        req = new ActiveXObject("Microsoft.XMLHTTP");
    }
    return req;
}