You could just split the input value at the ".", and take the first part of the returned array as the dollar amount
example of use given:
<script language=javascript>
var amount="5.00"
splits=amount.split(".")
var dollars=splits[0]
document.write(dollars)...