﻿

function headerFont(){


}

/** For use with the FAQ Page**/

with (document)
{
	write("<STYLE TYPE='text/css'>");
	if (navigator.appName == 'Microsoft Internet Explorer')
		{
		write(".hiddentext {display:none}  .outline {cursor:hand; text-decoration:underline}");
		}
	write("</STYLE>");
}

// show text on click for MSIE browsers

function expandIt(whichEl)
{
	if (navigator.appName == 'Microsoft Internet Explorer')
		{
		whichEl.style.display = (whichEl.style.display == "block" ) ? "none" : "block";
		}
	else return;
}
/** End for use with the FAQ Page**/


function CreateXMLHttpRequestObject(){

/** Common Values for the ReadyState of the XMLHttpRequest object **/
var READYSTATE_UNINITIALIZED = 0;
var READYSTATE_LOADING = 1;
var READYSTATE_LOADED = 2;
var READYSTATE_INTERACTIVE = 3;
var READYSTATE_COMPLETE = 4;

/** THis function is a generic function to make an asynchronous call to an XML file.  The dummy data is ~/includes/cd_catalog.xml  **/
function MakeXMLHTTPCall()
{
    var xmlHttpObj;
    xmlHttpObj = CreateXMLHttpRequestObject();
    if (xmlHttpObj)
    {alert("In it");
        xmlHttpObj.open("GET", "http://" + location.host + "/includes/states.xml", true);
        xmlHttpObj.onreadystatechange = function()
         {
           if ( xmlHttpObj.readyState == READYSTATE_COMPLETE )
            {
               var doc = xmlHttpObj.responseXML
               var node = doc.selectSingleNode("//STATES/STATE/ABRV/text()");
               document.getElementById("divResults").childNodes[0].nodeValue = node.nodeValue;
            }

         }
         xmlHttpObj.send(null);
    }
}


/**Checking Browser Type to Determine How to Construct the XMLHttpRequest Object **/
    if (window.XMLHttpRequest)
        xmlHttpObj = new XMLHttpRequest();
    else{
         try{
               xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e)
            {
               xmlHttpObj = new ActiveXObject("Msxm12.XMLHTTP");
            }
        }
}





    
    

