
/***********************************************
* Drop down menu w/ description- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
/// You may define additional text arrays if you have multiple drop downs:
var thetext2=new Array()
thetext2[0]="Academic advising is required for certain students at U of L.  Learn about academic advising requirements for your unit."
thetext2[1]="Academic bankruptcy description."
thetext2[2]="Academic forgiveness description."
thetext2[3]="Academic standing description."
thetext2[4]="Classification."
thetext2[5]="Catalog year."
thetext2[6]="Class attendance."
thetext2[7]="Course audit."
thetext2[8]="Course load."
thetext2[9]="Course pass/fail."
thetext2[10]="Course repeat."
thetext2[11]="Dean's List."
thetext2[12]="Drop/add."
thetext2[13]="Grading system."
thetext2[14]="Graduation with honors."
thetext2[15]="Grievance policies."
thetext2[16]="Placement by examination."
thetext2[17]="Registration."
thetext2[18]="Residency status."
thetext2[19]="Withdrawal procedures."

// Now, see 2) below for final customization step

function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}

function jumptolink(what){
var selectedopt=what.options[what.selectedIndex]
if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value)
else
window.location=selectedopt.value
}

//2) Call function displaydesc() for each drop down menu you have on the page
//   This function displays the initial description for the selected menu item
//   displaydesc(name of select menu, name of corresponding text array, ID of SPAN container tag):
//   Important: Remove the calls not in use (ie: 2nd line below if there's only 1 menu on your page)

displaydesc(document.form2.select2, thetext2, 'textcontainer2')

