Index: wp-admin/post.php
===================================================================
--- wp-admin/post.php	(revision 3503)
+++ wp-admin/post.php	(working copy)
@@ -74,16 +74,25 @@
 	
 	if ($post->post_status == 'static')
 		include('edit-page-form.php');
-	elseif ($post->post_status == 'attachment')
-		include('edit-attachment-form.php');
 	else
 		include('edit-form-advanced.php');
 
 	?>
 	<div id='preview' class='wrap'>
 	<h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
-		<iframe src="<?php the_permalink(); ?>" width="100%" height="600" ></iframe>
-	</div>
+	<script type="text/javascript">
+	<!--
+      function show_preview() {
+        var elm = document.getElementById("frm_preview");
+        elm.src = "<?php the_permalink(); ?>"
+        elm.height = "600"
+        return false;
+      }
+	-->
+	</script>
+	<a href="#preview-post" onclick="show_preview();">Show Preview</a>
+		<iframe id="frm_preview" src="" width="100%" height="10" ></iframe>	
+</div>
 	<?php
 	break;
 
@@ -202,7 +211,7 @@
 	echo "<input type='hidden' name='noredir' value='1' />\n";
 	echo "<input type='submit' value='" . __('Yes') . "' />";
 	echo "&nbsp;&nbsp;";
-	echo "<input type='button' value='" . __('No') . "' onclick='self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&amp;c=1#comments';' />\n";
+	echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&amp;c=1#comments';\" />\n";
 	echo "</form>\n";
 	echo "</div>\n";
 

