function isequal(str,str1){if(str!=str1){alert("两厅码次输入不漏伏誉一致"返段);return false;}return true;}在form的onsubmit="javascript:return isequal(this.pass.value,this.pass1.value)"