function activlinksus(id)
{
        if(id!='')
		{
			document.getElementById(id).style.backgroundColor="#FFC20F";
			document.getElementById(id).style.padding="3px";
			document.getElementById(id).style.margin="3px";
			document.getElementById(id).style.fontFamily="Verdana";
			document.getElementById(id).style.fontSize="12px";   
			document.getElementById(id).style.textAlign="center";
			document.getElementById(id).style.textDecoration="none";
			document.getElementById(id).style.color="#000";
		
		return true;
	   }
}

function activlinkstanga(id)
{
        if(id!='')
		{
			document.getElementById(id).style.background="url(http://localhost/siteuri/nicu/previs/images/bttn_ov.jpg) no-repeat left top";
			document.getElementById(id).style.display="block";
			document.getElementById(id).style.width="164px";
			document.getElementById(id).style.padding="11px 0px 0px 20px";
			document.getElementById(id).style.textDecoration="none";
			document.getElementById(id).style.fontFamily="Verdana";
			document.getElementById(id).style.fontSize="12px";   
			document.getElementById(id).style.textAlign="left";
			document.getElementById(id).style.color="#fff";
			return true;
        }
}

var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=900px,width=800px;');
	if (window.focus) {newwindow.focus()}
}

function contact()
{
	     var nume = document.getElementById('id_numele').value;
	  	 if(nume==false)
	     {
		   document.getElementById('error_contact').style.display='';
		   document.getElementById('error_contact').innerHTML="Numele";
		   return false;
	     }
		 
		 var reg = /^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,3}$/
	     var email = document.getElementById('id_email').value;
	     if(reg.exec(email)==null)
	     {
		  document.getElementById('error_contact').style.display='';
		  document.getElementById('error_contact').innerHTML="Adresa de email nu este corecta !";
		  return false;
	     }
		 
		 var detalii = document.getElementById('id_detalii').value;
	  	 if(detalii==false)
	     {
		   document.getElementById('error_contact').style.display='';
		   document.getElementById('error_contact').innerHTML="Detalii !";
		   return false;
	     }
		 
		 var user_text = document.getElementById('user_text').value;
		 var sesiune_cod = document.getElementById('sesiune_cod').value;
		 if(user_text!=sesiune_cod)
	     {
		   document.getElementById('error_contact').style.display='';
		   document.getElementById('error_contact').innerHTML="Codul de verificare nu este corect !";
		   return false;
	     } 
		 
  return true;
}
