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 decor1(t)

 {
   document.getElementById(t).style.decoration='none';

  }
 function decor2(t)
 {
   document.getElementById(t).style.decoration='underline';

  } 
  
  function font1(t)

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

  }
 function font2(t)
 {
   document.getElementById(t).style.color='RGB(36,37,70)';

  } 
  
  
      function schimbare0()
{
    {
        document.g.src="imagini/g0.jpg";
        document.getElementById("gmic0").style.background='RGB(140,240,60)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';

        
        }
    }
 function schimbare1()
{
    {
        document.g.src="imagini/g1.jpg";
        document.getElementById("gmic1").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';
        
        }
    }  
     function schimbare2()
{
    {
        document.g.src="imagini/g2.jpg";
        document.getElementById("gmic2").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';
  
        
        }
    } 
     function schimbare3()
{
    {
        document.g.src="imagini/g3.jpg";
        document.getElementById("gmic3").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';

        
        }
    } 
     function schimbare4()
{
    {
        document.g.src="imagini/g4.jpg";
        document.getElementById("gmic4").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';

        
        }
    } 
     function schimbare5()
{
    {
        document.g.src="imagini/g5.jpg";
        document.getElementById("gmic5").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';

        
        }
    } 
    function schimbare6()
{
    {
        document.g.src="imagini/g6.jpg";
        document.getElementById("gmic6").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';

        
        }
    } 
    function schimbare7()
{
    {
        document.g.src="imagini/g7.jpg";
        document.getElementById("gmic7").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic8").style.background='RGB(230,231,230)';

        
        }
    } 
    function schimbare8()
{
    {
        document.g.src="imagini/g8.jpg";
        document.getElementById("gmic8").style.background='RGB(140,240,60)';
    document.getElementById("gmic0").style.background='RGB(230,231,230)';
    document.getElementById("gmic1").style.background='RGB(230,231,230)';
    document.getElementById("gmic2").style.background='RGB(230,231,230)';
    document.getElementById("gmic3").style.background='RGB(230,231,230)';
    document.getElementById("gmic4").style.background='RGB(230,231,230)';
    document.getElementById("gmic5").style.background='RGB(230,231,230)';
    document.getElementById("gmic6").style.background='RGB(230,231,230)';
    document.getElementById("gmic7").style.background='RGB(230,231,230)';

        
        }
    } 
 
  
 
