function imprimir(){
	window.print();
	}
function maximiza(){
	if(!document.all){
	//	document.location.reload();
	document.getElementById('oCabecera').style.display = 'block';
	document.getElementById('oCabeceraPlegada').style.display = 'none';
	}else{
	document.getElementById('oCabecera').style.display = 'block';
	document.getElementById('oCabeceraPlegada').style.display = 'none';

	}
}
function minimiza(){
	document.getElementById('oCabeceraPlegada').style.display = 'block';
	document.getElementById('oCabecera').style.display = 'none';

}

function abreFicha(archivo,barras){
	if(!barras || barras == 'no'){
	var ancho = (screen.width-500)/2;
	var alto = (screen.height-550)/2;
	window.open(archivo,'Ficha','width=500,height=550,left='+ancho+',top'+alto+',scrollbars='+barras);
	}else{
	var ancho = (screen.width-520)/2;
	var alto = (screen.height-550)/2;
	window.open(archivo,'Ficha','width=520,height=550,left='+ancho+',top'+alto+',scrollbars='+barras);
		}
}

function abreMatricula(archivo){
var ancho = (screen.width-741)/2;
var alto = (screen.height-550)/2;
	window.open(archivo,'Matriculacion','width=741,height=550,left='+ancho+',top'+alto+',scrollbars=yes,resizable=no');
}

function abreventana(purl){
	var ancho = (screen.width-520)/2;
	var alto = (screen.height-550)/2;
  window.open(purl,"nuevaventana",'width=520,height=550,left='+ancho+',top'+alto+',scrollbars=yes');
  return false;
}


function CheckIsIE()
{
		
	if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') 
	{ return true;}
	else 
	{ return false; }
} 

function imprimirPrensa()
{
	var ancho = (screen.width-520)/2;
	var alto = (screen.height-550)/2;
	if (CheckIsIE() == true)
	{
		var printWin = window.open('Imprimir','Imprimir','width=520,height=550,left=' + ancho + ',top' + alto +',scrollbars=yes');
		printWin.document.open();
		printWin.document.write(document.getElementById("iframeImprimir").innerHTML);	
		printWin.document.close();
		printWin.print();
	}
	else
	{
		window.frames['iframeImprimir'].focus();
		window.frames['iframeImprimir'].print();
	}
} 



// 2008 -> num cursos por pagina

function enviaNcPag (url) 
{
  url=url+"&nfpg="+document.fnfpag.nfpg.value;
  document.location=url;
}

