<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001>Hi
there,</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><SPAN class=430583802-02052001>OK, here's
my <SPAN class=300023703-02052001>specific </SPAN>problem.<SPAN
class=300023703-02052001> </SPAN></SPAN></FONT></FONT></DIV>
<DIV><SPAN class=430583802-02052001><SPAN
class=300023703-02052001></SPAN></SPAN><SPAN
class=430583802-02052001></SPAN><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001>I've got an array of
6 text fields.</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001><form
name='configurator'></SPAN></FONT></DIV><SPAN class=430583802-02052001><SPAN
class=430583802-02052001>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT
size=2><FONT face=Arial><SPAN class=210041604-02052001>
</SPAN><input type='text' name='files_description[0]' size='18'
maxlength='30' onBlur='return nochanging(this, 0)'>"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT
size=2><FONT face=Arial><SPAN class=210041604-02052001>
</SPAN><input type='text' name='files_description[1]' size='18'
maxlength='30' onBlur='return nochanging(this, 1)'>"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT
size=2><FONT face=Arial><SPAN class=210041604-02052001>
</SPAN><input type='text' name='files_description[2]' size='18'
maxlength='30' onBlur='return nochanging(this, 2)'>"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT
size=2><FONT face=Arial><SPAN class=210041604-02052001>
</SPAN><input type='text' name='files_description[3]' size='18'
maxlength='30' onBlur='return nochanging(this, 3)'>"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT
size=2><FONT face=Arial><SPAN class=210041604-02052001>
</SPAN><input type='text' name='files_description[4]' size='18'
maxlength='30' onBlur='return nochanging(this, 4)'>"; </FONT></FONT>
<DIV><FONT size=2><FONT face=Arial><SPAN class=430583802-02052001><SPAN
class=430583802-02052001><SPAN class=210041604-02052001>
</SPAN><input type='text' name='files_description[5]' size='18'
maxlength='30' onBlur='return nochanging(this,
5)'>";</SPAN></SPAN></FONT></FONT></DIV></SPAN></SPAN></DIV></SPAN></SPAN></DIV></SPAN></SPAN></DIV></SPAN></SPAN></DIV></SPAN></SPAN></DIV>
<DIV><FONT face=Arial size=2></form></FONT></DIV>
<DIV></SPAN></SPAN><SPAN class=430583802-02052001><SPAN
class=430583802-02052001></SPAN></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001>I want to populate
the values of one of those text fields onBlur so the value is prede<SPAN
class=210041604-02052001>te</SPAN>rmined so I wrote this:</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001><script
language='JavaScript'><BR>function nochanging(elem,elementNum){<BR><BR>var
changeto;</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001><BR><FONT face=Arial
size=2>switch(elementNum) <BR>
{<BR> case '1':
changeto="Home Top Left"; break<BR>
case '2': changeto="Home Top Right";
break<BR> case '3':
changeto="Property List Top Left";
break<BR> case '4':
changeto="Property List Top Right";
break<BR> case '5':
changeto="Sale Sheet Top Left";
break<BR> case '6':
changeto="Sale Sheet Top Right";
break<BR> }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=430583802-02052001>window.document.configurator.files_description[elementNum].value=changeto;<BR>}<BR></script></SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><SPAN class=430583802-02052001><FONT face=Arial size=2>It errors out every
time. Could you tell me how to dynamically set the value of a text field that is
built on an array?<BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001>Your help is hugely
appreciated.</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=430583802-02052001>Sincerely,</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001><SPAN
class=210041604-02052001>Tiffany</SPAN></SPAN></FONT></DIV></SPAN></BODY></HTML>