function ReadCookie(sName,sDfuValue)
{
  if (sName.length <= 0)
    return sDfuValue;
  var theCookie=document.cookie;

  var iP1 = theCookie.indexOf((escape(sName)+"="));

  if (iP1 != -1)
  {
    iP2 = theCookie.indexOf(';',iP1);
    if (iP2 == -1)
      iP2 = theCookie.length;
    if (iP2 != -1)
    {
      sDfuValue = unescape(theCookie.substring(iP1+escape(sName).length+1,iP2));
    }
  }
  return sDfuValue;
}

