function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Fname.value == "")
  {
    alert("Niste upisali ime.");
    theForm.Fname.focus();
    return (false);
  }

  if (theForm.Lname.value == "")
  {
    alert("Niste upisali prezime.");
    theForm.Lname.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Niste upisali svoj e-mail.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.popis.selectedIndex == "")
  {
    alert("Niste odabrali rubriku.");
    theForm.popis.focus();
    return (false);
  }
  
   if (theForm.poruka.value == "")
  {
    alert("Niste upisali tekst poruke.");
    theForm.poruka.focus();
    return (false);
  }
  
  
  return (true);
}
