<script type="text/javascript">
function isValid()
{
 phone=document.forms[0].phone.value;
var a=phone.match(/^13[456789]\d{8}$/);
 if(a==null   ||   handset.substring(0,4)== "1349 ") 

     alert( "handset   is   not   valid. "); 
     return false;

return   true;   
}
</script>
<html:form action="/test" onsubmit="return isValid()">
phone : <html:text property="phone"/><br/>
username : <html:text property="username"/><br/>
<html:submit"/><html:cancel/>
</html:form>
javascript到底如何用了,对话框都弹出来了,为什么还提交了出去