Hi

I want to call two js functions using one submit button.I have tried the below code.But it gives error.

Code:
<script language=javascript>
function one()
{
document.write("hai");
}
function two()
{
document.write("All");
}
</script>
<form>
<input type=button value="ok" onClick="two();one()" > 
</form>
I got the error as

Code:
one is not defined.
But i am getting All as output.

Pls anybody solve this ....

Regards
Rekha