HTML Code:
<script language=javascript>
function one()
{
alert("hai");
}
function two()
{
alert("All");
}
</script>
<form>
<input type=button value="ok" onClick="two();one()" > 
</form>
But your version doesn't work because you are using document.write, after calling the first function the document is overwritte, so, it can't find function one().