Index: temp/trunk/data/class/SC_View.php
===================================================================
--- temp/trunk/data/class/SC_View.php	(revision 2812)
+++ temp/trunk/data/class/SC_View.php	(revision 3441)
@@ -71,4 +71,6 @@
     // ¥Æ¥ó¥×¥ì¡¼¥È¤Î½èÍý·ë²Ì¤òÉ½¼¨
     function display($template) {
+		global $GLOBAL_ERR;
+		print($GLOBAL_ERR);
 		$this->_smarty->display($template);
 		if(ADMIN_MODE == '1') {
Index: temp/trunk/data/lib/slib.php
===================================================================
--- temp/trunk/data/lib/slib.php	(revision 3420)
+++ temp/trunk/data/lib/slib.php	(revision 3441)
@@ -5,4 +5,6 @@
 require_once( $INC_PATH ."/../conf/conf.php" );
 require_once( $INC_PATH ."/../class/SC_DbConn.php" );
+
+$GLOBAL_ERR = "";
 
 // ¥¤¥ó¥¹¥È¡¼¥ë½é´ü½èÍý
@@ -66,12 +68,15 @@
 // Áõ¾þÉÕ¤­¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ÎÉ½¼¨
 function sfErrorHeader($mess) {
-	print("<meta http-equiv='Content-Type' content='text/html; charset=EUC-JP'>");
-	print("<table width='100%' border='0' cellspacing='0' cellpadding='0' summary=' '>");
-	print("	<tr>");
-	print("<td bgcolor='#ffeebb' height='25' colspan='2' align='center'>");
-	print("<SPAN style='color:red; font-size:12px'><strong>" . $mess . "</strong></span>");
-	print("</td>");
-	print("	</tr>");
-	print("</table>");	
+	global $GLOBAL_ERR;
+	if($GLOBAL_ERR == "") {
+		$GLOBAL_ERR = "<meta http-equiv='Content-Type' content='text/html; charset=EUC-JP'>\n";
+	}
+	$GLOBAL_ERR.= "<table width='100%' border='0' cellspacing='0' cellpadding='0' summary=' '>\n";
+	$GLOBAL_ERR.= "<tr>\n";
+	$GLOBAL_ERR.= "<td bgcolor='#ffeebb' height='25' colspan='2' align='center'>\n";
+	$GLOBAL_ERR.= "<SPAN style='color:red; font-size:12px'><strong>" . $mess . "</strong></span>\n";
+	$GLOBAL_ERR.= "</td>\n";
+	$GLOBAL_ERR.= "	</tr>\n";
+	$GLOBAL_ERR.= "</table>\n";	
 }
 
