# Pastebin 3r8mIIRV function lineItemSubmit(formId, url) { var form = document.getElementById(formId); form.action = url; form.submit(); }