<script language='JavaScript1.1' type='text/javascript'>
<!--
document.cookie = "is_cookie=yes";
//-->
</script>
<?php
if($_COOKIE['is_cookie'] != "yes") echo "Cookie выключены, JavaScript выключен";
else echo "Cookie включены, JavaScript включен";
?>