You need to actually return false from your inline dom-0 handler. So change
onsubmit = "post();">
to
onsubmit = "return post();">
Or you could give your form an id and do this:
Then from a safe location in which your dom is ready:
document.getElementById("form1").onsubmit = post;