jQuery().ready(function()
{
	login = function()
	{
		$.post('/ajax.php', { get: 'login', username: $('#input_username').val(), password: $('#input_password').val() }, function(data)
		{
			$('#iframe').html(data);
			if($('#refresh').length > 0)
			{
				window.location = window.location;
			}
		});
	}
	
	$('#send_login').live('click', login);
});