//Hizkuntza kontrolatu
function hizkuntza_aldatu()
{
		var url,zenbatgarren,orria
		url=window.location.href
		zenbatgarren=url.length-url.lastIndexOf("/")
		orria=url.substring((url.lastIndexOf("/")+1),url.length)	
		
		if (document.hizkuntza.zein.value=="eu")
		{
		window.location.href="../index.php";
		}
		else
		{
		window.location.href="../es/index.php";
		}
}
function hizkuntza_aldatu_path()
{
		var url,zenbatgarren,orria
		url=window.location.href
		zenbatgarren=url.length-url.lastIndexOf("/")
		orria=url.substring((url.lastIndexOf("/")+1),url.length)	
		
		if (document.hizkuntza.zein.value=="eu")
		{
		window.location.href="../../index.php";
		}
		else
		{
		window.location.href="../es/index.php";
		}
}
function imprSelec(nombre)
{
  var ficha = document.getElementById(nombre);
  var ventimp = window.open(' ', 'popimpr');
  ventimp.document.write( ficha.innerHTML );
  ventimp.document.close();
  ventimp.print( );
  ventimp.close();
}