
function fReemplazarComillas(Elemento){
  Elemento.value = Elemento.value.replace(/'/g,"´")
}


function fValidarEmail(theElement){
var s = theElement.value;
var filter=/^[A-Za-z0-9_.]*@[A-Za-z0-9_]+.[A-Za-z0-9_.]+[A-za-z]$/;

  if (s.length == 0 ) return true;
  if (filter.test(s))
    return true;
  else
    alert("Introduzca una dirección de correo válida");
    theElement.focus();
    return false;
}

function fValidarTelefono(Elemento){
  if(Elemento.value!='')
   if (isNaN(Elemento.value)){
    alert("Introduzca un nº de teléfono válido")
    Elemento.focus();

  }
}
function fValidarCodpostal(Elemento){
  if(Elemento.value!='')
   if (isNaN(Elemento.value)){
    alert("Introduzca un Codigo Postal válido")
    Elemento.focus();

  }
}

