// JavaScript Document
function checkform(lang){

name=document.getElementById("i").value;
if (name=='tu wpisz swoje imię i nazwisko'){alert("Wypełnij wszystkie pola");document.getElementById("i").focus();return false;}

if (name.replace(/\s/g,"")=="") {

if (lang==1)alert("Pole imię jest polem obowiązkowym.");
if (lang==2)alert("Field name is mandatory.");
document.getElementById("i").focus();
return false;

                                  }
                                  
name=document.getElementById("e").value;
if (name=='tu wpisz swój email'){alert("Wypełnij wszystkie pola");document.getElementById("e").focus();return false;}


if (name.replace(/\s/g,"")=="") {

if (lang==1) alert("Pole email jest polem obowiązkowym.");
if (lang==2)alert("Field email is mandatory.");
document.getElementById("e").focus();
return false;

                                  } 

name=document.getElementById("t").value;
if (name=='tu wpisz treść wiadomości'){alert("Wypełnij wszystkie pola");document.getElementById("t").focus();return false;}
if (name.replace(/\s/g,"")=="") {

if (lang==1) alert("Pole treść jest polem obowiązkowym.");
if (lang==2)alert("Field content is mandatory.");
document.getElementById("t").focus();
return false;

                                  }                                 
                                  

                                 
                                  
return true;                                  
}
