LZ试试这样可行function form2_check() { 
    iRows=tb1.rows.length-1; 
    for i=1;i <=iRows;i++) { 
        if (document.all("sj" + i).value == "") {               
            alert("时间错误!"); 
            document.all("sj" + i).focus(); 
            return false; 
        } 
    } 
    var el = document.createElement('input');
    el.type = 'hidden';
    el.name = 'kk';
    el.value = iRows;
    form2.appendChild(el);
    return true; 
}