//*********************************************//
//Funcion para abrir el popup con titulo y que ademas se redimensione
function winopen(pagina){

features="top=300,left=300,resizable=YES,menubar=no,toolbar=no,directories=no,location=no,scrollbars=0,status=no"
win = window.open("","foto",features);
	with (win.document){
	writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
	writeln('<sc'+'ript>');
	writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
	writeln('isNN=(navigator.appName=="Netscape")?1:0;');
	writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	writeln('function reSizeToImage(){');
	writeln('document.title="'+pagina+'";');
	

	writeln('if (isNN){');
	writeln('width=document.images["George"].width;');
	writeln('height=document.images["George"].height;');
	writeln('window.innerWidth=width+2;');
	writeln('window.innerHeight=height+2;');
	writeln('}');	

	writeln('if (isIE){');
	writeln('width=document.images[0].width;');
	writeln('height=document.images[0].height;');
	writeln('window.resizeTo(width,height+50);');
	writeln('}');	
	
	writeln('var positionLeft=(screen.width-width)/2;');
	writeln('var positionTop=(screen.height-height)/2;');
	writeln('window.moveTo(positionLeft, positionTop);');
	writeln('window.focus();}');
	
	writeln('</sc'+'ript>');
	writeln('</head><body bgcolor="#CCCCCC" scroll="no" onload="reSizeToImage();">')
	writeln('<img name="George" src="'+pagina+'.jpg"; style="display:block"></body></html>');
	close();		
	}
}

//*********************************************//


//-->
