// JavaScript Document

function displayFields(selectObj, value, showObj) {
	var v = selectObj.options[selectObj.selectedIndex].value;
	if (v.match(value))
		document.getElementById(showObj).style.display = 'block';
	else
		document.getElementById(showObj).style.display = 'none';
}












//function addLoadEvent(func) {
//  var oldonload = window.onload;
//  if (typeof window.onload != 'function') {
//    window.onload = func;
//  } else {
//    window.onload = function() {
//      oldonload();
//      func();
//    }
//  }
//}
//
//function prepareInputsForHints() {
//  var inputs = document.getElementsByTagName("input");
//  for (var i=0; i<inputs.length; i++){
//    inputs[i].onfocus = function () {
//      this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
//    }
//    inputs[i].onblur = function () {
//      this.parentNode.getElementsByTagName("span")[0].style.display = "none";
//    }
//  }
//  var selects = document.getElementsByTagName("select");
//  for (var k=0; k<selects.length; k++){
//    selects[k].onfocus = function () {
//      this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
//    }
//    selects[k].onblur = function () {
//      this.parentNode.getElementsByTagName("span")[0].style.display = "none";
//    }
//  }
//}
//addLoadEvent(prepareInputsForHints);