<?PHP 
// Load configuration file
require("search.conf");

//  Versioning information
$strSelfInfoURL = "http://www.geocities.com/CapeCanaveral/Lab/1652/software.html#simplesearch";
$strSelfVersion = "1.0 Beta 5";

Function fncPrintFooter($strErrMessage = ""){
	//Set scope of vars
	global $strSelfInfoURL, $strSelfVersion;

	// Print out any error message passed along.
	print $strErrMessage

	// Jump out to HTML to end the document, then close.
?>
	<HR>
	<P>
		<A HREF="<?PHP print $strSelfInfoURL;?>">Simple Web Search</A>/<?PHP print $strSelfVersion;?>.
	</P>
	</BODY>
	</HTML>
<?PHP
		exit();
};

Function fncDebug($descript, $value, $level){
	settype($level, "integer");
	global $debug;
	If ($debug >= $level){
?>
	<SPAN class="debug"><?PHP print "$descript :is: $value"; ?></SPAN><BR>
<?PHP	
	};
};
?>