how can i do this in javascript:
an input box, and a button
if someone enter "5" and press the button the page loads to 0005.htm
if someone enter "755" & press the button the page loads to 0755.htm
if someone enter a number bigger than 9999 the page loads to 9999.htm
thanx for any help