i have used variables for instances in the past, but for some reason i can't get it to work in this short app with my checkValue() function. i have tried<br> document.frmOrder.vName.focus();<br> document.frmOrder."vName".focus();<br> document.frmOrder.[vName].focus();<br> document.frmOrder.["vName"].focus();<br>nothing works. i know that the input object is passing the correct value for vName, because i used an alert() to display its value. can anyone tell me what i'm doing wrong?<br>tia,<br>t<br><br><br><HTML><br><HEAD><br><TITLE>Special Order Form</TITLE><br><br><SCRIPT LANGUAGE="Javascript"><br><br> function setFocus() {<br> document.frmOrder.Store.focus(); // set initial focus<br>}<br><br><br> function checkLoc_cd(vLoc_cd) { // set vLoc_cd to the proper length<br> if (vLength.length==0) { // check for null field value<br> alert("A value must be entered in this field."<br> document.frmOrder.Assoc.focus();<br> }<br> if (vLoc_cd.length==2){ // loc-cd must be 3 characters long<br> vLoc_cd = "0" + vLoc_cd;<br> document.frmOrder.Store.value = vLoc_cd;<br>}<br> else if (vLoc_cd.length==1)<br> vLoc_cd = "00" + vLoc_cd;<br>}<br><br> function checkValue(vLength,vName) { // check for null field value<br> if (vLength.length==0) {<br> alert("A value must be entered in this field."<br> document.frmOrder.Assoc.focus();<br> }<br>}<br><br><br></SCRIPT><br></HEAD><br><BODY onLoad="setFocus();"><br><CENTER><H2>SPO DEPARTMENT INQUIRY & ORDER FORM</H2></CENTER><br><br><FORM NAME="frmOrder" ACTION=mailto:<A HREF="mailto:rthibaul@ultrastores.com">rthibaul@ultrastores.com</A>><br> <TABLE WIDTH="95%" BORDER=1><br> <TR><TD>Store<BR><INPUT TYPE="TEXT" SIZE=3 NAME="Store" onBlur="checkLoc_cd(value);"></TD><br> <TD>Associate Name<BR><INPUT TYPE="TEXT" SIZE="15" NAME="Assoc" onBlur="checkValue(value,name);"></TD><br> <TD>Today's Date<BR><INPUT TYPE="TEXT" SIZE="15" NAME="Date" VALUE="6/23/00"></TD><br> <TD COLSPAN=2>Date Order Needed In Store<BR><INPUT TYPE="TEXT" SIZE="15" NAME="Needed"></TD><br> </TR><br> <TR><TD COLSPAN=3>Customer Name<BR><INPUT TYPE="TEXT" SIZE="30" NAME="Guest"></TD><br> <TD ROWSPAN=3 COLSPAN=2><B>One option must be selected<B/><BR><br><br> <INPUT TYPE=RADIO NAME="50%" SELECTED>50% DEPOSIT AMOUNT<BR><br> <INPUT TYPE=RADIO NAME="PAID">PAID IN FULL AMOUNT<BR><br> <INPUT TYPE=RADIO NAME="TRANS">TRANSFER/EXCHANGE<BR><br> <INPUT TYPE=RADIO NAME="INQUIRY">INQUIRY ONLY<BR><br> </TR><br> <TR><TD COLSPAN=3>Address<BR><INPUT TYPE="TEXT" SIZE="40" NAME="Domicile"></TD><br> </TR><br> <TR><TD COLSPAN=2>Home Phone<BR><INPUT TYPE="TEXT" SIZE="20" NAME="Home"></TD><br> <TD>Work Phone<BR><INPUT TYPE="TEXT" SIZE="20" NAME="Work"></TD><br> </TR><br> <TR><TD>SKU to reference<BR><INPUT TYPE="TEXT" SIZE="15" NAME="SKU"></TD><br> <TD>Metal<BR><INPUT TYPE="TEXT" SIZE="15" NAME="metal"></TD><br> <TD>Color<BR><INPUT TYPE="TEXT" SIZE="15" NAME="color"></TD><br> <TD>Size/Length<BR><INPUT TYPE="TEXT" SIZE="15" NAME="size"></TD><br> <TD>Retail<BR><INPUT TYPE="TEXT" SIZE="15" NAME="retail"></TD><br> </TR><br> <TR><TD COLSPAN=5>Special Instructions<BR><INPUT TYPE="TEXT" SIZE="55" NAME="instructions"></TD><br> </TR><br> <TR><TD COLSPAN=5><br> <INPUT TYPE="submit" VALUE="Submit" ACTION=SUBMIT><br> <INPUT TYPE="reset" VALUE="Reset" ACTION=RESET onClick="setFocus();"><br> </TD><br> </TR><br> </TABLE><br> <FONT FACE="Arial" SIZE=2>Copyright Ultra Stores, Inc. 2000</FONT><br></FORM><br></BODY><br></HTML> <p>bobbie<br><a href=mailto:thibault@hotbot.com>thibault@hotbot.com</a><br><a href= </a><br>wanted intelligent, stalky 35-42 y/o swm in chicagoland area to k-k-k-keep me warm