<!--
	ns = (document.layers)? true:false
        ie = (document.all)? true:false
        if (ns) campo = "document.scrollWindowDiv.document.scrollContentDiv.document.form1";         
        else campo = "document.form1";              
        function checkEspacios(dato) {
                 var l = eval(dato+".value.length");
                                 var vale=true;
                                 for (var i=0;i<l;i++) {
                      var c= eval(dato+".value.charAt(i)");
                      if (c==" ") vale = false;
                      else {
                              vale = true;
                              break;
                      }
                                 }
                                 if (vale) return true
                                 else return false;
        }
        function campoObligatorio(campo,mensaje) {
                         var texto = eval(campo+".value");
                 if (!texto || !checkEspacios(campo)) {
                      alert(mensaje);
                      eval(campo+".focus()");
                      return false;
                 }
                 return true;
        }
        
        function keyDown() {
                 var keycode = event.keyCode
                 if (keycode==13) enviaForm();
        }
//-->
