//center.js
//Copyright (C) 2002
//Ris Misner
//This software is provided for free use for any purpose
//and is provided "AS IS" - no warranty is made for this software


//BeginCenter and EndCenter are ways of centering data vertically
//by creating a table with valign="middle"
function BeginCenter(width, height)
{
	if (!width && !height)
	{
		//if not specified, create a table the size of the window
		//in case the availX var is unavailable, use the equivalent X var
		width = window.innerWidth || document.body.clientWidth;
		height= window.innerHeight|| document.body.clientHeight;
	}
	document.write('<A name="centertop"></a>');
	document.write('<TABLE width="' + width + '" height="' + height + '"><TR><TD valign="middle" align="center" style="height:' + height + '">');
} //end BeginCenter()


function EndCenter()
{
	document.writeln("</TD></TR></TABLE>");
}
