/*
 * Created by: Ramon <ramon.silva@realweb.com.br>
 * data:06/2009
*/
$(function(){
	
	$("#btSend").click(function(){	
	
		if(!validaEmail($("#email").val())){
			showModalBox({msg:'E-mail incorreto!'});
		} else {
			var email = $("#email").val();
			loadImg($("form"));
			$.ajax({
				 type: "GET",
				 url: "js/rpc/RPC_account.php",
				 data: "func=forget&email="+email,
				 success: function(ret) {
						loadImg($("form"), 2);
						showModalBox({msg:ret});
						$("#email").val("");
				 }
			});	
		}
		
	});
	
});
