function gotoLogin()
{
    document.location = global_base_path+"zaloguj.html?username="+$("#reglogin_box").val();
}

function gotoRegister()
{
    document.location = global_base_path+"rejestracja.html?username="+$("#reglogin_box").val();
}
