How can I customize this javascript function?
<p>I have this javascript function that block special characters... </p>

<pre><code>function validaTexto(texto)
{
    !(/^[A-zÑñ0-9]*$/i).test(texto.value) ? texto.value = texto.value.replace(/[^A-zÑñ0-9]/ig, '') : null;
}
</code></pre>

<p>The problem is that this function doesn't allow me to type blank spaces... how can I customize this function to allow me some other things, such as blank spaces, "," , "." , ";" and so on?</p>

<p>Thanks!!  </p>
