
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
};


<!--//--><![CDATA[//><!--Para desplegable IE6--------!>
addLoadEvent(function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
});


   /* Amb aquesta funcio a dins el textbox numero expedient nomes podrem escriure numeros i guions i el simbňl més, tambe es permet la tecla borrar i Supr */

            function nomesnumeros(e)
            {
                var key;
                var validos = /[0-9-+]/;
                if(window.event) {
                    key = e.keyCode;
                } else if(e.which) {
                    key = e.which;
                }
                if ((!e.ctrlKey) && (!validos.test(String.fromCharCode(key))) &&
                     key != 8 /*BORRAR*/
                    ){
                    return false;
                }
                return true;
            }

