<!-- Hide script from old browsers

var div = document.getElementById('center1');

var handleSuccess = function(o) {
    YAHOO.log("The success handler was called.  tId: " + o.tId + ".", "info", "example");
    if(o.responseText !== undefined) {
        div.innerHTML = o.responseText;
        init();
    }
//YAHOO.util.Event.addListener(window, "load", init);

}

var handleFailure = function(o) {
    YAHOO.log("The failure handler was called.  tId: " + o.tId + ".", "info", "example");
    if(o.responseText !== undefined){
        div.innerHTML = "<ul><li>Transaction id: " + o.tId + "</li>";
        div.innerHTML += "<li>HTTP status: " + o.status + "</li>";
        div.innerHTML += "<li>Status code message: " + o.statusText + "</li></ul>";
    }
}

var callback = {
    success:handleSuccess,
    failure:handleFailure,
    argument: { foo:"foo", bar:"bar" }
};

function makeRequest(sUrl) {
    var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
    div.innerHTML =  "<div class=\"hd\">Loading ... Please wait.</div>";
    div.innerHTML += "<div class=\"bd\"><p style=\"text-align: center;\">";
    div.innerHTML += "<img src=\"/includes/yui/assets/skins/sam/wait.gif\" />"
    div.innerHTML += "</p></div>";
    div.innerHTML += "<div class=\"ft\"></div>";
    YAHOO.log("Initiating request; tId: " + request.tId + ".", "info", "example");
}

YAHOO.log("As you interact with this example, relevant steps in the process will be logged here.", "info", "example");

// End the hiding -->