<!-- Begin
function GetCookie(name)
{
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;

  while (i < clen) {
    var j = i + alen;

    if (document.cookie.substring(i, j) == arg)
      return GetCookieVal(j);

    i = document.cookie.indexOf(" ", i) + 1;

    if (i == 0)
      break;
  }

  return null;
}

function GetCookieVal(offset)
{
  var endstr = document.cookie.indexOf(";", offset);

  if (("" + endstr) == "" || endstr == -1)
    endstr = document.cookie.length;

  return unescape(document.cookie.substring(offset, endstr));
}

function SetCookie(name, value, expires, path, domain)
{
  document.cookie = name + "=" + escape(value) +
  ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
  ((path == null)    ? "" : "; path=" + path) +
  ((domain == null)  ? "" : "; domain=" + domain);
}


function DynamicCorreu(nom,usuari,hostname,hostext,text,assumpte,cos)
{
        // Constants per "amagar" les paraules clau

        c1="mai";
        c2="lto";

        if (text == "")
        {
                text = usuari + "@" + hostname + "." + hostext;
        }

        parametres = "?subject=" + assumpte + "&body=" + cos;
        AnchorHREF = "<A HREF='" + c1 + c2 + ":" + nom + " <" + usuari + "@" + hostname + "." + hostext + ">" + parametres + "'>" + text + "</A>";

        document.write(AnchorHREF);
}

//  End -->
