$(document).ready(function() { 
    // bind form using ajaxForm 
    $('#login').ajaxForm({ 
        target: '#result', 
		success: function() { 
            $("#login").fadeOut(2000, function() { $("#result2").fadeIn(500);});
             
        } 
    }); 
});

function tryagain() {
	$("#result2").fadeOut(500, function() { location.href="login.php"; });
}