// Richard A. DeVenezia
// 6/21/01
// javascript to force a content page to display in a controlling frame

must_be_framed_by="index.html";

if (top.location.href.indexOf(must_be_framed_by) == -1) {

  // assume this href has LJ<something>.html in it
  // extract <something> and pass it to controlling frame

  p1 = document.location.href.indexOf ("LJ")
  p2 = document.location.href.indexOf (".html", p1);

  id = document.location.href.substring (p1+2,p2);

  top.location.href = must_be_framed_by+"?"+id;
}
