function form_validator(theForm)
{

if (theForm.id_dom.value == 0)
{
alert("Alegeti domeniul si subdomeniul!");
theForm.id_dom.focus();
return (false);
}


if (theForm.nume.value == "")
{
alert("Trebuie sa completati numele!");
theForm.nume.focus();
return (false);
}




if (theForm.pret.value == "" || theForm.pret.value == 0)
{
alert("Trebuie sa completati pretul!");
theForm.pret.focus();
return (false);
}


}


function form_validator1(theForm)
{

if (theForm.id_dom.value == 0)
{
alert("Alegeti domeniul si subdomeniul!");
theForm.id_dom.focus();
return (false);
}


if (theForm.nume.value == "")
{
alert("Trebuie sa completati numele!");
theForm.nume.focus();
return (false);
}




if (theForm.pret.value == "" || theForm.pret.value == 0)
{
alert("Trebuie sa completati pretul!");
theForm.pret.focus();
return (false);
}



if (theForm.pret1.value == "" || theForm.pret1.value == 0)
{
alert("Trebuie sa completati pretul redus!");
theForm.pret1.focus();
return (false);
}


}





function form_validator3(theForm)
{

if (theForm.id_dom.value == 0)
{
alert("Alegeti domeniul!");
theForm.id_dom.focus();
return (false);
}


if (theForm.nume.value == "")
{
alert("Trebuie sa completati numele!");
theForm.nume.focus();
return (false);
}


if (theForm.descr.value == "")
{
alert("Trebuie sa completati campul Descriere!");
theForm.descr.focus();
return (false);
}


}

function form_validator2(theForm)
{

if (theForm.id_dom.value == 0)
{
alert("Alegeti subdomeniul!");
theForm.id_dom.focus();
return (false);
}


if (theForm.nume.value == "")
{
alert("Trebuie sa completati numele!");
theForm.nume.focus();
return (false);
}



if (theForm.descr.value == "")
{
alert("Trebuie sa completati campul Descriere!");
theForm.descr.focus();
return (false);
}

}
