function init() {
  if (!document.getElementsByTagName) {return;}
  var selects = document.getElementsByTagName('select');
  // if the select's id has _id in it
  var len = selects.length;
  for (var i=0; i<len; i++) {
	if (/(^| )idjumpmenu( |$)/.test(selects[i].className) && selects[i].id.indexOf('_id') != -1) {
	  addEvent(selects[i], 'change', 
		function(e) {
		  var t = window.event ? window.event.srcElement : e ? e.target : null;
		  if (!t) {return false;}
		  // wait till the value is changed and is not '' or null 
		    if (t.options[t.selectedIndex].value != null && t.options[t.selectedIndex].value != '') {
		      // grab the id to search the url for 
			  var s = searchCGI(t.id.substr(0, t.id.indexOf('_id') + 3));
			  // once you have it's value use that to replace it's value
			  // in the url with the current selected id
			  setCGI(s.key,s.value,s.key,t.options[t.selectedIndex].value);
			} else {
			  return false;
			}
		  return true;			
	    }, 
	  false);
	} else if (/(^| )jumpmenu( |$)/.test(selects[i].className)) {
	  addEvent(selects[i], 'change', 
		function(e) {
		  var t = window.event ? window.event.srcElement : e ? e.target : null;
		  if (!t) {return false;}
            if (t.options[t.selectedIndex].value != null && t.options[t.selectedIndex].value != '') {
  	          window.location = t.options[t.selectedIndex].value;
            } else {
	          return false;
           }		  
	    }, 
	  false);	  
	}
  }
}

addLoadListener(init);