<!--
// File name: box.js
// Created: 2004.03.01. by Werdy
// Last modification: 2004.03.01. by Werdy

function StartBox( level, width, height )
{
	document.write( '\
<TABLE border=0 cellpadding=0 cellspacing=0');

	if ( width ) {
		if ( width == -1 )
			document.write( ' width=100%' );
		else 
			document.write( ' width='+width );
	}

	if ( height ) {
		if ( height == -1 )
			document.write( ' height=100%' );
		else 
			document.write( ' height='+height );
	}

	document.writeln( '>\
<TR>\
	<TD width=15><IMG src="../images/border_top_left.gif" width=15 height=15 alt=""></TD>\
	<TD style="background-image: url(../images/border_top.gif)"><IMG src="../images/spacer.gif" width=1 height=15 alt=""></TD>\
	<TD width=15><IMG src="../images/border_top_right.gif" width=15 height=15 alt=""></TD>\
</TR>\
<TR>\
	<TD style="background-image: url(../images/border_left.gif)"><IMG src="../images/spacer.gif" width=15 height=1 alt=""></TD>\
	<TD style="background-image: url(../images/bgr_l'+level+'.jpg)" width=100% height=100%>');
}

function EndBox()
{
	document.writeln( '</TD>\
	<TD style="background-image: url(../images/border_right.gif)"><IMG src="../images/spacer.gif" width=15 height=1 alt=""></TD>\
</TR>\
<TR>\
	<TD width=15><IMG src="../images/border_bottom_left.gif" width=15 height=15 alt=""></TD>\
	<TD style="background-image: url(../images/border_bottom.gif)"><IMG src="../images/spacer.gif" width=1 height=1 alt=""></TD>\
	<TD width=15><IMG src="../images/border_bottom_right.gif" width=15 height=15 alt=""></TD>\
</TR>\
</TABLE>' );
}

//-->


