function addFeeItem() {
	
	var oRow, oCell;
		jsonFees=eval("("+jsonFeesData+")"); //retrieve result as an JavaScript object		if (jsonFees.fees.length>0) {
		var oFeeTable=document.getElementById("tbl_fee_structure");
				for (i=0; i<jsonFees.fees.length; i++) {
			
            oRow = oFeeTable.insertRow(i);
 
 
			for (c=0; c<3; c++) {
				oCell = oRow.insertCell(c);
				
				oCell.style.border="1.0pt solid windowtext";
				oCell.style.paddingLeft="5.4pt";
				oCell.style.paddingRight="5.4pt";
				oCell.style.paddingTop="2pt";
				oCell.style.paddingBottom="2pt";
				
				if (c==0) {
					oCell.style.width="20px";
					oCell.innerHTML=i+1;
				}
				else if (c==1) {
					oCell.style.width="300px";
					oCell.innerHTML=jsonFees.fees[i].desc;
				}
				else if (c==2) {
					oCell.style.width="300px";
					oCell.innerHTML=jsonFees.fees[i].value;
				}
				
			}
		}
	}
}

function addFDRate() {
	
	var oRow, oCell;
		jsonFDRate=eval("("+jsonFDRateData+")"); //retrieve result as an JavaScript object		if (jsonFDRate.products.length>0) {
		var oTable=document.getElementById("tbl_fd_rate");
				for (i=0; i<jsonFDRate.products.length; i++) {
			
            oRow = oTable.insertRow(i+1);
             
			for (c=0; c<4; c++) {
				oCell = oRow.insertCell(c);
				
				oCell.style.border="1.0pt solid windowtext";
				oCell.style.paddingLeft="5.4pt";
				oCell.style.paddingRight="5.4pt";
				oCell.style.paddingTop="2pt";
				oCell.style.paddingBottom="2pt";
				oCell.style.textAlign="center";
				
				if (c==0) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonFDRate.products[i].period;
				}
				else if (c==1) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonFDRate.products[i].q_rate;
				}
				else if (c==2) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonFDRate.products[i].y_rate;
				}
				else if (c==3) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonFDRate.products[i].ma_rate;
				}
			}
		}
	}
}

function addOTDRate() {
	
	var oRow, oCell;
		jsonOTDRate=eval("("+jsonOTDRateData+")"); //retrieve result as an JavaScript object		if (jsonOTDRate.products.length>0) {
		var oTable=document.getElementById("tbl_otd_rate");
				for (i=0; i<jsonOTDRate.products.length; i++) {
			
            oRow = oTable.insertRow(i+1);
             
			for (c=0; c<3; c++) {
				oCell = oRow.insertCell(c);
				
				oCell.style.border="1.0pt solid windowtext";
				oCell.style.paddingLeft="5.4pt";
				oCell.style.paddingRight="5.4pt";
				oCell.style.paddingTop="2pt";
				oCell.style.paddingBottom="2pt";
				oCell.style.textAlign="center";
				
				if (c==0) {
					oCell.style.width="284px";
					oCell.innerHTML=jsonOTDRate.products[i].name;
				}
				else if (c==1) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonOTDRate.products[i].period;
				}
				else if (c==2) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonOTDRate.products[i].rate;
				}
			}
		}
	}
}

function addDPRate() {
	
	var oRow, oCell;
		jsonDPRate=eval("("+jsonDPRateData+")"); //retrieve result as an JavaScript object		if (jsonFDRate.products.length>0) {
		var oTable=document.getElementById("tbl_dp_rate");
				for (i=0; i<jsonDPRate.products.length; i++) {
			
            oRow = oTable.insertRow(i+1);
             
			for (c=0; c<2; c++) {
				oCell = oRow.insertCell(c);
				
				oCell.style.border="1.0pt solid windowtext";
				oCell.style.paddingLeft="5.4pt";
				oCell.style.paddingRight="5.4pt";
				oCell.style.paddingTop="2pt";
				oCell.style.paddingBottom="2pt";
				oCell.style.textAlign="center";
				
				if (c==0) {
					oCell.style.width="284px";
					oCell.innerHTML=jsonDPRate.products[i].name;
				}
				else if (c==1) {
					oCell.style.width="142px";
					oCell.innerHTML=jsonDPRate.products[i].rate;
				}
			}
		}
	}
}
