Try this
Code: HTML
<script language=javascript>
function one()
{
document.write("hai");
}
function two()
{
document.write("All");
}

function a()
{
    two();
    one();
}   
</script>
<form>
<input type=button value="ok" onClick="a();" >
</form>