<?php 
	/*
	** File: help
	** Description: Provides help text for a particular screen
	** Version: $Revision: 1.3 $
	** Created: 10/4/99 3:41PM
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: leon $
	** Last Revised: $Date: 2000/02/01 18:56:10 $
	**
	** Log : $Log: help,v $
	** Log : Revision 1.3  2000/02/01 18:56:10  leon
	** Log : Added code from Isaac Reuben that does better tests for javascript.
	** Log :
	** Log : Revision 1.2  1999/11/04 21:35:42  leon
	** Log : Cleaned up the use of paths.  Paths are now all set in index.php3 as
	** Log : constants.  Example settings for Apache/Unix, Apache/Win32, and IIS.
	** Log :
	** Log : Revision 1.1  1999/10/04 22:41:50  leon
	** Log : Added context-sensitive help.  New directory modules/help may have a file
	** Log : that matches a screen module.  If it exists, then a help link appears in
	** Log : the navigation.  This opens a smaller window with the contents of the
	** Log : help file.
	** Log :
	*/

	include(APPLICATION_ROOT . "/modules/help/$topic");


	if((GENERATE_BROWSER_CONSTANTS) AND (BROWSER_JAVASCRIPTOK))
	{
		print("<script language=\"Javascript\">\n");
		print("document.writeln('<br>');\n");
		print("document.writeln('<center>');\n");
		print("document.writeln('<a href=\"javascript:window.close();\">Close Window</a>');\n");
		print("document.writeln('</center>');\n");
		print("</script>\n");
	}
?>