function testCookie() {
    //place the cookie
    var sName = "OGTEST"

    document.cookie = sName + "=OGTEST;";

    //try to retrieve cookie
    // cookies are separated by semicolons
    var aCookie = document.cookie.split(";");
    for (var i=0; i < aCookie.length; i++) {
        // a name/value pair (a crumb) is separated by an equal sign
        var aCrumb = aCookie[i].split("=");

        //if our cookie exists return true 
        if (sName == aCrumb[0]) 
            return true;
    }
    // a cookie with the requested name does not exist return false;

    alert("Your browser appears to have cookies disabled. You would need to have cookies enabled to be able to login.  If you are using IE, go to Tools->Internet Options.. to enable cookies.  If you are using Netscape, go to Edit->Preferences... (choose Advanced) to enable cookies");
    return false;
}

