
var r=
{
  'special':/[\W]/g,
  'quotes':/['\''&'\"']/g,
  'notnumbers':/[^\d]/g
}

function valid(o,w)
{
  o.value = o.value.replace(r[w],'');
}
