function changeit(elemID) {
        var elem = document.getElementById(elemID);
        var thevalue = elem.value;
        if(thevalue=="") {
                elem.style.background='white';
        } else {
                elem.style.background='#dfdfdd';
        }
}

function makeityellow(elemID) {
        var elem = document.getElementById(elemID);
        elem.style.background='yellow';
}

function whiteall() {
        var frm_el=document.theform.elements;
        var frm_ln=frm_el.length;
        for(var i=0;i<frm_ln;i++) {
                frm_el[i].style.background='white';
        }
        document.theform.submit.style.background='#d4d0c8';
        document.theform.reset.style.background='#d4d0c8';
}

function smallwin(href) {
        window.open(href,"glossary","height=500,width=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0");
}

function bigwin(href) {
        window.open(href,"glossary","height=700,width=800,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1");
}

function ftecompute(hoursID,fteID) {
  var hours = document.getElementById(hoursID).value;
  var fte = document.getElementById(fteID);
  var fte_display = hours/40;
  fte.value = fte_display;
}

function my_hide(elemID) {
  var elem=document.getElementById(elemID);
  elem.style.display='none';
}
  
function my_show(elemID)  {
  var elem=document.getElementById(elemID);
  elem.style.display='block';
}

function pulldown_fill(sourceElemID, targetElemID) {
  var source_value = document.getElementById(sourceElemID).value;
  var targetID = document.getElementById(targetElemID);
  targetID.value = source_value;
}
  
