Index: /FCKeditor/branches/features/new_samples/_samples/html/sample16.html
===================================================================
--- /FCKeditor/branches/features/new_samples/_samples/html/sample16.html	(revision 2259)
+++ /FCKeditor/branches/features/new_samples/_samples/html/sample16.html	(revision 2260)
@@ -34,10 +34,16 @@
 {
 	var html = FCKeditorAPI.GetInstance( 'FCKeditor1' ).GetData() ;
-	var flash = document.getElementById( 'fckFlash' );
-	flash.setData( html );
+	var flash = document.getElementById( 'fckFlash' ) ;
+	flash.setData( html ) ;
+}
+
+function init()
+{
+	var so = new SWFObject("sample16.swf", "fckFlash", "550", "400", "8", "#ffffff") ;
+	so.write("fckFlashContainer") ;
 }
 	</script>
 </head>
-<body>
+<body onload="init();">
 	<h1>
 		FCKeditor - JavaScript - Sample 16
@@ -49,13 +55,12 @@
 	</div>
 	<hr />
-	<form target="_blank" action="">
-		<table width="100%" cellpadding="0" cellspacing="0">
-			<tr>
-				<td style="width: 100%">
-					<script type="text/javascript">
+	<table width="100%" cellpadding="0" cellspacing="0">
+		<tr>
+			<td style="width: 100%">
+				<script type="text/javascript">
+<!--
 if ( document.location.protocol == 'file:' )
 	alert( 'Warning: This samples does not work when loaded from local filesystem due to security restrictions implemented in Flash.'
      			+ '\n\nPlease load the sample from a web server instead.') ;
-<!--
 // Automatically calculates the editor base path based on the _samples directory.
 // This is usefull only for these samples. A real application should use something like this:
@@ -75,16 +80,11 @@
 oFCKeditor.Create() ;
 //-->
-					</script>
-					<input type="button" value="Send to Flash" onclick="sendToFlash();" />
-				</td>
-				<td id="fckFlashContainer" valign="top" style="padding-left: 15px">
-				</td>
-			</tr>
-		</table>
-	</form>
-	<script type="text/javascript">
-		var so = new SWFObject("sample16.swf", "fckFlash", "550", "400", "8", "#ffffff");
-		so.write("fckFlashContainer");
-	</script>
+				</script>
+				<input type="button" value="Send to Flash" onclick="sendToFlash();" />
+			</td>
+			<td valign="top" style="padding-left: 15px" id="fckFlashContainer">
+			</td>
+		</tr>
+	</table>
 </body>
 </html>
