function form_validator(theForm)
{




if (theForm.nume.value == 0)
{
alert("Va rugam, completati numele!");
theForm.nume.focus();
return (false);
}

if (theForm.tel.value == "")
{
alert("va rugam, completati un numar de telefon!");
theForm.tel.focus();
return (false);
}

if (theForm.str.value == "")
{
alert("Va rugam completati strada!");
theForm.str.focus();
return (false);
}

if (theForm.loc.value == "")
{
alert("Va rugam completati orasul!");
theForm.loc.focus();
return (false);
}

if (theForm.jud.value == "")
{
alert("Va rugam completati judetul!");
theForm.jud.focus();
return (false);
}


validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
strEmail = theForm.email.value;
if (strEmail.search(validRegExp) == -1 || theForm.email.value == "") 
   {
alert("Va rugam completati un email valid!");
theForm.email.focus();
return (false);
}





}

function form_validator_en(theForm)
{

if (theForm.nume.value == 0)
{
alert("Please, fill the 'Name' field!");
theForm.nume.focus();
return (false);
}

if (theForm.tel.value == "")
{
alert("Please, fill the 'Phone' field!");
theForm.tel.focus();
return (false);
}

if (theForm.str.value == "")
{
alert("Please, fill the 'Adrress' field!!");
theForm.str.focus();
return (false);
}

if (theForm.loc.value == "")
{
alert("Please, fill the 'City' field!!");
theForm.loc.focus();
return (false);
}

if (theForm.jud.value == "")
{
alert("Please, fill the 'Country' field!!");
theForm.jud.focus();
return (false);
}


validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
strEmail = theForm.email.value;
if (strEmail.search(validRegExp) == -1 || theForm.email.value == "") 
   {
alert("Please, put a valid mail!");
theForm.email.focus();
return (false);
}



}
