<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] variable problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Try document.game_assesment.row+ i +&quot;_&quot;+ j +.checked = true;</FONT>
</P>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: rastlore@yahoo.ca [<A HREF="mailto:rastlore@yahoo.ca">mailto:rastlore@yahoo.ca</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, June 07, 2001 9:57 AM</FONT>
<BR><FONT SIZE=2>To: Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] variable problem</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hello,&nbsp; I am having a problem, I am a newbie at this javascript stuff </FONT>
<BR><FONT SIZE=2>by the way.&nbsp; I was wondering why the below works (more specifically I </FONT>
<BR><FONT SIZE=2>am asking about the variables &quot;i&quot; and &quot;j&quot; why it works in the eval </FONT>
<BR><FONT SIZE=2>and not in the other statement is my question) :</FONT>
</P>

<P><FONT SIZE=2>if (eval(&quot;document.game_assesment.row&quot;+ i +&quot;_&quot;+ j +&quot;.checked&quot;) == </FONT>
<BR><FONT SIZE=2>true)</FONT>
</P>

<P><FONT SIZE=2>but this give me an error :</FONT>
<BR><FONT SIZE=2>document.game_assesment.row&quot;+ i +&quot;_&quot;+ j +&quot;.checked = true;</FONT>
</P>

<P><FONT SIZE=2>I have also tried this, but it gives and error as well :</FONT>
<BR><FONT SIZE=2>document.game_assesment.row'+ i +'_'+ j +'.checked = true;</FONT>
</P>

<P><FONT SIZE=2>The button's I am tried to access is :</FONT>
</P>

<P><FONT SIZE=2>&lt;FORM NAME=&quot;game_assesment&quot;&gt;</FONT>
<BR><FONT SIZE=2>&lt;INPUT type=&quot;radio&quot; NAME=&quot;row0_0&quot; VALUE=&quot;0&quot;&gt;</FONT>
<BR><FONT SIZE=2>&lt;INPUT type=&quot;radio&quot; NAME=&quot;row0_1&quot; VALUE=&quot;0&quot;&gt;</FONT>
<BR><FONT SIZE=2>&lt;INPUT type=&quot;radio&quot; NAME=&quot;row0_2&quot; VALUE=&quot;0&quot;&gt;</FONT>
<BR><FONT SIZE=2>&lt;/FORM&gt;</FONT>
</P>

<P><FONT SIZE=2>Thanks for any help you could offer.</FONT>
</P>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>