﻿function cc()
{
  document.cookie="tempcookieyum;";  
  
 /* check for a cookie */
  if (document.cookie.indexOf("tempcookieyum") == -1) 
  {
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
    alert("Please enable cookies by visiting:http://www.google.com/cookies.html");

    /* If the user has Cookies disabled an alert will let him know 
        that cookies need to be enabled to log on.*/ 

    document.aspnetForm.cookieexists.value ="false";
  } 
  else 
  {
   /* this sets the value to true and nothing else will happen,
       the user will be able to log on*/
    document.aspnetForm.cookieexists.value ="true";
  }
 /* Set a cookie to be sure that one exists.
   Note that this is outside the function*/

}




