// JavaScript Document
$(document).ready(function(){

	$("#showPasswordReminder").click(function(){
	
		$("#passwordReminder").show();

	});

	$("#passwordReminderButton").click(function(){

		var result = $.ajax({
						url: "../acms/modules/acms_memberManagement/client/ajax.php",
						data: "email="+$("#passwordReminderEmail").val(),
						async: false
					}).responseText;
		
		if(result == "OK") {
			$("#passwordReminderButton").hide();
			$("#passwordReminderEmail").hide();
			$("#passwordReminder p").html("Your password has been sent to your email address.");
		}
		else
			$("#passwordReminder p").html("Your email address could not be found.");

	});
	
});