<!--

// Remember -- this page is cached!  If something goes on a lot of pages stuff it here so the
// user doesn't have to constantly reload it over and over again.

// If someone has framed us, break free
//
// This is not a procedure -- it runs when the page is loaded
//
if (window != window.top) {top.location.href = location.href;}

// Code to open small client window on request
//
// Usage startRemote(url) whre url = an actual URL
//
         var remote = null;
         var remoteUrl = null;
         var gt = unescape('%3e');

         function startRemote(url) {
//            if( !remote || remote.closed ){
              remote = window.open('', 'reviewclient', 'width=300,height=300,resizable=0,scrollbars=1,status=0');
//              remoteUrl = url;
//            }
//            else{
//               if( remoteUrl != url ) {
                  remote.location.href = url;
                  remoteUrl = url;
//               }
//            }
            remote.focus();
         }


// Sitemap Navigation
//
// If you add, change, or delete a page reference here don't forget to make the
// change to the sitemap.html page for those people who don't have or don't use
// javascript!!!!!
//
function sitemap() {
   document.writeln('<select name=siteselector onChange="var scratch=this.options[this.selectedIndex].value; this.selectedIndex=0;  document.location=scratch">');
   //the force change to site map before changing document location ensures document is reset if user presses the back button
   document.writeln('<option selected>Site Map');
   document.writeln('<option value="main.html">Home Page');
   document.writeln('<option value="index.html">Terms Of Use');
   document.writeln('<option value="donations.html">Donations');
   document.writeln('<option value="authors.html">Authors');
   document.writeln('<option value="archives.html">Collections');
   document.writeln('<option value="http://assm.asstr.org">ASSM Archives');
   document.writeln('<option value="upanddown.html">New Uploads/Top Downloads');
   document.writeln('<option value="search.html">Search');
   document.writeln('<option value="ftp://ftp.asstr.org">Enter FTP site');
   document.writeln('<option value="faqs.html">F.A.Q.s');
   document.writeln('<option value="news.html">Site News Archive');
   document.writeln('<option value="utilities.html">Utilities');
   document.writeln('<option value="mailto:admin@asstr.org")>E-Mail');
   document.writeln('</select>');
   return true;
}

function setfocus() {
  if( document.f ){
    if( document.f.search ){
        document.f.search.focus();
    }
    else if( document.f.pubname ){
        document.f.pubname.focus();
    }
    else if( document.f.amount ){
        document.f.amount.focus();
    }
  }
}

// Sets the status bar of the client's web browser.  Compatible with
// both IE and NS, courtesy of:
// http://www.cryer.co.uk/resources/javascript/script2.htm
function TimStatus(message)
{
  status=message;
}
function SetStatus(message)
{
  status=message;
  setTimeout('TimStatus("'+message+'")',1);
}
function selectAll(cbList,bSelect) {
 for (var i=0; i<cbList.length; i++) 
   cbList[i].selected = cbList[i].checked = bSelect
}

function reverseAll(cbList) {
  for (var i=0; i<cbList.length; i++) {
    cbList[i].checked = !(cbList[i].checked) 
    cbList[i].selected = !(cbList[i].selected)
  }
}
//-->
