function onSubmitFrom(form){
with(from){
if(TrimA(username).length==0){
showMSG('用户名');
return false;
}
if(TrimA(password).length==0){
showMSG('密码');
return false;
}
if(TrimA(valiCode).length==0){
showMSG('验证码');
return false;
}
}
return true;
function showMSG(ms...