function validate_email(field,alerttxt)
{
with (field)
  {
  apos=value.indexOf("@");
  dotpos=value.lastIndexOf(".");
  if (apos<1||dotpos-apos<2)
    {alert(alerttxt);return false;}
  else {return true;}
  }
}

function validate_form_en(thisform)
{
with (thisform)
  {
  if (validate_email(email,"Not a valid e-mail address! Please correct it.")==false)
    {email.focus();return false;}
  }
}
      
function validate_form_cs(thisform)
{
with (thisform)
  {
      if (validate_email(email,"Prosím vyplňte správně email! např. example@example.com")==false)
    {email.focus();return false;}
  }
} 
