<!-- Paste this code into an external JavaScript file named: blockKeyPress.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Corneliu Lucian 'Kor' Rusu :: corneliulucian[at]gmail[dot]com */

var r={

	'special':/[^0-9a-zA-Z.\-_\s]+$/,
	'quotes':/['\''&'\"']/g,
	'notnumbers':/[^\d]/g
}

function valid(o,w){
  o.value = o.value.replace(r[w],'');
}