<?php function ShowMessage($Message){ echo("<script>alert('".$Message."');</script>"); } function PrintMessage($Message){ echo($Message); } function DieFriendly($Message){ die($Message . "<a href='' onClick='history.back();'>Go back</a>"); } ?>
info at phpclasses dot org