function codificarMD5(campo,campoNombre){
    document.getElementById(campoNombre).value = hex_md5(campo.value);
}
function cambiarFondoRojo(campo){
    campo.style.background = "#FFE7E4";
}
function enterPressed(oEvento){
    var iAscii;
     if (oEvento.keyCode)
         iAscii = oEvento.keyCode;
     else if (oEvento.which)
         iAscii = oEvento.which;
     else
        return false;

    if (iAscii == 13) {
        return true;
    }else{
        return false;
    }
}
function recogerCamporForm(formulario){
    r = {};
    dwr.util.getValues(r);

    for (i=0;i<formulario.elements.length;i++) {
        id = formulario.elements[i].id;
        if (id != null && id != "" && id != " "){
            r[id]= formulario.elements[i].value;
        }
    }
    return r;
}

