function login(){
	user_name = document.getElementById('account_login').value ;
	password  = document.getElementById('account_password').value ;
	if(user_name==null || user_name == ''){
		alert(error_user_name);
		document.getElementById('account_login').focus();
		return false;
		
	}
	if(password==null || password == ''){
		alert(error_password);
		document.getElementById('account_password').focus();
		return false;
	}
	document.getElementById('login_form').submit();
	
	
}

function reloadCaptcha()
{
	 jQuery("#captcha_image").html('<img src="/images/indicator.gif"/>');
	 jQuery.post("new_captcha",{},function(data){
	 	eval(data);
	 	jQuery("#captcha_image").html('<img src="/captcha/'+ captchaFileName+'" />');
		jQuery("#captcha_digest").val(digest);
	 });
}