   //  for Setting a Cookie Example
   function MakeCookie(name, value, days, path, domain, secured)
   {      
      var expire = new Date();
	  if(!days){
	     var days = 1;
	  }
	  expire.setTime(expire.getTime() + days*24*60*60*1000);
      document.cookie = name + "=" + escape(value) +
          "; expires=" + expire.toUTCString() +
          ((path) ? "; path=" + path : "") +
          ((domain) ? "; domain=" + domain : "/") +
          ((secured) ? "; secure" : "");
   }

   // checks for input error calls MakeCookie
   function ClearCookieInput(name, value, days, path, domain, secured){
      if(!isNaN(value))
      {
	      alert("Please Enter Your Name, \n\n\t Thank You");
   		  document.SetCookieA.unameA.value = "";
		  document.SetCookieB.unameB.value = "";
		  return;
	  }
      MakeCookie(name, value, days, path, domain, secured);
   }


   function GetCookie(Name)
   {
      var dc = document.cookie;
      // add '=' to Cookie name, set as variable 'find'
      var find = Name + "="
      // if there are any cookies
      if (dc.length != 0)
      { 
         var start = dc.indexOf(find);
      }
      // if Cookie found:
      if (start != -1)
	  { 
         // set start to beginning of value
		 start += find.length;
         // set stop to end of cookie value
         var stop = dc.indexOf(";", start);
         if (stop == -1)
		 {
            stop = dc.length;
		 }	
         return unescape(dc.substring(start, stop));
      }
   }
   
   function ShowCookie(name)
   {
   
      var cookievalue = GetCookie(name);
      if(cookievalue != undefined)
	  {
         document.ShowCookieForm.DisplayCookie.value = cookievalue;
	  } else {
	     document.ShowCookieForm.DisplayCookie.value = "";
	  } 
	 
	   //document.ShowCookieForm.DisplayCookie.value = GetCookie(name); 
   }
   
   function DeleteCookie(name, path, domain)
   {      
      var expire = new Date();
	  expire.setTime(expire.getTime() - 1000);
      document.cookie = name + "=" + "" +
          "; expires=" + expire.toUTCString() +
          ((path) ? "; path=" + path : "") +
          ((domain) ? "; domain=" + domain : "/");
	  if(ShowCookie)
	  {
	     ShowCookie(name);
	  }
   }
   

function CreateID()
{
	ClearCookieInput('harbourgreenplace', "53463ID3223552D", "3")
}
