// this fixes an issue with the old method, ambiguous values 
// with this test document.cookie.indexOf( name + "=" );



function Get_Cookie(NameOfCookie)
{ 
   
   if (document.cookie.length > 0)
   { 
      var emptyStatus = false;
      var valueStatus = false;
      
      var emptyCookie = document.cookie.indexOf(NameOfCookie);

      if(emptyCookie != -1)
      {
         emptyStatus = true;
      }
      
      var valueCookie = document.cookie.indexOf(NameOfCookie+"=");
      if(valueCookie != -1)
      {
         valueStatus = true;   
      
      }
      
      if(valueStatus || emptyStatus)
      {
         return true;
      }
      
   }
   else
   {
      return null;
   }
}			