
  function source(str) {
    newStr = "" ;
    for (j=0; j < 5 ; j++) {
      c=str.charAt(j) ;
      newStr += c ;
    }
    return newStr ;
  }


  function write_rr_file() {
    document.write("<span style=\"white-space:nowrap\"><a href=\"../../../localnet/public_html/railroad/gen_nts.htm\">Steve's Railroad Pages: General Site Notes</a></span>") ; 
    return anchor ; 
  }


  function write_rr_uri() {
    document.write("<span style=\"white-space:nowrap\"><a href=\"http://members.localnet.com/~docsteve/railroad/gen_nts.htm\">Steve's Railroad Pages: General Site Notes</a></span>") ;
    return anchor ; 
  }

  function referrer() {
    document.writeln("\<table summary=\"Format location and return buttons\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
    document.writeln("  \<tr>\n  \<td colspan=\"3\">\<hr />\</td>\n  \</tr>");
    document.writeln("  \<tr>\n  \<td>You are here: \</td>\<td>&nbsp;&nbsp;\</td>\<td>" + document.URL + "\</td>\n  \</tr>");
    document.writeln("  \<tr>\n  \<td>You came from here:\</td>\<td>&nbsp;&nbsp;\</td>\<td>" + document.referrer + "\</td>\n  \</tr>");
    document.writeln("  \<tr>\n  \<td colspan=\"3\">[ \<a href= " + document.referrer + " >return to " + document.referrer + " \</a> ]\</td>\n  \</tr>\n\</table>");
  }

  function referrer_short() {
    document.writeln(" [ \<a href= " + document.referrer + " >return to referring page \</a> ] ");
  }


  function write_margin_table_rr_site_guide() {
    table_width=100*(600/screen.width);
    if (table_width > 98.0) {table_width = 98.0}
    document.write("</td></table>")
    document.write("<table width=\"" + table_width + "%\" border=\"1\" rules=\"none\" cellspacing=\"0\" cellpadding=\"8\" align=\"center\" bgcolor=\"#ffffff\">")
    document.write("  <tr><td colspan=\"3\" bgcolor=\"#ffffdd\">") 
  }


