function printWindow(){
  bV = parseInt(navigator.appVersion);
  if (bV >= 4)
    window.print()
}

function validateForm(AForm)
{
  if ((!AForm.firma.value)||(!AForm.adres.value)||(!AForm.telefon.value))
  {
    alert("Wypełnij pola: firma, adres, telefon!");
    return false;
  }else
  {
    return true;
  }
}