function mostrarimagen(nombre_imagen,titulo,ancho,alto){
	var ventana=null;
	var img = new Image(ancho,alto);
	var width_img = img.width;
	var height_img = img.height;
	img.src = nombre_imagen;
	ventana=window.open('','','width='+width_img+',height='+height_img+',scrollbars=no,resizable=0,toolbar=0');
	ventana.document.write ('<html>\n');
	ventana.document.write (' <head>\n');
	ventana.document.write (' <title>'+titulo+'</title>\n');
//Para q no deje bajarse las imagenes en la nueva ventana con el boton drcho
	ventana.document.write (' <script language="JavaScript" src="../lib/botondrcho.js" type="text/JavaScript">\n');
	ventana.document.write (' </script>\n');
//Continuacion
	ventana.document.write (' </head>\n');
	ventana.document.write (' <body style="text-align:center; vertical-align:middle" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">\n');
	ventana.document.write ('<a href="JavaScript:this.close()" border="0">\n');
//El align=center en teoria no seria necesario pq esta en el body pero no quitarlo porque sino no funciona
	ventana.document.write (' <img src="' + img.src + '" height='+img.height+' width='+img.width+' border="0" align="center">\n');
	ventana.document.write ('</a>\n');
	ventana.document.write (' </body>\n');
	ventana.document.write ('</html>\n');
	ventana.document.close();
}

function mostrarflash(nombre_flash,titulo,ancho,alto){
	var ventana=null;
	var anchomas = ancho + 0;
	var altomas = alto + 0;
	ventana=window.open('','','width='+anchomas+',height='+altomas+',scrollbars=no,resizable=0,toolbar=0');
	ventana.document.write ('<html>\n');
	ventana.document.write (' <head>\n');
	ventana.document.write (' <title>'+titulo+'</title>\n');
	ventana.document.write (' </head>\n');
	ventana.document.write (' <body style="text-align:center; vertical-align:middle" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">\n');
	ventana.document.write (' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ancho+'" height="'+alto+'">\n');
	ventana.document.write ('   <param name="movie" value="' + nombre_flash + '">\n');
	ventana.document.write ('   <param name="quality" value="high">\n');
	ventana.document.write ('   <embed src="' + nombre_flash + '" align="center" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ancho+'" height="'+alto+'"></embed>\n');
	ventana.document.write (' </object>\n');
	ventana.document.write (' </body>\n');
	ventana.document.write ('</html>\n');
	ventana.document.close();
}	

function mostrarvideo(nombre_video,titulo,ancho,alto){
	var ventana=null;
	var anchomas = ancho + 20;
	var altomas = alto + 46;
	var altovideo = alto + 20;
	ventana=window.open('','','width='+anchomas+',height='+altomas+',scrollbars=no,resizable=0,toolbar=0');	
	ventana.document.write ('<html>\n');
	ventana.document.write (' <head>\n');
	ventana.document.write (' <title>'+titulo+'</title>\n');
	ventana.document.write (' </head>\n');
	ventana.document.write (' <body style="text-align:center; vertical-align:middle" leftmargin="0" topmargin="1" marginwidth="0" marginheight="10" bgcolor="#000000">\n');
	ventana.document.write (' <p>\n');
	ventana.document.write ('   <embed src="' + nombre_video + '" width="' +ancho+ '" height="'+altovideo+'">\n');
	ventana.document.write ('   </embed>\n');
	ventana.document.write (' </p>\n');
	ventana.document.write (' </body>\n');
	ventana.document.write ('</html>\n');
	ventana.document.close();
}	

function mostrartexto(texto,titulo,ancho,alto){
	var ventana=null;
	ventana=window.open('','','width='+ancho+',height='+alto+',scrollbars=no,resizable=0,toolbar=0');
	ventana.document.write ('<html>\n');
	ventana.document.write (' <head>\n');
	ventana.document.write (' <title>'+titulo+'</title>\n');
	ventana.document.write (' <link href="../estilos/estilosFotogrametria.css" rel="stylesheet" type="text/css">\n');
	ventana.document.write (' </head>\n');
	ventana.document.write (' <body leftmargin="1" topmargin="1" rightmargin="1" bottommargin="0" marginwidth="0" marginheight="50" bgcolor="#CC0000">\n');
	ventana.document.write (' <p class="Estilo_TextoNormal" align="justify">\n');
	ventana.document.write ('   ' +texto+ '\n');
	ventana.document.write (' </p>\n');
	ventana.document.write (' </body>\n');
	ventana.document.write ('</html>\n');
	ventana.document.close();
}


