<?php function error($msg) { return "<div class=\"error\">Error: " . $msg . "</div>\n"; } ?>