function check(){
if(document.forma.b.value==""){
    alert("不能空");
    return false;
    }
return true;//return true;为真但没有动作呢
}
这里你要改一下
function check(){
if(document.forma.b.value==""){
    alert("不能空");
    return false;
    }else
    {
    alert(document.forma.b.value);
    }
}