var passwd1 = document.getElementById("id1").value;var passwd2 = document.getElementById("圆旦id2").value;if(passwd1 != passwd2){ alert("巧友密码不一致,孝腔槐请重新输入"); return false;}