I am relatively new to coding and I had help writing this. My issue is that I am using dot net charting and I am able to display the chart and I am trying to put values in a data table (if you will ) under the charts, and I am unable to load both the data tables and their values. I am pulling the data from a XML file There are 2 charts side by side on this page. I appreciate all your help. Below is the code:

</TITLE>
<%
Dim xml_file, filepath
Dim i, j

'Sets the currentmonth to the last month
filepath = "xml_files/"
currentmonth = month(date())


xml_file = Request.QueryString("xmlfile")
if xml_file = "" then
xml_file = "c10ma"
end if

Response.Write("<script type=""text/javascript"">" & vbcrlf & _
"function loadXML()" & vbcrlf & _
"{" & vbcrlf & _
"var xmlDoc=new ActiveXObject(""Microsoft.XMLDOM"")" & vbcrlf & _
"xmlDoc.async=""false""" & vbcrlf & _
"xmlDoc.load(""" & filepath & xml_file & """)" & vbcrlf & _

"nodes=xmlDoc.documentElement.childNodes") & vbcrlf

'Loop to create javascript that will create a table with the xml data
For i = 0 to 2
For j = 0 to currentmonth
Response.Write("document.getElementById('a" & i & j & "').innerText=nodes(0).childNodes(" & i & ").childNodes(" & j & ").text") & vbcrlf
Next
Next

Response.Write("<script type=""text/javascript"">" & vbcrlf & _
"function loadXML()" & vbcrlf & _
"{" & vbcrlf & _
"var xmlDoc2=new ActiveXObject(""Microsoft.XMLDOM"")" & vbcrlf & _
"xmlDoc2.async=""false""" & vbcrlf & _
"xmlDoc2.load(""" & filepath & xml_file & "b.xml" & """)" & vbcrlf & _

"nodes=xmlDoc2.documentElement.childNodes") & vbcrlf

For i = 1 to 2
For j = 0 to currentmonth
Response.Write("document.getElementById('b" & i & j & "').innerText=nodes(0).childNodes(" & i & ").childNodes(" & j & ").text") & vbcrlf
Next
Next

Response.Write("}" & vbcrlf & _
"</script>")

%>


</HEAD>
<BODY bgcolor="#FFFFFF" onload="loadXML()">
<div align = "center">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="400"
HEIGHT="500"
id="charts"
ALIGN="CENTER">
<PARAM NAME=movie VALUE="charts.swf?license=">
<PARAM NAME=FlashVars VALUE="library_path=charts_library&xml_source=<% = filepath & xml_file & ".xml" %>">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>

<EMBED src="charts.swf?license="
FlashVars="library_path=charts_library&xml_source=<% = filepath & xml_file & ".xml" %>"
quality=high
bgcolor=#FFFFFF
WIDTH="400"
HEIGHT="500"
NAME="charts"
ALIGN="CENTER"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED></OBJECT>

<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="400"
HEIGHT="500"
id="charts"
ALIGN="CENTER">
<PARAM NAME=movie VALUE="charts.swf?license=">
<PARAM NAME=FlashVars VALUE="library_path=charts_library&xml_source=<% = filepath & xml_file & "b" & ".xml" %>">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>

<EMBED src="charts.swf?license=">
FlashVars="library_path=charts_library&xml_source=<% = filepath & xml_file & "b" & ".xml" %>"
quality=high
bgcolor=#FFFFFF
WIDTH="400"
HEIGHT="500"
NAME="charts"
ALIGN="CENTER"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED></OBJECT>

</div>
<table align="center" border="1" style="font-size: 110%;" width="800px">
<%
For i = 0 to 2
Response.Write("<tr>")
For j = 0 to currentmonth
if i=0 or j=0 then
Response.Write("<td><span id='a" & i & j & "'></span></td>")
else
Response.Write("<td>$<span id='a" & i & j & "'></span></td>")
end if
Next
Response.Write("</tr>")
Next
For i = 1 to 2
Response.Write("<tr>")
For j = 0 to currentmonth
Response.Write("<td><span id='b" & i & j & "'></span></td>")
Next
Response.Write("</tr>")
Next
%>
</table>