function TableBegin(width, height, textAlign, tableAlign, textValign)
{
	var s = "";
	s += "<table width='"+width+"' height='"+height+"' align='"+tableAlign+"' cellspacing=0 cellpadding=0 border=0>";
	s += "<tr>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/b/b00c0.gif width=4 height=4></td>";			
	s += "<td height=4 background=/i/b/b00t.gif bgcolor=342E29></td>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/b/b00c1.gif width=4 height=4></td>";
	s += "</tr>";
	s += "<tr>";
	s += "<td width=4 background=/i/b/b00l.gif bgcolor=342E29></td>";	
	s += "<td align='textAlign' valign='"+textValign+"' width='100%' height='"+height+"' valign=middle bgcolor=181B21>";

	document.write(s);
}

function TableEnd()
{
	var s = "";
	s += "</td>";
	s += "<td width=4 background=/i/b/b00r.gif bgcolor=342E29></td>";
	s += "</tr>";
	s += "<tr>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/b/b00c2.gif width=4 height=4></td>";
	s += "<td height=4 background=/i/b/b00b.gif bgcolor=342E29></td>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/b/b00c3.gif width=4 height=4></td>";			
	s += "</tr>";
	s += "</table>";

	document.write(s);
}


function Scroll03TableBegin(width, height, textAlign, tableAlign, textValign)
{
	var s = "";
	s += "<table width='"+width+"' height='"+height+"' align='"+tableAlign+"' cellspacing=0 cellpadding=0 border=0>";
	s += "<tr>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s3_c0.gif width=4 height=4></td>";			
	s += "<td height=4 background=/i/s3_t.gif bgcolor=342E29></td>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s3_c1.gif width=4 height=4></td>";
	s += "</tr>";
	s += "<tr>";
	s += "<td width=4 background=/i/s3_l.gif bgcolor=342E29></td>";	
	s += "<td align='"+textAlign+"' valign='"+textValign+"' width='100%' height='"+height+"' valign=middle  background='/i/bg_scroll_03.gif' bgcolor=181B21>";

	document.write(s);
}

function Scroll03TableEnd()
{
	var s = "";
	s += "</td>";
	s += "<td width=4 background=/i/s3_r.gif bgcolor=342E29></td>";
	s += "</tr>";
	s += "<tr>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s3_c2.gif width=4 height=4></td>";
	s += "<td height=4 background=/i/s3_b.gif bgcolor=342E29></td>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s3_c3.gif width=4 height=4></td>";			
	s += "</tr>";
	s += "</table>";

	document.write(s);
}


function Scroll05TableBegin(width, height, textAlign, tableAlign, textValign)
{
	var s = "";
	s += "<table width='"+width+"' height='"+height+"' align='"+tableAlign+"' cellspacing=0 cellpadding=0 border=0>";
	s += "<tr>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s5_c0.gif width=4 height=4></td>";			
	s += "<td height=4 background=/i/s5_t.gif bgcolor=342E29></td>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s5_c1.gif width=4 height=4></td>";
	s += "</tr>";
	s += "<tr>";
	s += "<td width=4 background=/i/s5_l.gif bgcolor=342E29></td>";	
	s += "<td align='"+textAlign+"' valign='"+textValign+"' width='100%' height='"+height+"' valign=middle  background='/i/bg_scroll_05.gif' bgcolor=181B21><font color=000000>";

	document.write(s);
}

function Scroll05TableEnd()
{
	var s = "";
	s += "</font></td>";
	s += "<td width=4 background=/i/s5_r.gif bgcolor=342E29></td>";
	s += "</tr>";
	s += "<tr>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s5_c2.gif width=4 height=4></td>";
	s += "<td height=4 background=/i/s5_b.gif bgcolor=342E29></td>";
	s += "<td width=4 height=4 bgcolor=342E29><img src=/i/s5_c3.gif width=4 height=4></td>";			
	s += "</tr>";
	s += "</table>";

	document.write(s);
}

function drawButton(text, func, _id)
{
   var id = _id || "";
   var s  = "";
	if(id == "")
		s =  "<button onClick='" + func + "' class='button_64_20' onmouseover='this.style.backgroundImage=\"url(/i/b/b_64_20s.gif)\"' onmouseout='this.style.backgroundImage=\"url(/i/b/b_64_20.gif)\"'><b>" + text + "</b></button>";
	else
		s = "<button id='" + id + "' name='" + id + "' onClick='" + func + "' class='button_64_20' onmouseover='this.style.backgroundImage=\"url(/i/b/b_64_20s.gif)\"' onmouseout='this.style.backgroundImage=\"url(/i/b/b_64_20.gif)\"'><b>" + text + "</b></button>";
	document.write(s);
}

