

// break out of frames

      if (top.location != location) top.location.href = location.href; 



// Full info popup

  function details(MyID) { 
    WinWide = 650
    WinTall = 350
    PosLeft = screen.availWidth /2 - WinWide /2 
    PosTop = screen.availHeight /2 - WinTall /2 
    aWin = window.open('details.cgi?thistrack=' + MyID,
                       'MyWin1',
                       'scrollbars=yes,resizable=yes,left=' + PosLeft + ',top=' + PosTop + ',width=' + WinWide + ',height=' + WinTall);
    aWin.focus();
  }


// image pop up
// called from details page

  function MyScrn(MyID) { 
    WinWide = 660
    WinTall = 500
    PosLeft = screen.availWidth /2 - WinWide /2 
    PosTop = screen.availHeight /2 - WinTall /2 
    bWin = window.open('trackshot.cgi?mode=trackshot&thistrack=' + MyID,
                       'MyWin3',
                       'scrollbars=no,resizable=yes,left=' + PosLeft + ',top=' + PosTop + ',width=' + WinWide + ',height=' + WinTall);
    bWin.focus();
  }



// image pop up
// called from mtm2 track page

  function MyPic(MyID) { 
    WinWide = 660
    WinTall = 500
    PosLeft = screen.availWidth /2 - WinWide /2 
    PosTop = screen.availHeight /2 - WinTall /2 
    cWin = window.open('trackshot.cgi?mode=pic&thistrack=' + MyID,
                       'MyWin3',
                       'scrollbars=no,resizable=yes,left=' + PosLeft + ',top=' + PosTop + ',width=' + WinWide + ',height=' + WinTall);
    cWin.focus();
  }




// caveman and axe review
// called from mtm2 track page

  function MyRev(MyID) { 
    WinWide = 400
    WinTall = 400
    PosLeft = screen.availWidth /2 - WinWide /2 
    PosTop = screen.availHeight /2 - WinTall /2 
    xWin = window.open('review.cgi?thistrack=' + MyID,
                       'MyWin4',
                       'scrollbars=yes,resizable=yes,left=' + PosLeft + ',top=' + PosTop + ',width=' + WinWide + ',height=' + WinTall);
    xWin.focus();
  }






// sort validation

      function checkLetters() {
        if (document.iName.letter.options[document.iName.letter.selectedIndex].value == "") {
          alert("Pick a letter!");
          document.iName.letter.focus();
          return false;
        }
      }
      function checkFavs() {
        if (document.iFavorites.favorites.options[document.iFavorites.favorites.selectedIndex].value == "") {
          alert("Pick Somebody!");
          document.iFavorites.favorites.focus();
          return false;
        }
      }
      function checkSearch() {
        if (document.iSearch.search.value == "") {
          alert("Nothing to search for!");
          document.iSearch.search.focus();
          return false;
        }
      }
      function checkChecks1() {
        if (document.iSearch.track.checked == true || document.iSearch.maker.checked == true) 
          document.iSearch.file.checked = false ;
      }
      function checkChecks2() {
        if (document.iSearch.file.checked == true) {
          document.iSearch.track.checked = false ;
          document.iSearch.maker.checked = false ; 
        }
      }



// EOF




