function DisplayLogName(name) {
  var cookies=document.cookie;
  var start = cookies.indexOf(name + "=");
  var name = "";
  var start1;
  var end1;
  var tmp;
  var signed_in = -1;

  if (start != -1) {
    start = cookies.indexOf("=", start) +1;
    var end = cookies.indexOf("|", start);
    if (end != -1) {
      signed_in = cookies.indexOf("|yes", start);
      name = unescape(cookies.substring(start,end-1));
      document.write("<b>" + name + "</b>");
      if (signed_in != -1) {
        document.write("&nbsp;/&nbsp;");
        document.write("<a href=\"http://www.vdbaby.com/cgi-bin/sc/order.cgi?func=3&storeid=*22b606fae40518f65cadb015be97846c4ff992&html_reg=html\">View/Edit Account</a>");
        document.write("&nbsp;/&nbsp;");
        document.write("• <a href=\"http://www.vdbaby.com/cgi-bin/sc/order.cgi?func=4&storeid=*22b606fae40518f65cadb015be97846c4ff992&html_reg=html\">Sign Out</a>");
      }
      else
      {
        document.write(" - You are no longer signed in<br>");
      }
    }
  }
  if (signed_in == -1) {
    window.location = "http://www.vdbaby.com/cgi-bin/sc/order.cgi?func=2&storeid=*2632f0b90466a85b1c6ef551eba7d0d648409cff8b&html_reg=html";
  }
}
DisplayLogName("ss_reg_0001227322");
