function CheckSubmit(){//该函数的功能是判断input输入是否为空,为空则返回false否则返回true
if(document.orderform.name.value==""){
alter("请输入购买人姓名:");
document.orderform.name.focus();
return false;
}
        return true;
}
.........
..........
<form name="orderform" action="Shopping.jsp" method="post"> 
              <tr>
                <td align="right" width="30%">
                                               购买人姓名
                </td>
                <td align="left">
                 <input name="name" type="text" size="20">
                </td>           
              </tr>
.................请问上面代码有什么问题没????????
我到网上看到的跟我的没什么区别,怎么就不行呢??
还有 如果错了,怎么写?????
谢谢!