Index: wwwroot/css/print.css
===================================================================
--- wwwroot/css/print.css	(revision 0)
+++ wwwroot/css/print.css	(revision 0)
@@ -0,0 +1,119 @@
+body table.maintable {
+	font-size: 80%;
+}
+
+.tdright {
+	text-align: right;
+}
+
+.tdleft {
+	text-align: left;
+}
+
+.tdcenter {
+	text-align: center;
+}
+
+table.objectview {
+	width: 100%;
+}
+
+td.pcleft {
+	vertical-align: top;
+	text-align: center;
+}
+
+td.pcright {
+	vertical-align: top;
+	text-align: center;
+}
+
+.mainheader {
+	display: none;
+}
+
+.menubar {
+	display: none;
+}
+
+#foldertab li {
+	list-style: none;
+	margin: 0;
+	display: none;
+}
+
+div.greeting {
+	display: none;
+}
+
+div.searchform {
+	display: none;
+}
+
+div.greynavbar {
+	border-top-width: 0px;
+}
+
+.greynavbar * a[class=std] {
+	display: none;
+}
+
+.greynavbar * a[class=attn] {
+	display: none;
+}
+
+td.atom.state_Th div a {
+	color: red;
+	font-weight: bold;
+}
+
+td.atom div a {
+	font-weight: normal;
+}
+
+.portlet {
+	text-align: center;
+	background-color: #ffffff;
+	border: 1px dashed #3c78b5;
+	padding: 5px;
+	margin: 5px;
+}
+
+.portlet h2 {
+	padding: 0px;
+	margin: 0px;
+}
+.portlet img {
+	display: none;
+}
+.portlet a {
+	color: black;
+	text-decoration: none;
+}
+
+.rack {
+	font: bold 12px Verdana, sans-serif;
+	border: 1px solid black;
+	border-top: 0px solid black;
+	border-right: 0px solid black;
+	text-align: center;
+}
+
+.rack th {
+	border-top: 1px solid black;
+	border-right: 1px solid black;
+}
+
+.rack td {
+	border-top: 1px solid black;
+	border-right: 1px solid black;
+}
+
+th.sticker {
+	text-align: right;
+}
+
+td.sticker {
+	text-align: left;
+}
+
Index: wwwroot/inc/interface.php
===================================================================
--- wwwroot/inc/interface.php	(revision 4775)
+++ wwwroot/inc/interface.php	(working copy)
@@ -7004,11 +7004,11 @@
 	echo implode(' : ', array_reverse ($items));
 	echo "</td>";
 	// Search form.
-	echo "<td><table border=0 cellpadding=0 cellspacing=0><tr><td>Search:</td>";
+	echo "<td><div class=searchform><table border=0 cellpadding=0 cellspacing=0><tr><td>Search:</td>";
 	echo "<form name=search method=get><td>";
 	echo '<input type=hidden name=page value=search>';
 	// This input will be the first, if we don't add ports or addresses.
-	echo "<input type=text name=q size=20 tabindex=1000></td></form></tr></table></td>";
+	echo "<input type=text name=q size=20 tabindex=1000></td></form></tr></table></div></td>";
 }
 
 function getTitle ($pageno)
Index: wwwroot/inc/init.php
===================================================================
--- wwwroot/inc/init.php	(revision 4775)
+++ wwwroot/inc/init.php	(working copy)
@@ -96,6 +96,7 @@
 	100 => "<link rel='ICON' type='image/x-icon' href='?module=chrome&uri=pix/favicon.ico' />",
 );
 addCSS ('css/pi.css');
+addCSS ('css/print.css', FALSE, 'print');
 
 if (!isset ($script_mode) or $script_mode !== TRUE)
 {
Index: wwwroot/inc/interface-lib.php
===================================================================
--- wwwroot/inc/interface-lib.php	(revision 4775)
+++ wwwroot/inc/interface-lib.php	(working copy)
@@ -532,7 +532,7 @@
 // They automatically appear in the <head> of your page.
 // $data is a CSS filename, or CSS code w/o tags around, if $inline = TRUE
 // Styles are included in the order of adding.
-function addCSS ($data, $inline = FALSE)
+function addCSS ($data, $inline = FALSE, $media = "screen")
 {
 	static $styles = array();
 	static $seen_filenames = array();
@@ -551,6 +551,7 @@
 		(
 			'type' => 'file',
 			'style' => $data,
+			'media' => $media,
 		);
 		$seen_filenames[$data] = 1;
 	}
@@ -569,7 +570,7 @@
 		if ($item['type'] == 'inline')
 			echo '<style type="text/css">' . "\n" . trim ($item['style'], "\r\n") . "\n</style>\n";
 		elseif ($item['type'] == 'file')
-			echo "<link rel=stylesheet type='text/css' href='?module=chrome&uri=${item['style']}' />\n";
+			echo "<link rel=stylesheet type='text/css' href='?module=chrome&uri=${item['style']}' media='${item['media']}' />\n";
 
 	// add JS scripts
 	foreach (addJS (NULL) as $group_name => $js_list)
