A JQuery plugin I found to restrict input to HTML text boxes, e.g. to numbers only. Maybe useful as this nears completion!

http://digitalbush.com/projects/masked-input-plugin/