function CheckForm1()
{ 
       chyba = new String;
       chyba="";
       tel = 1;
       email = 1;
       reg = new RegExp("^[+0123456789 ]+$");

       if (document.formular.jmeno.value=="") chyba = chyba+"Jméno\n";
       if (document.formular.prijmeni.value=="") chyba = chyba+"Příjmení\n";

       if (!reg.test(document.formular.telefon.value)) tel = 0;

       mmail = document.formular.mail.value;
       if (mmail==""||mmail.indexOf('@')==-1||mmail.lastIndexOf('.')<mmail.indexOf('@')) email = 0;
       if (tel==0&&email==0) chyba = chyba+"Telefon NEBO E-mail\n";

       if (chyba=="") document.formular.submit();
        else alert('Chybně vyplněná pole:\n\n'+chyba);
}

function CheckForm3() 
{ 
       chyba = new String;
       chyba="";
       tel = 1;
       email = 1;
       reg = new RegExp("^[+0123456789 ]+$");

       if (document.formular.jmeno.value=="") chyba = chyba+"Jméno\n";
       if (document.formular.prijmeni.value=="") chyba = chyba+"Příjmení\n";

       if (!reg.test(document.formular.telefon.value)) tel = 0;
       mmail = document.formular.mail.value;
       if (mmail==""||mmail.indexOf('@')==-1||mmail.lastIndexOf('.')<mmail.indexOf('@')) email = 0;
       if (tel==0&&email==0) chyba = chyba+"Telefon NEBO E-mail\n";
       if (document.formular.cena.value==""&&!document.formular.cena_dohodou.checked) chyba = chyba+"Cena\n";       

       if (chyba=="") document.formular.submit();
        else alert('Chybně vyplněná pole:\n\n'+chyba);
}

function CheckForm4() 
{ 
       chyba = new String;
       chyba="";
       tel = 1;
       email = 1;
       reg = new RegExp("^[+0123456789 ]+$");

       if (document.formular.jmeno.value=="") chyba = chyba+"Jméno\n";
       if (document.formular.prijmeni.value=="") chyba = chyba+"Příjmení\n";

       if (!reg.test(document.formular.telefon.value)) tel = 0;
       mmail = document.formular.mail.value;
       if (mmail==""||mmail.indexOf('@')==-1||mmail.lastIndexOf('.')<mmail.indexOf('@')) email = 0;
       if (tel==0&&email==0) chyba = chyba+"Telefon NEBO E-mail\n";

       if (document.formular.heslo.value=="") chyba = chyba+"Heslo\n";       

       if (chyba=="") document.formular.submit();
        else alert('Chybně vyplněná pole:\n\n'+chyba);
}

function CheckForm5() 
{ 
       chyba = new String;
       chyba="";

       if (!document.formular.sekce1.checked&&!document.formular.sekce2.checked&&!document.formular.sekce3.checked&&!document.formular.sekce4.checked&&!document.formular.sekce5.checked&&!document.formular.sekce6.checked&&!document.formular.sekce7.checked) chyba = chyba+"Typ aktualit\n";

       mmail = document.formular.mail.value;
       if (mmail==""||mmail.indexOf('@')==-1||mmail.lastIndexOf('.')<mmail.indexOf('@')) chyba = chyba+"E-mail\n";
       if (document.formular.heslo.value=="") chyba = chyba+"Heslo\n";

       if (chyba=="") document.formular.submit();
        else alert('Chybně vyplněná pole:\n\n'+chyba);
}


function CheckForm6()
{ 
       chyba = new String;
       chyba="";
       tel = 1;
       email = 1;
       reg = new RegExp("^[+0123456789 ]+$");

       if (document.formular.jmeno.value=="") chyba = chyba+"Jméno\n";

       if (!reg.test(document.formular.telefon.value)) tel = 0;

       mmail = document.formular.mail.value;
       if (mmail==""||mmail.indexOf('@')==-1||mmail.lastIndexOf('.')<mmail.indexOf('@')) email = 0;
       if (tel==0) chyba = chyba+"Telefon\n";

       if (chyba=="") document.formular.submit();
        else alert('Chybně vyplněná pole:\n\n'+chyba);
}