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;");
        document.write(" <a href=\"http://jtdistributing.net/cgi-bin/sc/order.cgi?func=3&storeid=*0c05108aa696c4fc&html_reg=html\">View/Edit Account</a>");
        document.write(" | ");
        document.write("<a href=\"http://jtdistributing.net/cgi-bin/sc/order.cgi?func=4&storeid=*0c05108aa696c4fc&html_reg=html\">Sign Out</a>");
        document.write("&nbsp;");
      }
      else
      {
        document.write(" - You are no longer signed in<br>");
      }
    }
  }
  if (signed_in == -1) {
    document.write(" New Customer? <a href=\"http://jtdistributing.net/cgi-bin/sc/order.cgi?func=1&storeid=*0c05108aa696c4fc&html_reg=html\">Click here to Register</a>");
    document.write("<BR>");
    document.write(" Returning Customer? <a href=\"http://jtdistributing.net/cgi-bin/sc/order.cgi?func=2&storeid=*0c05108aa696c4fc&html_reg=html\">Click here to Sign In</a>");
    document.write("&nbsp;");
  }
}
DisplayLogName("ss_reg_0001229028");
