
function jumpSelect()
{
//turns all <select> elements with the className into a jump to
var selectElements = document.getElementsByTagName("select");

$cnt = selectElements.length;
for(i=0; i<$cnt; i++ ) {
//check for the class and make sure the element has an ID
	if( selectElements[i].className == "jumpmenu" && document.getElementById(selectElements[i].id) != "") {
	jumpmenu = document.getElementById(selectElements[i].id);
	jumpmenu.onchange = function() {
	if( this.options[this.selectedIndex].value != '' ) {
	location.href=this.options[this.selectedIndex].value; //redirect
				}
			}
		}
	}
}// /jumpSelect
   
//run the function only after the page loads
window.onload = function()
 { 
 jumpSelect(); // call fn
 }

