$("document").ready(function(){
function login ()
{
$("#login_submit_button").on("click", function(){
var data = $('#login_form').serialize();
$.ajax({
type: "POST",
url: "ajax/att",
data: data,
success: function(data){
if(data == "invalid" || data == "empty")
{
$("#functional_logobox").load('ajax/login_wrong');
login ();
}
else if (data == "valid")
{
location.reload();
}
}
});
});
}
});