function validate(formularz, jezyk)
{

if ((!formularz.tresc.value) || (!formularz.telefon.value) || (!formularz.mail.value) || (!formularz.imie.value))
{
    if(jezyk=='_pl')
    {
    alert("Pola oznaczone czerwon± gwiazdk± musz± byæ wype³nione!");
    }
    else
    {
    alert("Fields marked with the red star must be filled!");  
    }
    return false;
} 


reg2 = /^[a-zA-Z0-9&#353;æê³ñó¶¿¼&#317;ÆÊ£ÑÓ¦¯¬\-]{1,30}@[a-zA-Z0-9&#353;æê³ñó¶¿¼&#317;ÆÊ£ÑÓ¦¯¬\-]+(\.[a-zA-Z0-9&#353;æê³ñó¶¿¼&#317;ÆÊ£ÑÓ¦¯¬\-]+)+$/;
wyn2 = formularz.mail.value.match(reg2);
if(wyn2==null) 
{
     if(jezyk=='_pl')
     {
     alert("Proszê podaæ poprawny adres email. ");
     }
     else
     {
     alert("Incorrect email address. ");
     }
     return false;
}

if (formularz.imie.value.length > 50)
{
     if(jezyk=='_pl')
     {
     alert("Pole 'Imiê i nazwisko' jest za d³ugie. ");
     }
     else
     {
     alert("Field 'Name and Surname' is to long. ");
     }
       
        return false;
}  

return true;

}


