// JavaScript Document
function submitOnClick(formId, inputId, inputValue) {

  
  document.getElementById(inputId).value=inputValue;
  
  document.getElementById(formId).submit();
}