Put javascript in a seperate file (func.js). Also improved resizing of the form elements.