for(iIndex=0;iIndex<document.all.tags("input").length;iIndex++)
{
if(document.all.tags("input")[iIndex].type.indexOf('text')==0)
{
if(document.all.tags("td")[iIndex].value=="")
                  {
                           //有一个文本框未填,处理吧
                           document.all.tags("td")[iIndex].focus();
                  }
}
}
资料都在MSDN里的IEREF.chm中[还有IEREF.chi]