function mostrarInfoPerfilesAlta(perfil,pacto)
{			
	this.divPerfiles = $("_perfiles");
	this.divPacto = $("infoPactoConfidencialidad");
	this.divPacto.style.display = "none";
	for(i=0;i<this.divPerfiles.childNodes.length;i++) {
		this.ePerfil = $(this.divPerfiles.childNodes[i].id);
		if(this.ePerfil.id!="_ePerfil" + perfil.substring(perfil.lastIndexOf("_")+1,perfil.length)) {
			this.ePerfil.style.display = "none";				
		} else {
			this.ePerfil.style.display = "block";				
		};
	};
						
	if(pacto=='True') {
		this.divPacto.style.display = "block";
    } else {
		this.divPacto.style.display = "none";
    };
}

function mostrarInfoPerfilesModifica(actual,perfil,pacto)
{						
	this.divPerfiles = $("_perfiles");
	this.divPacto = $("infoPactoConfidencialidad");
	this.divPacto.style.display = "none";
	for(i=0;i<this.divPerfiles.childNodes.length;i++) {
		this.ePerfil = $(this.divPerfiles.childNodes[i].id);
		if(this.ePerfil.id!="_ePerfil" + perfil.substring(perfil.lastIndexOf("_")+1,perfil.length)) {
			this.ePerfil.style.display = "none";				
		} else {
			this.ePerfil.style.display = "block";				
		};
	};
						
	if(perfil!=actual)
	{					
		if(pacto=='True') {					
			if(perfil.lastIndexOf('True')!=-1 && actual.lastIndexOf('True')!=-1) {
				this.divPacto.style.display = "none";
			} else {
				this.divPacto.style.display = "block";
			};			
		} else {
			this.divPacto.style.display = "none";
		};
	};
}

