Event handlers in HTML (like onsubmit) are uing JavaScript code, so writing
return something; will stop the execution flow.
If you want to execute multiple function you can do two things:
1. Create a function that calls upon all others (preferred IMHO)
<form ... önsubmit="return(onSubmit());">
function onSubmit()
{
var rv = checkPass();
my();
return(rv);
}
2. Write in event handler all the functions you want to call: onsubmit="chcekPass();my();"