	var cont=3;
	var ruta='';
	function insValue(number)
	{
	if(cont ==3){
		var row=document.getElementById(nombre).insertRow(3)
		var c1=row.insertCell(0)
		c1.innerHTML=	"<select name='domain' class='texfield'>";
		var lnd=document.getElementById('linkDomain');
		lnd.innerHTML = "Hide Domains";						
		cont++
	 }
	 
	/* else{
		var row=document.getElementById('tablalogueo')
		row.deleteRow(3);
		var lnd=document.getElementById('linkDomain');
		lnd.innerHTML = "Show Domains";		
		cont--; 
	 }*/
	}
	
	function getElements(nombre)
	{
	var a=document.getElementsByName(nombre)
//	alert(a.length + " elements!")
	}
	
	function showCatInfo(id){
	}
	
    function openMail(workEMail){
      window.open(ruta + 'EmailOneContact.do?workEMail='+ workEMail,'_blank', 'height=430,width=500,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no')
     }	
     
    function openSelectMail(){
      window.open(ruta + 'jsp/emailSelectContacts.jsp','_blank', 'height=480,width=500,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no')
     }	     
    function openChangePass(){
      window.open(ruta + 'jsp/changePassword.jsp','_blank', 'height=250,width=400,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no')
     }	
     
    function openAnswers(codep, codenet, word){
      window.open(ruta + 'jsp/viewCategoriesContact.jsp?codep='+codep+'&codenet='+codenet+'&word='+word,'_blank', 'height=500,width=650,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no')
     }	
     
    function openInstitutions(codep, word){
      window.open(ruta + 'jsp/viewInstitutionsContact.jsp?codep='+codep+'&word='+word,'_blank', 'height=500,width=640,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no')
     }	            
     
    function openForumBulletin(consecutive, tipo){
      var pag = "";
      if (tipo == 0) pag = "jsp/view_bulletin.jsp?consecutive=" + consecutive;
      else if (tipo == 1) pag = "jsp/view_bulletin.jsp?consecutive=" + consecutive;
      
      window.open(pag,'_blank', 'height=500,width=630,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no')
	}
	    
    function openURL(url){
      window.open(url,'_blank', 'height=500,width=650,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no')
     }	
     	    
	function expandForumBulletin(consecutive, tipo){
      if (tipo == 0){
      	var stl = document.getElementById("news" + consecutive).style.display;
      	for(i=0;i<totalNews;i++)
      		document.getElementById("news" + i).style.display = 'none';
      	if(stl == "" ) document.getElementById("news" + consecutive).style.display = 'none';
      	else document.getElementById("news" + consecutive).style.display = '';
       	
       }
      else if (tipo == 1){
      	var stl = document.getElementById("forums" + consecutive).style.display;
      	for(i=0;i<totalForums;i++)
      		document.getElementById("forums" + i).style.display = 'none';
      	if(stl == "" ) document.getElementById("forums" + consecutive).style.display = 'none';
      	else document.getElementById("forums" + consecutive).style.display = '';      
      }
	}
	
	 function openMailForum(codep){
       document.AddForumDevelopForm.action = appPath + "MailForumDevelop.do"
       document.AddForumDevelopForm.codep.value = codep;
	   document.AddForumDevelopForm.submit();     
      } 
      
	 function openCurriculum(id)
	 {
	  window.open('','pdfcv');
	  document.GenerateCVForm.codep.value = id;
	  document.GenerateCVForm.submit();     
	 } 
  