function checkLogForm(){

  var email = ge("Email").value;
  var heslo = ge("Heslo").value;
  
  if(!isEmail(email)){
    alert("Vyplňte, prosím emailovou adresu.");
    focus("Email");
    return false;  
  }else if(isEmpty(heslo)){
    alert("Doplňte heslo.");
    focus("Heslo");
    return false;        
  }
  
  return true;

}

function checkPasswdForm(){

  var email2 = ge("Email2").value;
  var heslo2 = ge("Heslo2").value;
  var heslo3 = ge("Heslo3").value;
  
  if(!isEmail(email2)){
    alert("Vyplňte, prosím emailovou adresu.");
    focus("Email2");
    return false;  
  }else if(isEmpty(heslo2)){
    alert("Doplňte heslo.");
    focus("Heslo2");
    return false;
  }else if(isEmpty(heslo3)){
    alert("Doplňte kontrolní heslo.");
    focus("Heslo3");
    return false;
  }else if(heslo2!=heslo3){
    alert("Heslo se neshoduje s jeho kontrolou.");
    focus("Heslo2");
    return false; 
  }
  
  return true;

}

