var winfoco1;
function abrirventana(theURL,thewidth,theheight,scroll) {
	var Sx=((screen.availWidth - thewidth)/2)-5;
	var Sy=((screen.availHeight - theheight)/2)-15;
	winfoco1 = window.open (theURL,'Info','width=' + thewidth + 'px,height=' + theheight + 'px,top=' + Sy + 'px,left=' + Sx + 'px,status=0,scrollbars=' + scroll + ',resizable=0');
	if(javascript_version > 1.0) {
		setTimeout('winfoco1.focus();',250);
	}
}

var winfoco2;
function openfoto(foto) {
	var Sx=((screen.availWidth - 700)/2)-5;
	var Sy=((screen.availHeight - 500)/2)-15;
	winfoco2 = window.open (foto,'Fotos','width=700px,height=500px,top=' + Sy + 'px,left=' + Sx + 'px,status=0,scrollbars=1,resizable=1');
	if(javascript_version > 1.0) {
		setTimeout('winfoco2.focus();',250);
	}
}

var winfoco3;
function openfoto2(foto) {
	var Sx=((screen.availWidth - 700)/2)-5;
	var Sy=((screen.availHeight - 500)/2)-15;
	winfoco2 = window.open (foto,'Fotos','width=700px,height=500px,top=' + Sy + 'px,left=' + Sx + 'px,status=0,scrollbars=0,resizable=0');
	if(javascript_version > 1.0) {
		setTimeout('winfoco2.focus();',250);
	}
}

function imp(pag) {
	var Sx=((screen.availWidth - 680)/2)-5;
	var Sy=((screen.availHeight - 400)/2)-15;
	window.open (pag,'Imprimir','width=680px,height=400px,top=' + Sy + 'px,left=' + Sx + 'px,status=0,scrollbars=1,resizable=1');
}

function imprimir() {
  if (window.print)
    window.print()
  else
    alert("Disculpe, su navegador no soporta esta opción.");
}
