这是javascript吧  我也不熟首先你是当两者都为""时  还是只要有一个为""时前者用 &&             后者用||
试试
(document.scrolladdform.regist_title.length==0)
帮你顶一下吧
祝好运要分