<?
 /**************************************************
 Author: Blake Miller
 Date  : 1.27.01
 Filename: calmacro
 Description: This file contains several macro functions used in the "Knight's calendar"
              application.
 **************************************************/
  
   
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* This function sets the top part of a dialog box               */

/* Calling convention:
	 sTag_GenTableDetail($width=100%, 
	 	$border=0, 
		$padding=2,
		$spacing=0,
		$title="", 
		$titleBGColor="cccccc", 
		$titleFontColor="ffffff"
		$titleFontFace="arial"
		$titleFontSize="4");
*/	 
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function sTag_GenTableDetail($width="100%", $border="0", $padding="2", $spacing="0", $title="", $titleBGColor="cccccc", $titleFontColor="ffffff", $titleFontFace="arial", $titleFontSize="4")
{
	print "<table width=$width cellpadding=$padding cellspacing=$spacing border=$border>\n";
		print "<tr>\n";
			print "<td bgcolor=$titleBGColor>\n";
			print "<font color=$titleFontColor face=$titleFontFace size=$titleFontSize>$title</font>\n";
			print "</td>\n";
		print "</tr>\n";
		print "<tr>\n";
			print "<td>\n";
				print "<table width=100% border=0 cellpadding=0 cellspacing=0>\n";
					print "<tr>\n";
						print "<td>\n";
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */


/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* This function sets the top part of a dialog box               */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function eTag_GenTableDetail()
{
					print "</td>\n";
				print "</tr>\n";
			print "</table>\n";
		print "</td>\n";
	print "</tr>\n";
print "</table>\n";

}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

?>