function ShowNews() {
   document.writeln('Download+ 6.0');
   }
 
function UpdateForm() {
   if (!document.cookie)
      return;
 
   var testNickName = getCookie("nickname");
   var testTown = getCookie("town");
   var testSignature = getCookie("signature");
 
   if (testNickName != null)
      document.postform.nickname.value = testNickName;
   if (testTown != null)
      document.postform.town.value = testTown;
   if (testSignature != null)
      document.postform.signature.value = testSignature;
   }
   
function getCookie(name) {
  var prefix = "fs_" + name + "="
  var StartIndex = document.cookie.indexOf(prefix)
  if (StartIndex == -1)
    return null
  var EndIndex = document.cookie.indexOf(";", StartIndex + prefix.length)
  if (EndIndex == -1)
    EndIndex = document.cookie.length
  return unescape(document.cookie.substring(StartIndex + prefix.length, EndIndex))
  }
  
function SaveForm() {
  setCookie("nickname", document.postform.nickname.value, 30);
  setCookie("town", document.postform.town.value, 30);
  setCookie("signature", document.postform.signature.value, 30);
  }
  
function setCookie(NameOfCookie, value, expiredays) { 
  var ExpireDate = new Date ();
  ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
  document.cookie = "fs_" + NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
  }
  
