
function imprSelec(nombre)
{
		var ficha = document.getElementById(nombre);
		var ventimp = window.open('../Paginas/VentanaImpresion.htm', 'popimpr');

		ventimp.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
		ventimp.document.write('<html>');
		ventimp.document.write('<head>');
		ventimp.document.write('<title>Ventana Impresion</title>');
		ventimp.document.write('<meta name=vs_defaultClientScript content="JavaScript">');
		ventimp.document.write('<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">');
		ventimp.document.write('<!--links hojas de estilo -->');
		ventimp.document.write('<LINK href="../css/estilo.css" type="text/css" rel="stylesheet">');
		ventimp.document.write('<LINK href="../css/cssIET.css" type="text/css" rel="stylesheet">');
		ventimp.document.write('</head>');
		ventimp.document.write('<body >');

		ventimp.document.write(ficha.innerHTML );

		ventimp.document.write('</body>');
		ventimp.document.write('</html>');

		ventimp.document.close();
		ventimp.print( );
		ventimp.close();
} 


function modifAction(strAction){
	if (strAction != "")
	{
		document.forms[0].action = strAction;
		document.forms[0].target = "_blank";
		document.forms[0].submit();
		return false;
	}
}

function ControlKeyPress()
{
	if (event.keyCode == 13)
	{
		event.returnValue = false;
		event.cancel = true;
		document.getElementById('btnBuscar').click();
	}
}

function MM_findObj(n, d) 
{ //v4.01
	var p,i,x;  
	if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) 
	{
		d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n]; 
	for (i=0;!x&&i<d.forms.length;i++) 
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
		x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); 
	return x;
}

function MM_showHideLayers()
{ //v6.0
	//var menu=event.srcElement;
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) 
		if ((obj=MM_findObj(args[i]))!=null) 
		{ 
			v=args[i+2];
			if (obj.style) 
			{ 
				obj=obj.style; 
				v=(v=='show')?'visible':(v=='hide')?'hidden':v;
			}
			obj.visibility=v;
			
		}
}

function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
	if (init==true) with (navigator) 
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
		{
			document.MM_pgW=innerWidth; 
			document.MM_pgH=innerHeight; 
			onresize=MM_reloadPage; 
		}
	}
	else 
		if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) 
			location.reload();
}

var IETLib = {
	funcionesInicio: new Array(),
	anadirFuncInicio: function( f )
	{
		IETLib.funcionesInicio[IETLib.funcionesInicio.length] = f;
	},
	flagInicio: false,
	Inicializar: function()
	{
		if (!IETLib.flagInicio)
		{
			var arr = IETLib.funcionesInicio;
			for ( var i = 0 ; i < arr.length; i++)
			{
				arr[i]();
			}
			IETLib.flagInicio = true;
		}
	}
}


function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					}
				node.onmouseout=function() {
					this.className=this.className.replace	(" over", "");
					}
			}
		}
	}
}

IETLib.anadirFuncInicio (startList);

window.onload = IETLib.Inicializar;

/*
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace	(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

*/

MM_reloadPage(true);

