<SCRIPT LANGUAGE="JavaScript">
<!--
function makeArray() {
  var args = makeArray.arguments;
  for (var i=0; i<args.length; i++) {
    this[i] = args[i];
  }
  this.length = args.length;
}

var pages = new makeArray
  ("select...",
   "A Page", "B Page",
   "C Page", "D Page ");

var urls = new makeArray
  ("main.html",
   "a.html", "b.html",
   "c.html", "d.html");

thisUrl = 0;
urlCt = urls.length - 1;

function uberNav(navigation) {
  if(navigation == "backbutton") {
    if (thisUrl > 0) {
      thisUrl--;
      parent.content.location.href = urls[thisUrl];

      for(i=0;i<pages.length;i++) {
        document.menuform.menu.selectedIndex=thisUrl;
      }
    }
  } else if (navigation == "nextbutton") {
    if(thisUrl < urlCt) {
      thisUrl++;
      parent.content.location.href = urls[thisUrl];
      document.menuform.menu.selectedIndex=thisUrl;
    }
  } else {
    i = document.menuform.menu.selectedIndex;
    if(i != 0) {
      parent.content.location.href = urls[i];
      thisUrl = i;  
    }
  }
}
//-->
</SCRIPT>