
function formHandler(e) {
  var URL;
  for (i = 0; i < e.options.length; i++)
	if (e.options[i].selected)
	   URL = e.options[i].value;
  window.location.href = URL;
}

var remote = null;
function showCourse(asan) {
   remote = window.open("", "TheRemote", "width=500,height=400,resizable=1,scrollbars=yes"); 
   if (remote != null) {
      if (remote.opener == null) {
            remote.opener = self;
      }
      remote.location.href = asan + ".html";
   }
}
// for background colors assoc with each button
var colorArray = new Array(3);
colorArray["one"] = "red";
colorArray["two"] = "#99ffff";
colorArray["three"] = "green";
colorArray["four"]  = "#000080";
colorArray["five"]  = "#000080";
colorArray["six"]   = "#000080";
colorArray["seven"] = "#000080";
colorArray["eight"] = "#000080";
colorArray["nine"]  = "#000080";
colorArray["ten"]   = "#000080";
colorArray["eleven"]   = "#000080";
colorArray["twelve"]   = "#000080";
colorArray["thirteen"]   = "#000080";
colorArray["fourteen"]   = "#000080";

// setup test for Nav 4.0
var isNav4 = false
if ((navigator.appName == "Netscape") && 
     (navigator.appVersion.search("5.0") == -1))
   isNav4 = true

// for Nav 4.0 - capture events
function objSetEvents() {
   if (isNav4) {
      document.one.captureEvents(Event.MOUSEOVER);
      document.one.onMouseOver=ns4_showMsg;
      document.one.captureEvents(Event.MOUSEOUT);
      document.one.onMouseOut=ns4_hideMsg;

      document.two.captureEvents(Event.MOUSEOVER);
      document.two.onMouseOver=ns4_showMsg;
      document.two.captureEvents(Event.MOUSEOUT);
      document.two.onMouseOut=ns4_hideMsg;

      document.three.captureEvents(Event.MOUSEOVER);
      document.three.onMouseOver=ns4_showMsg;
      document.three.captureEvents(Event.MOUSEOUT);
      document.three.onMouseOut=ns4_hideMsg;
      }
}

// nav4 specific processing
function ns4_showMsg(evt) {
   showMsg(evt.target.name);
}

function ns4_hideMsg(evt) {
   hideMsg(evt.target.name);
}

// showMsg code
function showMsg(nm,fontc) {
   clr = colorArray[nm];
   nm = nm + "content";
   if (theobjs[nm]) {
   	theobjs[nm].objChangeFontColor(fontc);
   	theobjs[nm].objChangeBackgroundColor(clr);
   	theobjs[nm].objShow();
        }
}

// return to hideMsg - hide
function hideMsg(nm) {
   nm = nm + "content";
   if (theobjs[nm])
   	theobjs[nm].objHide();
}
