function cc()
{
  if (document.AForm.cookie == "") 
  {
    //if a cookie is not found - alert user - change cookieexists field value to false
    alert("Cookies and Javascript need to be enabled in your browser for this form to work."); 

    //If the user has Cookies disabled an alert will let him know that cookies need to be enabled to log on.
    //document.AForm.cookieexists.value ="false"; 
    document.AForm.cookieexists.value ="false"; 

  } else {
    //this sets the value to true and nothing else will happen, the user will be able to log on
    document.AForm.cookieexists.value ="true"; 
    ////alert("COOKIES are enabled!");
  }
}

//Set a cookie to be sure that one exists. Note that this is outside the function
//document.AForm.cookie = 'killme' + escape('nothing');
document.cookie = 'killme' + escape('nothing');  

