dovrei creare una popup con ridimensionamento automatico con all'interno non un immagine am un oggeto flash
io ho provato così
codice:
function viewImgFlash( flash, autore,titolo) {
		w = window.open('','','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=200,height=200');	
		w.document.write( "<html><head><title>"+autore+"</title>" );
		w.document.write( "<script language='JavaScript'>\n");
		w.document.write( "function autoSize() {\n");
		w.document.write( "resizeTo(document.embeds[0].width+27,document.embeds[0].height+122)\n");
		w.document.write( "	self.focus()\n");
		w.document.write("}\nalert(rilevati "+document.embeds.lenght+")");
		w.document.write( "</script>\n");
		
		w.document.write( "</head><body style='margin:0px:padding:0px;' onLoad='javascript:autoSize();'>" );
		w.document.write( "<div style='margin:0px;padding:0px;'>");
		w.document.write("<a href='javascript:top.window.close();'>");
		w.document.write("<object type='application/x-shockwave-flash' data='"+flash+"'style='margin:0px:padding:2px;border:1px solid #000;'>
						<param name='movie' value='"+flash+"' />
						<param name='quality' value='best' /></object>");
		w.document.write("</a>" );
		w.document.write( "</div></body></html>" );
		w.document.close();
}

ma ho questo errore
"previsto oggetto"

non va bene document.embeds