Oh -- you're using JavaScript...
(This is a PHP forum BTW)
You can do something similar with
JS though... here is a JavaScript equivilant to the PHP.
function is_price(value)
{
return (isNaN(value))? FALSE : Math.round(value*100)/100;
}
hth,
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::