I need a form to carryout 2 actions once the submit button is clicked.

Below is some javascript that i'm playing with at the moment, my query is with the onclick parameter within the input tag. is that the correct way to call multiple functions??

<input type=button name=test id=test onclick"DoFunction1();DoFunction2()">

<SCRIPT LANGAUGE="Javascript">
Function DoFunction1() {
// Function 1

Function DoFunction2() {
// Function 2


If anyone has a better way to do this or has done this before please let me know!