document.all为IE内核专用,其他浏览器不识别
用它代替
document.getElementById(你的formID).getElementsByTagName("input")