
//Global variables
var isNav, isIE, isNav6, isIE5
var coll = ""
var styleObj = ""

if (document.layers) {
     coll = "layers[obj]"
     styleObj = ""
  } else if (document.getElementById) {
       coll = "getElementById(obj)."
       styleObj = "style"
  } else if (document.all && !(document.getElementByID)) {
       coll="all(id)"
       styleObj = ".style"
  } else {
     alert("Please click on Sitemap button on left menu to access list of courses")
}

//convert object name string or object reference into a valid object reference
function getObject(obj) {
    var theObj
    if (typeof obj == "string") {
       theObj = eval("document." + coll + styleObj)
    } else {
       theObj = obj
    }
      return theObj
}

//Setting the visibility of an object to visible

function show(obj) {
   var theObj = getObject(obj)
   theObj.visibility = "visible"
}


//Setting the visibility of an object to hidden

function hide(obj) {
   var theObj = getObject(obj)
   theObj.visibility = "hidden"
}


// sets nothing

function nothing() {
}



// times out drop down menu display

function ToMenu(num) {
hide('linkpage' + num);

}

//E-mail this page function
function mailpage()
{
  mail_str = "mailto:?subject=Caltech/MIT Enterprise Forum: " + document.title;
  mail_str += "&body=Following is a link to the Caltech/MIT Enterprise Forum page entitled '" + document.title;
  mail_str += "' located at: %0A" + location.href + ", that you may find of interest."; 
  location.href = mail_str;
}




