Check for Cookies enabled

<!-- Checking if cookies enabled -->   
<script type="text/javascript">
    document.cookie = "cookiesEnabled=true";
    if (document.cookie.indexOf("cookiesEnabled") == -1) {
        document.getElementById("noCookiesAlert").style.display = "block";
    }
</script>