function historyChange(newLocation, historyData) {

    //alert("************** A history change has occurred - newLocation = '" + newLocation + "'     historyData = " + historyData);


    if (!dhtmlHistory.isIE8 && !dhtmlHistory.isChrome) { 
        if (newLocation == "") {
            //alert("show home page");

            // THIS WORKS JUST FINE
            //var myDiv = document.getElementById("contentPane");
            //myDiv.innerHTML = "<div id=\'contentPane\' style=\"top:0px;left:0px;width:100%;height:100%;border:0px;\"><img src=\"images/New Home Page.jpg\" alt=\"Header\" width=\"100%\" height=\"100%\"/></div>";

            location.reload(true);
        }
        else
            ajaxpage(newLocation, 'contentPane');  // historyData null when returning from another website
    }
    else {
        // The following declaration sets the hash property to a variable containing the URL fragment to be saved. 
        
        //alert("IE8 historychang - show new page");

        if (newLocation == "")
            window.history.go(-1);
        else
            ajaxpage(window.location.hash, historyData);
    }

}
/***************************************************************/
/* Our event handler to add history change events */
addHistoryEvent = function (newLocation, containerID) {

    //alert("*************  addHistoryEvent - newLocation =" + newLocation + "     containerID = " + containerID);

    if (!dhtmlHistory.isIE8 && !dhtmlHistory.isChrome) {
        dhtmlHistory.add(newLocation, containerID);
        ajaxpage(newLocation, containerID);
        return;
    }

    ajaxpage(newLocation, containerID);
    window.location.hash = newLocation;

}
/***************************************************************/
// This function is called in IE8 anytime a Menu Option is selected or the Back or Forward Button is pressed.
function HashChangeHandler() {
    var hash = window.location.hash

    //alert("enter HashChangeHandler - hash = '" + hash + "'      href = " + location.href);

    if (!dhtmlHistory.isIE8 && !dhtmlHistory.isChrome) return; // historyChange will now be called by the browser - see historyctrl.js

    if (window.location.hash == "") {
        location.reload(true);
        return;
    }
    hash = hash.replace("#", "");

    //alert("hashChangeHandler; convert hash = '" + hash + "'    - call ajaxpage()");

    ajaxpage(hash, "contentPane");
    window.location.hash = hash;


} // end function
/***************************************************************/

function doSomething(page){
	//addHistoryEvent(page,"ContentPane");
	alert("do something");
}

