  tableconfig = DBASEgetField(inputrow,"tableconfig") ;
  tidymenu = ";" + DBASEgetField(inputrow,"tidymenu") + ";" ;
  tableconfig = tableconfig.replace(/\n/g,"") ;
  tableconfig = tableconfig.replace(/\r/g,"") ;
  tableconfig = tableconfig.replace(/\f/g,"") ;
  otableconfig = "" ;
  while(otableconfig != tableconfig) {
    otableconfig = tableconfig ;
    tableconfig = tableconfig.replace(/ \{\{/g,"{{") ;
    tableconfig = tableconfig.replace(/\{\{ /g,"{{") ;
    tableconfig = tableconfig.replace(/ \}\}/g,"}}") ;
    tableconfig = tableconfig.replace(/\}\} /g,"}}") ;
    tableconfig = tableconfig.replace(/ ::/g,"::") ;
    tableconfig = tableconfig.replace(/:: /g,"::") ;
    tableconfig = tableconfig.replace(/ ;;/g,";;") ;
    tableconfig = tableconfig.replace(/;; /g,";;") ;
  }
  thetables = tableconfig.split("}}")
  if ( memtype.indexOf('adm') > -1 ) {
    document.write('<div id="navadm" style="text-align:center;border-bottom:1px solid #000000;color:#000000;line-height:25px;font-size:11px;background-color:#ffffff;">');
    document.write('<a href="/">SITE HOME</a> &bull; ') ;
    document.write('<a href="/utyadm/index.html">Adm Home</a> &bull; ') ;
    document.write('<a href="/utyadm/config.html">Site</a> &bull; ') ;
    document.write('<a href="/utyadm/pdtledit.html">Self</a> &bull; ') ;
    document.write('<a href="/utyadm/usrlist.html">Users</a> &bull; ') ;
    if ( thetables.length > 0 ) {
      for(ff=0;ff<thetables.length-1;ff++) {
        if ( tidymenu.indexOf(";"+thetables[ff].split("{{")[0]+";") == -1 ) {
          document.write('<a href="/utyadm/tablelist.html?aSort=&aFilter=&table='+thetables[ff].split("{{")[0]+'">'+thetables[ff].split("{{")[0]+'</a> &bull; ') ;
        }
      }
    }
    document.write('<a href="/utyadm/tranlist2.html?aFilter=&bFilter=~&so=1">Transactions</a> &bull; ') ;
    if ( tidymenu.indexOf(";Booking;") == -1 ) document.write('<a href="/utyadm/bookings.html">Booking</a> &bull; ') ;
    document.write('<a href="/utyadm/upload.html">Files</a> &bull; ') ;
    document.write('<a href="/utyadm/upldart.html">Pics</a> &bull; ') ;
    document.write('<a href="/utyadm/upldpage.html">Pages</a> &bull; ') ;
    document.write('<a href="/allasp/pageedit.asp?a=edit&c=adm&p=/admnav.js&page='+window.location.pathname+'">Edit</a> &bull; ') ;
    document.write('<a href="/utyadm/stats.html">Stats</a> &bull; ') ;
    document.write('<a href="/utyadm-help.asp">Help</a> &bull; ') ;
    document.write('<a href="/allasp/logoff.asp">Log Off</a>') ;
    document.write('</div>') ;
  }
  if ( memtype.indexOf('rst') > -1 ) {
    document.write('<div id="navadm" style="text-align:center;border-bottom:1px solid #000000;color:#000000;line-height:25px;font-size:11px;background-color:#ffffff;">');
    document.write('<a href="/">SITE HOME</a> &bull; ') ;
    document.write('<a href="/utyrst.asp">Adm Home</a> &bull; ') ;
    document.write('<a href="/utyrst-tablelist.asp?aSort=&aFilter=&x=RestaurantNews">RestaurantNews</a> &bull; ') ;
    document.write('<a href="/utyrst-tablelist.asp?aSort=&aFilter=&x=RestaurantEvents">RestaurantEvents</a> &bull; ') ;
    document.write('<a href="/utyrst-tablelist.asp?aSort=&aFilter=&x=RestaurantMainMenu">RestaurantMainMenu</a> &bull; ') ;
    document.write('<a href="/utyrst-tablelist.asp?aSort=&aFilter=&x=RestaurantChildrensMenu">RestaurantChildrensMenu</a> &bull; ') ;
    document.write('<a href="/utyrst-tablelist.asp?aSort=&aFilter=&x=BuffetMenu">BuffetMenu</a> &bull; ') ;
    document.write('<a href="/utyrst-help.asp">Help</a> &bull; ') ;
    document.write('<a href="/allasp/logoff.asp">Log Off</a>') ;
    document.write('</div>') ;
  }
  if ( memtype.indexOf('man') > -1 ) {
    document.write('<div style="position:absolute;left:170px;top:65px;width:600px;white-space:nowrap;background-color:#ffffff;">') ;
    document.write('<a class="nav2" href="/utyman/index.html">Managers Home</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/pdtledit.html">Self</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/rooms.html">Rooms</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/availability.html">Availability</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/offers.html">Offers</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/prices.html">Prices</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/historical.html">Historical</a> &bull; ') ;
    document.write('<a class="nav2" href="/utyman/bookings.html">Bookings</a> &bull; ') ;
    /* document.write('<a class="nav2" href="/utyman/memlist.html">Customers</a> &bull; ') ; */
    document.write('<a class="nav2" href="/allasp/logoff.asp">Log Off</a>') ;
    document.write('</div>') ;
  }

