Give the form an id, and then:
document.getElementById("yourFormId").submit();
Best practice would probably be to give your link an id too, and get rid of the event handler:
document.getElementById("yourLinkId").onclick = function() {
document.getElementById("yourFormId").submit();
}