function getSearchData( ) {
    var results = new Object( );
    if (location.search.substr) {
        var input = unescape(location.search.substr(1));
        if (input) {

            if (input.substr(0,5) == "page=")
            results["page"] = input.substr(5);
/*
            var srchArray = input.split("&");
            var tempArray = new Array( );
            for (var i = 0; i < srchArray.length; i++) {
                tempArray = srchArray[i].split("=");
                results[tempArray[0]] = tempArray[1];
            }
*/
        }
    }
    return results;
}
function loadFrame( ) {
    if (location.search) {
        var srchArray = getSearchData( );
        if (srchArray["page"]) {
            var address = srchArray["page"];
/*
            if (address == "community")
              self.mainFrame.location.href = "http://www.doeverything.biz/community/";

            else if ( address.indexOf("http://www.doeverything.biz/courses/") != -1 )
            {
              self.mainFrame.location.href = address;
              self.frameUp.location.href = "http://www.doeverything.biz/misc/metal-background.html";
              self.frameLeft.location.href = "http://www.doeverything.biz/misc/metal-background.html";
            }
            else
*/
              alert("You are being taken to the requested page: \n" + address);
              self.mainFrame.location.href = address;
        }
    }
}
