
function showReset(){
	$('.renvoyer_message').html("");
	$('#div_renvoyer').fadeIn('fast', function(){$('#form_renvoyer').fadeIn('fast',function(){$('input.mail_reset').focus()})});
}

function hideReset(){
	$('#div_renvoyer').fadeOut('fast');
}

function requestPassword(){
	if($('input.mail_reset').val()){
		var mail = $('input.mail_reset').val();
		$('#form_renvoyer').fadeOut('fast',function(){$('.loading_renvoyer').fadeIn('slow');});
		 
			$.ajax({
					url: baseUrl+"/Compte/Renvoyer/", 
					data:"mail="+mail,
					type: "get",
					cache: false,
					dataType: "html",
					success: function (content) {
							$('input.mail_reset').val("")
							$('.loading_renvoyer').fadeOut('slow', function(){$('.renvoyer_message').html(content); });
							window.setTimeout(function(){$('#div_renvoyer').fadeOut('slow');},10000);
					}
							//error: content.error
			});
		}
}

function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
	$('#form_identification').submit();
   return false;
   }
else
   return true;
}
