
function validate_form ( )
{
    valid = true;

    if ( document.formular_sent.pozitie.value == "" )
    {
        alert ( "Nu ati completat 'Postul dorit'." );
        valid = false;
    }
    if ( document.formular_sent.nume.value == "" )
    {
        alert ( "Nu ati completat 'Numele'." );
        valid = false;
    }
    if ( document.formular_sent.prenume.value == "" )
    {
        alert ( "Nu ati completat 'Prenumele'." );
        valid = false;
    }
    if ( document.formular_sent.adresa.value == "" )
    {
        alert ( "Nu ati completat 'Adresa curenta'." );
        valid = false;
    }
    if ( document.formular_sent.telefon.value == "" )
    {
        alert ( "Nu ati completat 'Numarul de telefon'." );
        valid = false;
    }
    if ( document.formular_sent.email.value == "" )
    {
        alert ( "Nu ati completat 'Adresa de email'." );
        valid = false;
    }
    if ( document.formular_sent.limba.value == "" )
    {
        alert ( "Nu ati completat 'Limba engleza'." );
        valid = false;
    }

    return valid;
}


function validate_form2 ( )
{
    valid = true;

    if ( document.formular_sent.pozitie.value == "" )
    {
        alert ( "Please fill in 'Job' box." );
        valid = false;
    }
    if ( document.formular_sent.nume.value == "" )
    {
        alert ( "Please fill in 'First Name' box." );
        valid = false;
    }
    if ( document.formular_sent.prenume.value == "" )
    {
        alert ( "Please fill in 'Last Name' box." );
        valid = false;
    }
    if ( document.formular_sent.adresa.value == "" )
    {
        alert ( "Please fill in 'Address' box." );
        valid = false;
    }
    if ( document.formular_sent.telefon.value == "" )
    {
        alert ( "Please fill in 'Phone' box." );
        valid = false;
    }
    if ( document.formular_sent.email.value == "" )
    {
        alert ( "Please fill in 'Email' box." );
        valid = false;
    }
    if ( document.formular_sent.limba.value == "" )
    {
        alert ( "Please fill in 'English' box." );
        valid = false;
    }

    return valid;
}

function showhide(index)
{
	if (document.getElementById(index).style.visible == "visible")
	{
		document.getElementById(index).style.visible = "hidden";
		document.getElementById(index).style.display = "none";
	}
	else
	{
		document.getElementById(index).style.visible = "visible";
		document.getElementById(index).style.display = "block";
	}
}