function afisez(s)
 {
  document.getElementById(s).style.visibility="visible";
  }
 function ascund(s)
 {
  document.getElementById(s).style.visibility="hidden";
  }
 function verific1(){
var obj1=document.formular.nume.value;
var obj2=document.formular.telefon.value;
var obj3=document.formular.mail.value;
var obj4=document.formular.mesaj.value;
if(obj1.length>0 && obj2.length>0 && obj3.length>0 && obj4.length>0) {
   document.formular.submit();}
   else if(obj1.length>0 && obj2.length>0 && obj3.length>0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n mesaj");   
   }
   else if(obj1.length>0 && obj2.length>0 && obj3.length==0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -email\n\n -mesaj");
   }
   else if(obj1.length>0 && obj2.length==0 && obj3.length==0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -telefon\n\n -email\n\n -mesaj");
   }
   else if(obj1.length==0 && obj2.length==0 && obj3.length==0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -telefon \n\n -email \n\n -mesaj");
   }
   else if(obj1.length>0 && obj2.length>0 && obj3.length==0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -email");
   }
   else if(obj1.length>0 && obj2.length==0 && obj3.length==0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -telefon \n\n -email");
   }
   else if(obj1.length==0 && obj2.length==0 && obj3.length==0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -telefon \n\n -email");
   }
   else if(obj1.length>0 && obj2.length==0 && obj3.length>0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -telefon");
   }
   else if(obj1.length==0 && obj2.length==0 && obj3.length>0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -telefon");
   }
   else if(obj1.length==0 && obj2.length>0 && obj3.length>0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -nume");
   }
   else if(obj1.length==0 && obj2.length>0 && obj3.length==0 && obj4.length>0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -email");
   }
   else if(obj1.length==0 && obj2.length>0 && obj3.length>0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -mesaj");
   }
   else if(obj1.length>0 && obj2.length==0 && obj3.length>0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -telefon \n\n -mesaj");
   }
   else if(obj1.length==0 && obj2.length==0 && obj3.length>0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -telefon \n\n -mesaj");
   }
   else if(obj1.length==0 && obj2.length>0 && obj3.length==0 && obj4.length==0)
   {
   alert("Nu ati complectat:\n\n -nume \n\n -email \n\n -mesaj");
   }
   }
 
  
  var n=12;
function initial()
  {i=0;
    document.formular.inai.style.background='RGB(64,0,128)';
    document.formular.inap.style.background='RGB(215,215,233)';
  }
 function inainte()
  {
	  if(i!=n)
	  {
    i=i+1;
    nume="imagini/g"+i+".jpg";
    document.g.src=nume;
    document.formular.inai.style.background='RGB(64,0,128)';
    document.formular.inap.style.background='RGB(64,0,128)';
}
else
{
nume="imagini/g"+i+".jpg";
    document.g.src=nume;
    document.formular.inai.style.background='RGB(215,215,233)';
    document.formular.inap.style.background='RGB(64,0,128)';
}
  }
  function inapoi()
  {
    
    if(i!=0) 
    {
	    i=i-1;
    nume="imagini/g"+i+".jpg";
    document.g.src=nume;
    document.formular.inai.style.background='RGB(64,0,128)';
    document.formular.inap.style.background='RGB(64,0,128)';
}
else{
nume="imagini/g"+i+".jpg";
    document.g.src=nume;
    document.formular.inai.style.background='RGB(64,0,128)';
    document.formular.inap.style.background='RGB(215,215,233)';
}
}

function text1(t)

 {
   document.getElementById(t).style.color='white';

  }
 function text2(t)
 {
   document.getElementById(t).style.color='black';

  }
function fond1(t)

 {
   document.getElementById(t).style.background='url("imagini/buton1.jpg")';

  }
 function fond2(t)
 {
   document.getElementById(t).style.background='url("imagini/buton2.jpg")';

  }
  
 function fondul1(t)

 {
   document.getElementById(t).style.background='red';

  }
 function fondul2(t)
 {
   document.getElementById(t).style.background='blue';

  } 
  
  function font1(t)

 {
   document.getElementById(t).style.weight='bold';

  }
 function font2(t)
 {
   document.getElementById(t).style.weight='normal';

  } 
  
   function verific2(){
var obj1=document.formular.nume.value;
var obj2=document.formular.email.value;


if(obj1.length>0 && obj2.length>0 && document.formular.serviciu.selectedIndex!="0") {
   document.formular.submit();}
   else{
		   alert("Completati sau selectati campurile formularului marcate cu asterisc");
   }
  
} 
