﻿/*
JavaScript function to check if browser has cookies enabled.
If not enabled, it redirects to specified page: "NoCookies.aspx"
*/


function checkCookies()
{
    var tmpcookie = new Date();
    chkcookie = (tmpcookie.getTime() + '');
    document.cookie = "chkcookie=" + chkcookie + "; path=/";
    if (document.cookie.indexOf(chkcookie,0) < 0) 
    {
        window.location = 'NoCookies.aspx';
    }             
}
