function VentanaNombres(id)
  {
  var urlstring = '/index.php/es/servicios/nombres/?page=VentanaNombres&id=' + id;
  newWindow = window.open(urlstring,'TodosLosNombres','height=360,width=420,titlebar=no,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no')
  newWindow.focus();
  }

function viewFlash(flash,width,height)
  {
  var urlstring = '/index.php/es/multimedia/animaciones/?page=viewFlash&flash=' + flash + '&width=' + width + '&height=' + height;
  newWindow = window.open(urlstring,'viewFlash','height='+height+',width='+width+',titlebar=no,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no')
  newWindow.focus();
  }

function abrirImagen(imagen,width,height)
  {
  var urlstring = '/share/ventanaPopUp.php?file=' + imagen + '&width=' + width + '&height=' + height;
  var newWidth = eval(width) + 120;
  var newHeight = eval(height) + 80;
  newWindow = window.open(urlstring,'ImagenPopUp','height='+newHeight+',width='+newWidth+',titlebar=no,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no')
  newWindow.focus();
  }


function openWindow(url)
  	{
		window.open(url,null, "width=640,status=yes,toolbar=no,menubar=no,location=no");
  	}

function triodos()
{
	var triodos = document.getElementById('TRIODOS');
	var mujer = document.getElementById('mujer');
//	var triodostemp = document.getElementById('SPANTRIODOS');
	
	//alert(triodostemp.innerHTML.replace(/\'/g,"\\\'").replace(/\"/g,"\\\"").replace(/\//g,"\\\/"));
//triodos.innerHTML="xx";
	if(document.getElementsByName('FORM[pais]')[0].value == 'Espaņa')
	{
//var html=triodostemp.childNodes[0].nodeValue;
//		triodos.innerHTML = html;
//		alert(triodos.innerHTML);
		//triodostemp.innerHTML='';
		triodos.style.display='block';
		if(mujer)
		mujer.style.display='block';
	}
	else if(triodos.style.display!='none')
	{
//		triodostemp.innerHTML = triodos.innerHTML;
//		triodos.innerHTML ='';
		triodos.style.display='none';	
		if(mujer)
		mujer.style.display='none';
	}
}

function abril(id){ //cerral!!!!
	var divAbril = document.getElementById(id);
	if(divAbril.style.display!='none')
	{
		divAbril.style.display='none';
	}
	else {
		divAbril.style.display='block';

	}
}
