RICOLAFP_CurrId = new String(RICOLAFP_LayName + RICOLAFP_Num);

var ie4 = (document.all) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;

document.writeln("<div id=\"" + RICOLAFP_CurrId + "\">");

RICOLAFP_varCurrLen = RICOLAFP_varAry.length;
RICOLAFP_varAry[RICOLAFP_varCurrLen] = document.getElementById(RICOLAFP_CurrId);

if (ie4) {
	document.writeln("<style type=\"text/css\">");
	document.writeln("div#" + RICOLAFP_CurrId + " { \n overflow: auto; ");
	document.writeln("width: " + RICOLAFP_WidthToUse + "; ");
	document.writeln("height: " + RICOLAFP_HeightToUse + "; \n } \n");

	document.writeln(" div#" + RICOLAFP_CurrId + " thead th, ");
	document.writeln(" div#" + RICOLAFP_CurrId + " thead th.locked, ");
	document.writeln(" div#" + RICOLAFP_CurrId + " thead td, ");
	document.writeln(" div#" + RICOLAFP_CurrId + " thead td.locked { ");
	document.writeln(" 	position:relative; ");
	document.writeln(" 	cursor: default; ");
	document.writeln(" } ");

	document.writeln(" div#" + RICOLAFP_CurrId + " thead td, div#" + RICOLAFP_CurrId + " thead th { ");
	document.writeln(' top: expression(RICOLAFP_varAry[' + RICOLAFP_varCurrLen + '].scrollTop-2);  ');
	document.writeln(" 	z-index: 20; ");
	document.writeln(" } ");

	document.writeln(" div#" + RICOLAFP_CurrId + " thead td.locked, div#" + RICOLAFP_CurrId + " thead th.locked { ");
	document.writeln(" 	z-index: 30; ");
	document.writeln(" } ");

	document.writeln(" div#" + RICOLAFP_CurrId + " td.locked, div#" + RICOLAFP_CurrId + " th.locked { ");
	document.writeln(' left: expression(RICOLAFP_varAry[' + RICOLAFP_varCurrLen + '].scrollLeft);  ');
	document.writeln(" 	position: relative; ");
	document.writeln(" 	z-index: 10; ");
	document.writeln(" } ");
	document.writeln("</style>");

	document.writeln("<style type=\"text/css\" media=\"print\">");
	document.writeln("div#" + RICOLAFP_CurrId + " { ");
	document.writeln("overflow: visible; ");
	document.writeln("width: auto; ");
	document.writeln("height: auto; \n } \n");
	document.writeln("</style>");
}

