function over(img,ref) { document.images[img].src = ref; }  
function out(img,ref)  { document.images[img].src = ref; } 
function ow(f,x,y) {
myWin=open(f,"displayWindow","width="+x+",height="+y+",status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
myWin.focus();
}

function popup(title,archivo,ancho,alto) {
	var hor;
	var ver;
	var ubix;
	var ubiy;
	ubix=ancho/2;
	ubiy=alto/2;
	hor= screen.width/2-ubix;
	ver= screen.height/2-ubiy;
	popwin=window.open("","_blank","left="+hor+",top="+ver+",toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,width="+ancho+",height="+alto);
	popwin.document.open();
	popwin.document.write('<html><head><title>'+title+'</title></head><body bgcolor=white scroll=no   topmargin=0 leftmargin=0 rightmargin=0 bottomargin=0 marginheight=0 marginwidth=0>  <div style="position: absolute; top:0px;left:0px"><a href="javascript:window.close()">  <img src="'+archivo+'" width="'+ancho+'" border="0"></a></div></body></html>');
	popwin.document.close();
}
function popup_prn(title,archivo,ancho,alto) {
	var hor;
	var ver;
	var ubix;
	var ubiy;
	ubix=ancho/2;
	ubiy=alto/2;
	hor= screen.width/2-ubix;
	ver= screen.height/2-ubiy;
	popwin=window.open("","_blank","left="+hor+",top="+ver+",toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=no,width="+ancho+",height="+alto);
	popwin.document.open();
	popwin.document.write('<html><head><title>'+title+'</title></head><body onload="window.print()" bgcolor=white scroll=no   topmargin=0 leftmargin=0 rightmargin=0 bottomargin=0 marginheight=0 marginwidth=0>  <div style="position: absolute; top:0px;left:0px"><a href="javascript:window.close()">  <img src="'+archivo+'" width="'+ancho+'" border="0"></a></div></body></html>');
	popwin.document.close();
}

