函数没有问题,应该是你的name写错了吧!
 看看,itemName对应的那个input到底是什么呢?

解决方案 »

  1.   

    具体代码如下:
    -----------
    if(document.form1.union_sp_number.value==""&&document.form1.mobile_sp_number.value==""&&document.form1.phs_sp_number.value=="")
         {alert("请输入项目特服号!");
    document.form1.union_sp_number.focus();
                    return false;
                  }
       else
      if(document.form1.union_service_code.value==""&&document.form1.mobile_service_code.value==""&&document.form1.phs_sp_service.value=="")
         {alert("请输入计费代码!");
     document.form1.union_service_code.focus();
     return false;
     }
    ---------------------
     <input type="text" name="union_sp_number" maxlength="10" size="20">
                联通sp号码</p>
              <p>
                <input type="text" name="mobile_sp_number" maxlength="10" size="20">
                移动sp号码</p>
              <p>
                <input type="text" name="phs_sp_number" maxlength="10" size="20">
                小灵通sp号码</p>