<!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>&nbsp;</FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><SPAN class=430583802-02052001>OK, here's 
my&nbsp;<SPAN class=300023703-02052001>specific </SPAN>problem.<SPAN 
class=300023703-02052001>&nbsp;&nbsp;</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>&nbsp;</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>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001>&lt;form 
name='configurator'&gt;</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>&nbsp;&nbsp;&nbsp; 
</SPAN>&lt;input type='text' name='files_description[0]'&nbsp;size='18' 
maxlength='30' onBlur='return nochanging(this, 0)'&gt;"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT 
size=2><FONT face=Arial><SPAN class=210041604-02052001>&nbsp;&nbsp;&nbsp; 
</SPAN>&lt;input type='text' name='files_description[1]'&nbsp;size='18' 
maxlength='30' onBlur='return nochanging(this, 1)'&gt;"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT 
size=2><FONT face=Arial><SPAN class=210041604-02052001>&nbsp;&nbsp;&nbsp; 
</SPAN>&lt;input type='text' name='files_description[2]'&nbsp;size='18' 
maxlength='30' onBlur='return nochanging(this, 2)'&gt;"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT 
size=2><FONT face=Arial><SPAN class=210041604-02052001>&nbsp;&nbsp;&nbsp; 
</SPAN>&lt;input type='text' name='files_description[3]'&nbsp;size='18' 
maxlength='30' onBlur='return nochanging(this, 3)'&gt;"; </FONT></FONT>
<DIV><SPAN class=430583802-02052001><SPAN class=430583802-02052001><FONT 
size=2><FONT face=Arial><SPAN class=210041604-02052001>&nbsp;&nbsp;&nbsp; 
</SPAN>&lt;input type='text' name='files_description[4]'&nbsp;size='18' 
maxlength='30' onBlur='return nochanging(this, 4)'&gt;"; </FONT></FONT>
<DIV><FONT size=2><FONT face=Arial><SPAN class=430583802-02052001><SPAN 
class=430583802-02052001><SPAN class=210041604-02052001>&nbsp;&nbsp;&nbsp; 
</SPAN>&lt;input type='text' name='files_description[5]'&nbsp;size='18' 
maxlength='30' onBlur='return nochanging(this, 
5)'&gt;";</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>&lt;/form&gt;</FONT></DIV>
<DIV></SPAN></SPAN><SPAN class=430583802-02052001><SPAN 
class=430583802-02052001></SPAN></SPAN><FONT face=Arial 
size=2>&nbsp;</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>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001>&lt;script 
language='JavaScript'&gt;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case '1':&nbsp;&nbsp; 
changeto="Home Top Left"; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
case '2':&nbsp;&nbsp; changeto="Home Top Right"; 
break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case '3':&nbsp;&nbsp; 
changeto="Property List Top Left"; 
break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case '4':&nbsp;&nbsp; 
changeto="Property List Top Right"; 
break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case '5':&nbsp;&nbsp; 
changeto="Sale Sheet Top Left"; 
break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case '6':&nbsp;&nbsp; 
changeto="Sale Sheet Top Right"; 
break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=430583802-02052001>window.document.configurator.files_description[elementNum].value=changeto;<BR>}<BR>&lt;/script&gt;</SPAN></FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial 
size=2>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</FONT></DIV>
<DIV><SPAN class=430583802-02052001></SPAN><FONT face=Arial 
size=2>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=430583802-02052001><SPAN 
class=210041604-02052001>Tiffany</SPAN></SPAN></FONT></DIV></SPAN></BODY></HTML>