function NewWindow(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
} 


<!--
var newWindow = null

function VentanaFoto(NombreVentana,Imagen,AltText,Ancho,Alto)
{	//alert(NombreVentana+'-'+Imagen+'-'+AltText+'-'+Ancho+'-'+Alto)
	if (Ancho<=0)	Ancho=600;
	if (Alto<=0)	Alto=400;

	newWindow = window.open("",NombreVentana,"width="+ Ancho +",height="+ Alto +",status,noscrollbars");
	if (newWindow!= null)
	{
		var newContent = '';
		newContent += '<html><head><title>'+ AltText +'.</title>';
		newContent += '</head>';

		newContent += '<body bgcolor="#777e91" text="#dddddd" link="#ffffff" vlink="#eeeeee" alink="#ff0000" marginheight=0 topmargin=0 marginwidth=0 leftmargin=0>';
		newContent += '<img src="'+ Imagen +'" width='+ Ancho +' height='+ Alto +' border="0" alt="'  +AltText+ '">';

		newContent += '<div id="AreaTexto" style="position: absolute; left: 0px; top: 0px; width: '+ Ancho +'; height: '+ Alto +'; padding: 0; visibility: visible; z-index: 2; text-align: right; vertical-align: bottom; ">';
		newContent += '<table border="0" width="'+ Ancho +'" height="'+ Alto +'" cellspacing="2" cellpadding="2">';
		newContent += '<tr><td valign="bottom" align="right">';
		newContent += '<p style="font-family: verdana, arial, times new roman; font-size: 10pt; color: #eeeeee; font-weight: bold; background-image: url(pics/imgtitle.gif);">&nbsp;'+ AltText +'&nbsp; </p></td>';
		newContent += '<form>'
		newContent += '<td width="1%" valign="bottom" align="right"><font face="Arial" size="1"><b><input type="button" value=" x " onClick="self.close()"></b></font></td>'
		newContent += '</tr>'
		newContent += '</form>'
		newContent += '</table>';
		newContent += '</div>';


		newContent += '</body></html>'
		newWindow.document.write(newContent)
	}
}
