var submitted = false;
function submitOnce () {
  if (submitted) {
    return confirm('Czy na pewno chcesz wysłać formularz ponownie?');
  } else {
    submitted = true;
    return true;
  }
}
