I have the following form, I want to submit the form via the document submit function, and emulate the "ac_quit" button being clicked.
Not sure how to tell the submit that its the ac_quit button being submitted. I know I should have quotes in the below, but inherited this code, and this the way it came.

document.getElementById("ac_chat").submit();


<form action="<?php echo $ac_www . $ac_chf; ?>" method=POST id=ac_chat accept-charset=UTF-8>


<input name=ac_post value=Send title="Click here to post your message" type=submit />
<input name=ac_quit value="Exit Page" title="Click here to quit the current session" type=submit />


</form>