How to call a javascr+B6181ipt function in html ?

I have made a login form in html. I want to execute a javascript function on submission of html form. I have declared following question:
<script type="txt/javascript" language="javascript">
function LoginChk()
{
// code //
}
</script>
can someone tell me how to call this javascript function ?
