
Ext.onReady(function(){Ext.namespace('Ext.Connect');Ext.get("login_box_container").boxWrap();Ext.get("email").focus();Ext.Connect.password_reminder=function(){Ext.Msg.prompt('Password reminder','Please enter your email address:',function(btn,text){if(btn=='ok'){new Ajax.Request('/password_recovery.do.php5',{method:'GET',parameters:{mode:'request_password',email:text},onSuccess:function(t){response=t.responseText.evalJSON();if(!response.success){if(!response['error'].message)
Ext.MessageBox.alert('Password recovery',response['error'].caption);else
Ext.MessageBox.alert('Password recovery',response['error'].message);}else{Ext.MessageBox.alert('Password recovery','Your password has been emailed to you.');}
return true;}});return true;}});}
$('password_reminder_a').observe('click',function(){return Ext.Connect.password_reminder();});});