﻿function hideDiv(id) {
    document.getElementById(id).style.display = 'none';
    return false;
}

function cc() {
    /* check for a cookie */
    if (document.cookie == "") {
        /* if a cookie is not found - alert user - change cookieexists field value to false */

        /* If the user has Cookies disabled an alert will let him know that cookies need to be enabled to log on.*/
        //document.form1.cookieexists.value = "false"
        document.getElementById('cookiepanel').style.display = 'block';
        //alert("COOKIES not enabled!");
    } else {
        /* this sets the value to true and nothing else will happen, the user will be able to log on*/
        document.getElementById('cookiepanel').style.display = 'none';
        //alert("COOKIES enabled!");
    }
}