function GetCookie() {
        strName = "varCook";
        if (document.cookie.indexOf(strName) == -1)
        {
								if (confirm("Your browser may not be setup to accept cookies which may create problems viewing this site. Do you wish to view instructions on how to set your browser to accept cookies?")) {
									openPopupWindow("http://www.google.com/support/websearch/bin/answer.py?hl=en&answer=35851", 800, 600, true, false);
								}
                return false;
        }
        else
        {
        cookieStart = document.cookie.indexOf(strName);
        cookieValStart = (document.cookie.indexOf("=", cookieStart) + 1);
        cookieValEnd = document.cookie.indexOf(";", cookieStart);
        if (cookieValEnd == -1)
                {
                cookieValEnd = document.cookie.length;
                }
        cookieValue = document.cookie.substring(cookieValStart, cookieValEnd);
        }
        if (cookieValue = "True")
        {
                return ("True");
        }
}
function SetCookie(name,value,expires,path,domain,secure)
{
        strDNS = GetDNS();
        document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() + 1000*60*20 : "") +
        ( (path) ? ";path=" + path : "") +
        //( (domain) ? ";domain=" + domain : "") +
        ( (domain) ? ";domain=" + strDNS : "") +
        ( (secure) ? ";secure" : "");
            return true
}
function GetDNS()
{
        cookieDomain = document.location.hostname;
}
function CheckCookiesEnabled()
{
        SetCookie('varCook','True','','/','','');
        if (GetCookie() == "True"){
                return true;
        } else {
                return false;
        }
}
