Код:
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
newwindow.document.writeln('<a title="Hit to close!" href="javascript:window.close();">');
newwindow.document.writeln('<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase=\"'www.download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'\" width='+ pwidth +' height='+pheight + '>');
newwindow.document.writeln('<param name='movie' value='+ url +'>');
newwindow.document.writeln('<param name='quality' value='high'>');
newwindow.document.writeln('<embed src='+ url +' quality='high' pluginspage='www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='+ pwidth +' height='+pheight +'><\/embed>');
newwindow.document.writeln('<\/object> ');
newwindow.document.writeln('<\/center> <\/body> <\/html>');