// JavaScript Document

function verifica_date(document)
{     

  	
	if(document.f_nume.value == ""){
        alert("Va rugam introduceti numele dumneavoastra!");
	   document.f_nume.focus();
		return false;
		}
   	if(document.f_prenume.value == ""){
        alert("Va rugam introduceti prenumele dumneavoastra!");
	   document.f_prenume.focus();
		return false;
		}
	
	
	
	if( document.f_firma.value == "" )
	{
		alert("Va rugam introduceti denumirea firmei!");
		document.f_firma.focus();
		return false;
	}
	
	if(document.f_tel.value == "" )
	{
		alert("Va rugam introduceti numarul Dvs de telefon!");
		document.f_tel.focus();
		return false;
	}
	if(document.nume_oras.value == "" )
	{
		alert("Va rugam alegeti o locatie pentru service!");
		document.nume_oras.focus();
		return false;
	}


	if(document.f_serie.value == "" )
	{
		alert("Va rugam completati campul serie sasiu!");
		document.f_serie.focus();
		return false;
	}
     var radio_choice = false;


// Loop from zero to the one minus the number of radio button selections
      for (counter = 0; counter < form_nom.f_ore.length; counter++)
      {
// If a radio button has been selected it will return true
// (If not it will return false)
    if (form_nom.f_ore[counter].checked)
      radio_choice = true; 
       }
 
       if (!radio_choice)
        {
// If there were no selections made display an alert box 
         alert("Va rugam selectati ora dorita")
        return (false);
           }



	if(document.f_text.value == "" )
	{
		alert(" Va rugam completati campul de descriere defectiune!");
		document.f_text.focus();
		return false;
	}
	
}
		
