// JavaScript Document
var r={
  'special':/[\W]/g,
  'quotes':/['\''&'\"']/g,
  'notnumbers':/[^\d]/g
}

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

<!-- Original:  Cyanide_7 (leo7278@hotmail.com) -->
<!-- Web Site:  http://www7.ewebcity.com/cyanide7 -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function formatCurrency(num) {

num = num.toString().replace(/\ |\,/g,'');
sign = num;
num = num.substring(0,num.length-(7))+' '+num.substring(4,num.length-(4))+' '+num.substring(7,num.length-(2))+' '+num.substring(9,num.length-(0));
return (((sign)?'':'-')  + num);
}

function formatCurrency2(num) {

num = num.toString().replace(/\ |\,/g,'');
sign2 = num;
num = num.substring(0,num.length-(12))+' '+num.substring(4,num.length-(8))+' '+num.substring(8,num.length-(4))+' '+num.substring(12,num.length-(0));
return (((sign2)?'':'-')  + num);
}
//  End -->
