updated submit and addEvent to be compatible.

addEvent inserts times in 24 hr time
compile takes 24 hr time and adds AM or PM
submit now correctly links to addEvent and sends the data properly.