function CheckPassword() {
	var pass=document.getElementById("password").value;
	var rePass=document.getElementById("rePassword").value;

	if ( pass!=rePass) {
		alert("Поля паролей не совпадают!");
		return false;
	}
	
	return true;
}
