function signin()
{var form_data=$('#signup_form').serialize();$('#first_name').blur();$('#last_name').blur();$.post('/account?signin',form_data,function(response){$('.error').hide();if(response.success)
{location.href='/';}
else
{for(l in response.content.error)
{$('#'+l+'_err').html(response.content.error[l]);$('#'+l+'_err').show();}}},'json');};function retrieve()
{var form_data=$('#retrieve_form').serialize();$.post('/account?retrieve',form_data,function(response){$('.error').hide();if(response.success)
{$('#retrieve_result').html(response.content);$('#retrieve_result').show();$('#retrieve_form').hide();}
else
{for(l in response.content.error)
{$('#'+l+'_err').html(response.content.error[l]);$('#'+l+'_err').show();}}},'json');return false;};function changepassword()
{var form_data=$('#changepassword_form').serialize();$.post('/account?changepassword',form_data,function(response){$('.error').hide();if(response.success)
{$('#changepassword_result').html(response.content);$('#changepassword_result').show();$('#changepassword_form').hide();}
else
{for(l in response.content.error)
{$('#'+l+'_err').html(response.content.error[l]);$('#'+l+'_err').show();}}},'json');return false;};function resendActivation()
{$.post('/account?resend',{email:$('#data_email').val()},function(response){if($('.failed_block').length<1)
{$('#email_err').html('<br><div class="failed_block"></div>');$('#email_err').removeClass('error');}
$('.failed_block').html(response.content);$('.failed_block').addClass('success_block');$('.failed_block').removeClass('failed_block');},'json');};;function signin()
{var form_data=$('#signup_form').serialize();$('#first_name').blur();$('#last_name').blur();$.post('/account?signin',form_data,function(response){$('.error').hide();if(response.success)
{location.href='/';}
else
{for(l in response.content.error)
{$('#'+l+'_err').html(response.content.error[l]);$('#'+l+'_err').show();}}},'json');};function retrieve()
{var form_data=$('#retrieve_form').serialize();$.post('/account?retrieve',form_data,function(response){$('.error').hide();if(response.success)
{$('#retrieve_result').html(response.content);$('#retrieve_result').show();$('#retrieve_form').hide();}
else
{for(l in response.content.error)
{$('#'+l+'_err').html(response.content.error[l]);$('#'+l+'_err').show();}}},'json');return false;};function changepassword()
{var form_data=$('#changepassword_form').serialize();$.post('/account?changepassword',form_data,function(response){$('.error').hide();if(response.success)
{$('#changepassword_result').html(response.content);$('#changepassword_result').show();$('#changepassword_form').hide();}
else
{for(l in response.content.error)
{$('#'+l+'_err').html(response.content.error[l]);$('#'+l+'_err').show();}}},'json');return false;};function resendActivation()
{$.post('/account?resend',{email:$('#data_email').val()},function(response){if($('.failed_block').length<1)
{$('#email_err').html('<br><div class="failed_block"></div>');$('#email_err').removeClass('error');}
$('.failed_block').html(response.content);$('.failed_block').addClass('success_block');$('.failed_block').removeClass('failed_block');},'json');};