<script type="text/javascript">
function checkPasswordMatch() {
var password = $("#password").val();
var confirmPassword = $("#repassword").val();
if (password != confirmPassword)
$("#divCheckPasswordMatch").html("Passwords do not match!");
else
$("#divCheckPasswordMatch").html("Passwords match.");
}