﻿/// <reference name="MicrosoftAjax.js" />

// Test to see if this browser supports cookies:

function cookieTest(label) {
    var cooks = false;
    if( navigator.cookieEnabled ) {
        cooks = true;
    }
    else {
        if( typeof document.cookie == "string" ) {
            if( document.cookie.length == 0) {
                document.cookie = "test";
                cooks = (document.cookie == "test");
                document.cookie = "";
            }
            else {
                cooks = true;
            }
        }
    }
    if(!cooks) {
        alert("Cookies are disabled!  They are necessary to log in!");        
        label.style.display = "";
    }
}

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
