function afisez(s)
 {
  document.getElementById(s).style.visibility="visible";
  }
 function ascund(s)
 {
  document.getElementById(s).style.visibility="hidden";
  }
 function verific(){
	var obj1=document.formular.nume.value;
	var obj2=document.formular.prenume.value;
	var obj3=document.formular.telefon.value;
	var obj5=document.formular.mesaj.value;
	if(obj1.length>0 && obj2.length>0 && obj3.length>0 && obj5.length>0) {
	   document.formular.submit();}
	   else{
		   alert("Completati campurile formularului marcate cu asterisc");
		  		  	   }
   }
 
  
  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 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");
   }
   }
  
