function checkUser(){
}
function sub()
{
if(checkUser()){
document.loginform.submit();
}
}
<form id="loginform" name="loginform" action="Cjy_load.do" method="post" onSubmit="return checkUser();"></form>
function checkUser(){
}
function sub()
{
if(checkUser()){
document.loginform.submit();
}
}
<form id="loginform" name="loginform" action="Cjy_load.do" method="post" onSubmit="return checkUser();"></form>