
//Pedazo de Ņapa
if(self==top){//compruebo que estoy dentro de la estructura de frames. En caso contrario, me enmarco
	document.newFrameWin=new Object();//Mis datos
	document.newFrameWin['url']= self.document.location.href;//url del maarco central de la nueva ventana
	document.newFrameWin['voidUrl']= "about:blank";//url del maarco central de la nueva ventana
	document.newFrameWin['titulo']=self.document.title;//titulo de la nueva ventana

	//reescribo la estructura de marcos	
	document.write("<html><head><title>"+document.newFrameWin.titulo+"</title></head>");
	document.write("<frameset rows=\"0,*\" border=0 frameborder=\"no\">");
	document.write("<frame  name= \"voidFrame\" noresize scrolling=\"NO\" marginwidth=0 marginheight=0 frameborder=\"NO\" src="+document.newFrameWin.voidUrl+">");
	document.write("<frame  name= \"mainFrame\" noresize  marginwidth=0 marginheight=0 frameborder=\"NO\" src="+document.newFrameWin.url+">");
	document.write("</frameset></html>");
	window.frames['mainFrame'].location.href=document.newFrameWin.url;
//	alert("corregido");
	top.moveTo(0,0);//me recoloco
	top.resizeTo(screen.availWidth,screen.availHeight);
}
