//login
function userConnect( location )
{
	callAjax({method:'connect_user', email:jQuery("#sidebar-email").val(), pass:jQuery("#sidebar-password").val()}, function(result){
		if (result == 1)
        {
			document.location = location;
        }
		else if ( result == -1 )
		{
			jError( txtInvalidEmailOrPass, txtError);
		}
		else
		{
			jError( txtUserNotActive, txtError);
		}
		    endLoading();
	    });
}


