//**********************************************************
//*                                                        *
//*       THBorder script by Torstein Hønsi 2002-2005.     *
//*       Modify at will, but leave this header.           *
//*       www.Vikjavev.no                                  *
//*                                                        *
//**********************************************************

// Use these functions to assign the strings to a variable to use within JavaScript
function StrTHBorder1()	{
var s = "<table cellspacing=0 cellpadding=0>\n"
+"<tr>\n"
+"	<td style='width: 1px; height: 1px;'></td>\n"
+"	<td style='width: 1px'></td>\n"
+"	<td style='width: 1px'></td>\n"
+"	<td></td>\n"
+"	<td style='width: 1px'></td>\n"
+"	<td style='width: 1px'></td>\n"
+"	<td style='width: 1px'></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td colspan='3' style='width: 3px; height: 1px'></td>\n"
+"	<td class='THB-border' style='height: 1px'></td>\n"
+"	<td colspan='3' style='height: 1px'></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td rowspan='2' style='height: 1px'></td>\n"
+"	<td colspan='5' class='THB-border' style='height: 1px'></td>\n"
+"	<td rowspan='2' style='height: 1px'></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td colspan='2' class='THB-border' style='height: 1px'></td>\n"
+"	<td class='THB-background'></td>\n"
+"	<td colspan='2' class='THB-border'></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td colspan='2' class='THB-border'><!-- --></td>\n"
+"	<td class='THB-background'></td>\n"
+"	<td class='THB-background THB-content'>";

return s;
}
	
function StrTHBorder2()	{
var s = "</td>\n"
+"	<td class='THB-background'></td>\n"
+"	<td colspan='2' class='THB-border'><!-- --></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td rowspan='2' style='height: 2px'></td>\n"
+"	<td colspan='2' class='THB-border' style='height: 1px'></td>\n"
+"	<td class='THB-background'></td>\n"
+"	<td colspan='2' class='THB-border'></td>\n"
+"	<td rowspan='2'></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td colspan='5' class='THB-border' style='height: 1px'></td>\n"
+"</tr>"
+"<tr>\n"
+"	<td colspan='3' style='height: 1px'></td>\n"
+"	<td class='THB-border'></td>\n"
+"	<td colspan='3'></td>\n"
+"</tr>\n"
+"</table>";

return s;
}	

//-------------------------------------------
// Use these functions to insert the border within HTML
function THBorder1() {
	document.write(StrTHBorder1());
}
function THBorder2() {
	document.write(StrTHBorder2());
}