  function sprawdzDodawanie(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak
if (document.formularz_add.nazwa.value.length == 0)
{
message = message + "Trzeba podać nazwę produktu!\n";
}

if (document.formularz_add.cena.value.length == 0)
{
message = message + "Trzeba podać wartość produktu!\n";
}

if (document.formularz_add.dostawa.value.length == 0)
{
message = message + "Trzeba podać kwotę za dostawę!\n";
}

if (document.formularz_add.katg.value == 0)
{
message = message + "Trzeba wybrać kategorię!\n";
}

if (document.formularz_add.skatg.value == 0)
{
message = message + "Trzeba wybrać podkategorię!\n";
}

if (document.formularz_add.opisg.value.length == 0)
{
message = message + "Trzeba podać opis produktu!\n";
}

if (document.formularz_add.foto_centralne.value.length == 0)
{
message = message + "Trzeba podać centralne zdjęcie produktu!\n";
}





if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{

var wgrywanie = "";
wgrywanie = wgrywanie + "Zaraz rozpocznie się proces uploadu (wgrywanie) zdjęć na serwer.\nCzekaj cierpliwie na komunikat potwierdzający POPRAWNY ZAPIS.";

alert ( wgrywanie );
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!





  function sprawdzFormularz(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak
if (document.formularz.tytul.value.length == 0)
{
message = message + "Trzeba podać tytuł!\n";
}

// Testowanie czy tresc zawiera chociaz jeden znak
if (document.formularz.tresc.value.length == 0)
{
message = message + "Trzeba podać treść!\n";
}


if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{

var wgrywanie = "";
wgrywanie = wgrywanie + "Jeśli wybrałeś zdjęcie - zaraz rozpocznie się proces uploadu.\nCzekaj cierpliwie na komunikat potwierdzający POPRAWNY ZAPIS.";

alert ( wgrywanie );
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!



function sprawdzEdycja(form)
{
var message = ""; // create error message string variable, with nothing in

if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{

var wgrywanie = "";
wgrywanie = wgrywanie + "Jeśli wymieniłeś zdjęcie - zaraz rozpocznie się proces uploadu.\nCzekaj cierpliwie na komunikat potwierdzający POPRAWNE WYEDYTOWANIE WPISU.";

alert ( wgrywanie );
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!




 function sprawdzKategorie(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak
if (document.formularz.kategoria_nazwa.value.length == 0)
{
message = message + "Trzeba podać nazwę dla nowej kategorii!\n";
}

if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!


function sprawdzPodkategorie(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak
if (document.formularz2.podkategoria_nazwa.value.length == 0)
{
message = message + "Trzeba podać nazwę dla nowej podkategorii!\n";
}

if (document.formularz2.kategoria_glowna.value == 0)
{
message = message + "Trzeba wybrać odpowiednią kategorię główną dla nowo dodawanej podkategorii!\n";
}


if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!
 
 
 
 
  function sprawdzKontakt(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak


// Testowanie czy tresc zawiera chociaz jeden znak
if (document.formularz.tresc.value.length == 0)
{
message = message + "Trzeba podać treść zapytania.\n";
}


if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!
 
 
 
  function sprawdzwWyborKategorii(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak
if (document.formularz_kat.katg.value == '0')
{
message = message + "Trzeba wybrać jakąś kategorię\n";
}

if (document.formularz_kat.skatg.value == '0')
{
message = message + "Trzeba wybrać jakąś podkategorię\n";
}

if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!
 
 
 
 
 
  function sprawdzZamowienie(form)
{
var message = ""; // create error message string variable, with nothing in
// Testowanie czy tytul zawiera chociaz jeden znak
if (document.formularz.imie.value.length == 0)
{
message = message + "Bitte geben Sie den Vornamen des Käufers an.\n";
}

if (document.formularz.nazwisko.value.length == 0)
{
message = message + "Bitte geben Sie den Nachnamen des Käufers an.\n";

}


if (document.formularz.ulica.value.length == 0)
{
message = message + "Bitte gebe Sie die Straße an, in die geliefert werden soll.\n";
}

if (document.formularz.kod.value.length == 0)
{
message = message + "Bitte geben Sie die Postleitzahl an.\n";
}

if (document.formularz.miasto.value.length == 0)
{
message = message + "Bitte wählen Sie eine Stadt aus.\n";
}

if (document.formularz.kraj.value == 0)
{
message = message + "Bitte wählen Sie ein Land aus.\n";
}

if (document.formularz.telefon.value.length == 0)
{
message = message + "Bitte geben Sie Ihre Telefonnummer an.\n";
}

if (document.formularz.kolor.value.length == 0)
{
message = message + "Bitte geben Sie die gewünschte Farbe des Produktes an.\n";

}


if ( message.length > 0 )
{ // is there an error message?
alert( message ); // wyswietl informacje o bledach
return false; // sa bledy nie wysylaj
}

else
{
return true; // brak bledow mozna wysylac

}
}

 // koniec funkcji!
