/* form validation hr  */

function ValidateForm1hr(theForm)
{
if (theForm.Editbox1.value == "")
{
   alert("Upišite Vaše IME!");
   theForm.Editbox1.focus();
   return false;
}


var strValue = theForm.Editbox2.value;
var strFilter = /^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i;
if (!strFilter.test(strValue))
{
   alert("Upišite valjanu E-MAIL ADRESU!");
   return false;
}
if (theForm.Editbox2.value == "")
{
   alert("Upišite valjanu E-MAIL ADRESU!");
   theForm.Editbox2.focus();
   return false;
}


if (theForm.Editbox3.value == "")
{
   alert("Upišite ime vašega GRADA ili MJESTA!");
   theForm.Editbox3.focus();
   return false;
}


if (theForm.TextArea1.value == "")
{
   alert("Molim Vas da upišete TEKST PORUKE!");
   theForm.TextArea1.focus();
   return false;
}
return true;
}





/* form validation eng  */

function ValidateForm1eng(theForm)
{
if (theForm.Editbox1.value == "")
{
   alert("Enter your NAME!");
   theForm.Editbox1.focus();
   return false;
}

var strValue = theForm.Editbox2.value;
var strFilter = /^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i;
if (!strFilter.test(strValue))
{
   alert("Enter a valid E-MAIL ADDRESS!");
   return false;
}
if (theForm.Editbox2.value == "")
{
   alert("Enter a valid E-MAIL ADDRESS!");
   theForm.Editbox2.focus();
   return false;
}


if (theForm.Editbox3.value == "")
{
   alert("Enter your CITY and COUNTRY!");
   theForm.Editbox3.focus();
   return false;
}


if (theForm.TextArea1.value == "")
{
   alert("Please, write down your MESSAGE!");
   theForm.TextArea1.focus();
   return false;
}
return true;
}
