﻿
// begI = starting index for the I col
// endI = end index
// begJ = starting index for the j row
// endJ = end index
// rowGrp = how many rows to group in highlight
// mod= value to mod by

// myA = array to pass in
// size = max size of array
// temp = used to identify alternating colors of rows
// strOut = string to be returned and printed to screen
function PrintPlans (myA, size)
{
	var tmp=0;
	var strOutput = "<table class='costTbl'><tr><th style='width:24%'>Plan</th><th style='width:9%'>Under 4 Years</th><th style='width:9%'>4-12 Years</th><th style='width:9%'>13-16 Years</th><th style='width:9%'>Over 16 Years</th><th style='width:40%'>Description</th></tr>";

	for (i=0; i < size; i++) {
		(tmp%2 < 1) ? 	strOutput += "<tr style='background-color:#ccffdd;'>" : 
			strOutput += "<tr style='background-color:#F0F0F0 ;'>";
		tmp++;

		strOutput += "<td style='width:24%'>" + myA[i].strPlanName + "</td>";	
		strOutput += "<td style='width:9%'>$" + myA[i].iUnder4 + "</td>";
		strOutput += "<td style='width:9%'>$" + myA[i].i4TO12 + "</td>";
		strOutput += "<td style='width:9%'>$" + myA[i].i13TO16 + "</td>";
		strOutput += "<td style='width:9%'>$" + myA[i].iOver16 + "</td>";
		strOutput += "<td style='width:40%'>" + myA[i].strPlanDesc + "</td>";	

		strOutput += "</tr>";
	}
	
	strOutput += "</table>";

	return strOutput;	
}


