<html>
<head>

<script language="JavaScript">
    function debug(msg)
    {
        var span = document.createElement("span");
        span.innerHTML = msg + '<br>';
        document.getElementById("console").appendChild(span);
    }

    function runTests()
    {
        debug("This page was successfully loaded.");
        debug("My protocol is " + window.location.protocol);

        if(document.referrer == "")
            debug("My referrer is blank");
        else
            debug("My referrer is NOT blank");
    }
</script>

</head>
<body onLoad="runTests()">
<div id="console"></div>
</body>

</html>

