Hi,
Use regular expression.
You may find appropriate example on blogs.
you may use match method.
example:
<HTML>
<BODY>
<script language="javascript" type="text/javascript">
alert("$3000.00onlyd".match(/\d+(\.\d+)/)[0]);
</script>
Done
</BODY>
</HTML>
Thanks
Chetan