function abreFoto(ruta, x, y, titulo) {
	selection = ruta;
	ancho = x;
	alto = y;
	myWindow = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=" + ancho + ",height=" + alto + "");
	myWindow.document.open();				
	myWindow.document.write("<HTML><HEAD>");
	myWindow.document.write("<TITLE>Esmena - " + titulo + "  </TITLE>");
	myWindow.document.write("</HEAD><BODY leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
	myWindow.document.write("<IMG HSPACE='0' VSPACE='0' HEIGHT=" + alto + " ALIGN='T0P' WIDTH='" + ancho + "' BORDER='0' SRC='" + selection + "'>");
	myWindow.document.write("</BODY>");
	myWindow.document.write("</HTML>");
	myWindow.document.close();
	myWindow.focus();
}

function historia(ruta) {
	url = ruta; 
	window.open(url, "Vista", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=760,height=550");
}

function diagrama(ruta) {
	url = ruta; 
	window.open(url, "Vista", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=835,height=550");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}