SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Online order form

    Hello Guys, I have been grabbing good ideas and code from everywhere to build an online order form. I have no skill programming, but i have managed to almost finish it. However i still have two thing I cant done. Hope you can help me.
    1. If any product of the "Product #2 drop-down menu" is selected, then "shipping drop-down menu" should only have "Post office option" enabled.

    2. If "Shipping drop-down menu" is 7-11 or Family Mart, then "Convenience store text box" should be enabled.

    You can check the whole code here: http://dl.dropbox.com/u/21610873/code.txt

    Thanks

  2. #2
    SitePoint Member
    Join Date
    Jul 2011
    Location
    Ho Chi Minh city, Vietnam
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Following is modified codes. Because it too large so I post in 2 replies.

    * Part 1:
    Code:
    <center><table valign=top border='0' width='760' bgcolor=#FFD36F cellpadding='0' cellspacing='1' style='border-collapse:collapse;'> 
    <FORM METHOD=POST ACTION='email.php' onsubmit='return validateForm(this)' id=form1 NAME=form1>        <input type=hidden name=xr4 value='59.10725234637303079'>        <input type=hidden name=formts value='2011-07-25 23:48:26.411281'>        <input type=hidden name=recordts value='2001-01-01 01:01:01.000001'>
      <tr> <td colspan=8 bgcolor='#FCAF17' width='100%' align=center valign='center'>       <font color='#000000' FACE='Arial' size=3>Customer E-Mail</font>    </td>  </tr>
      <tr> <td colspan=8 width='100%' align= valign='center'>       <font color='#000000' FACE='Arial' size=2><b>Important:</b> Enter a valid e-mail address. Receipts will be sent to this address.</font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>E-Mail:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=e_mail_300 VALUE='' SIZE='30' MAXLENGTH='70' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=8 bgcolor='#FCAF17' width='100%' align=center valign='center'>       <font color='#000000' FACE='Arial' size=3>Products</font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center' style="width:150px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px">       <font color='#000000' face='Arial' size=2><b>Product # 1:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td colspan=2 align=left valign='center' nowrap style="width:350px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"> <SELECT onChange=calcTot(this); NAME=item_2698 VALUE='' ><OPTION VALUE='- $00.00'>Choose Product # 1</OPTION><OPTION VALUE='Optimum Nutrition Whey Protein 5lb. $1849.00'>Optimum Nutrition Whey Protein 5lb. $1849.00</OPTION><OPTION VALUE='Optimum Nutrition Whey Protein 10lb. $3599.00'>Optimum Nutrition Whey Protein 10lb. $3599.00</OPTION><OPTION VALUE='BSN Syntha-6 5lb. $1899.00'>BSN Syntha-6 5lb. $1899.00</OPTION><OPTION VALUE='BSN True Mass 5.75lb. $1799.00'>BSN True Mass 5.75lb. $1799.00</OPTION><OPTION VALUE='BSN NO-Xplode 2.25lb. $1599.00'>BSN NO-Xplode 2.25lb. $1599.00</OPTION></SELECT>
    </td><td colspan=2 align=center valign=center style="width:5%; text-align=center height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><SELECT onChange=calcTot2(this); NAME=qty_item2699><OPTION VALUE='1'>1</OPTION>></SELECT></td>
    <td colspan=2 align=right style="width:110px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><INPUT TYPE=TEXT READONLY NAME=total_item2700 VALUE='' SIZE='10' MAXLENGTH='10'  style='text-align: right'>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center' style="width:150px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px">       <font color='#000000' face='Arial' size=2><b>Product # 2:</b></font>    </td> <td colspan=2 align=left valign='center' nowrap style="width:350px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"> <SELECT onChange="syncProduct2(this);calcTot(this);" NAME=item_02175 VALUE='' ><OPTION VALUE='- $00.00'>Choose Product # 2</OPTION><OPTION VALUE='Optimum Nutrition Whey Protein 5lb. $1849.00'>Optimum Nutrition Whey Protein 5lb. $1849.00</OPTION><OPTION VALUE='Optimum Nutrition Whey Protein 10lb. $3599.00'>Optimum Nutrition Whey Protein 10lb. $3599.00</OPTION><OPTION VALUE='BSN Syntha-6 5lb. $1899.00'>BSN Syntha-6 5lb. $1899.00</OPTION><OPTION VALUE='BSN True Mass 5.75lb. $1799.00'>BSN True Mass 5.75lb. $1799.00</OPTION><OPTION VALUE='BSN NO-Xplode 2.25lb. $1599.00'>BSN NO-Xplode 2.25lb. $1599.00</OPTION></SELECT>
    </td><td colspan=2 align=center valign=center style="width:5%; text-align=center height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><SELECT onChange=calcTot2(this); NAME=qty_item02176><OPTION VALUE='1'>1</OPTION>></SELECT></td>
    <td colspan=2 align=right style="width:110px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><INPUT TYPE=TEXT READONLY NAME=total_item02177 VALUE='' SIZE='10' MAXLENGTH='10'  style='text-align: right'>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center' style="width:150px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px">       <font color='#000000' face='Arial' size=2><b>Sub-Total:</b></font>    </td> <td colspan=4 align=left valign='center'> <td colspan=2 align=right style="width:110px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><INPUT TYPE=TEXT READONLY NAME=sub_total3500 VALUE='' SIZE='10' MAXLENGTH='10'  style='text-align: right'>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center' style="width:150px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px">       <font color='#000000' face='Arial' size=2><b>Shipping:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td colspan=4 align=left valign='center'> <SELECT id="shipping_item13799" onChange="syncShipping(this);calcTot4(this);" NAME=shipping_item13799 VALUE='' ><OPTION VALUE='- $00.00' selected="selected">Choose <b>Shipping</b></OPTION><OPTION VALUE='7-11 (2 Days) $59.00'>7-11 (2 Days) $59.00</OPTION><OPTION VALUE='Family Mart (2 Days) $59.00'>Family Mart (2 Days) $59.00</OPTION><OPTION VALUE='Postal Office (2-3 Days) $99.00'>Postal Office (2-3 Days) $99.00</OPTION><OPTION VALUE='Fast Delivery (1 Day) $149.00'>Fast Delivery (1 Day) $149.00</OPTION></SELECT>
    </td><td colspan=2 align=right style="width:110px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><INPUT TYPE=TEXT READONLY NAME=shipping_amount13800 VALUE='' SIZE='10' MAXLENGTH='10'  style='text-align: right'>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2>Convenience Store Number</font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT disabled="true" TYPE=TEXT NAME=convinience_store_number3850 id="convinience_store_number3850" VALUE='' SIZE='10' MAXLENGTH='10' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center' style="width:150px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px">       <font color='#000000' face='Arial' size=2><b>Grand Total:</b></font>    </td> <td colspan=4 align=left valign='center'> <td colspan=2 align=right style="width:110px; height:36px; border-style:solid; border-color:#000000; border-width:1px 1px 1px 1px"><INPUT TYPE=TEXT READONLY NAME=grand_total3900 VALUE='' SIZE='10' MAXLENGTH='10'  style='text-align: right'>    </td>  </tr>
      <tr> <td colspan=8 bgcolor='#FCAF17' width='100%' align=center valign='center'>       <font color='#000000' FACE='Arial' size=3>Payment Information</font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Payment Method:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='60%' colspan=6 align=left valign='center'><DIV ALIGN=LEFT><INPUT TYPE=RADIO NAME='payment_method_3959' VALUE='ATM' onclick=dispBox15(); ><font color='#000000' face=Arial size=2>ATM</font> <INPUT TYPE=RADIO NAME='payment_method_3959' VALUE='Cash on Delivery (Only for 7-11 & Family Mart)' onclick=dispBox15(); ><font color='#000000' face=Arial size=2>Cash on Delivery (Only for 7-11 & Family Mart)</font> </DIV>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta8"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb8"></span><input type=hidden name=bank_account_number_3997></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc8"></span></td>  </tr>
      <tr> <td colspan=8 bgcolor='#FCAF17' width='100%' align=center valign='center'>       <font color='#000000' FACE='Arial' size=3>Billing Information</font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>First Name:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=first_name_4250 VALUE='' SIZE='15' MAXLENGTH='15' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Last Name:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=last_name_4450 VALUE='' SIZE='15' MAXLENGTH='15' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Gender</b></font>    </td> <td width='60%' colspan=6 align=left valign='center'><DIV ALIGN=LEFT><INPUT TYPE=RADIO NAME='gender4475' VALUE='Male'><font color='#000000' face=Arial size=2>Male</font> <INPUT TYPE=RADIO NAME='gender4475' VALUE='Female'><font color='#000000' face=Arial size=2>Female</font> </DIV>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>UserName</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=username4500 VALUE='' SIZE='15' MAXLENGTH='15' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Address Line 1:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=address_line_14550 VALUE='' SIZE='25' MAXLENGTH='25' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Address Line 2:</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=address_line_24650 VALUE='' SIZE='25' MAXLENGTH='25' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2>Apt. or Suite No.</font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>City:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=city4750 VALUE='' SIZE='18' MAXLENGTH='18' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>State:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <SELECT NAME=state_4850><OPTION VALUE=''>Choose a State</OPTION><OPTION VALUE='Taipei'>Taipei</OPTION><OPTION VALUE='Kaohsiung'>Kaohsiung</OPTION><OPTION VALUE='etc'>etc</OPTION></SELECT>    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Phone:</b></font>    </td> <td width='45%' colspan=4 align=left valign='center'> <INPUT TYPE=TEXT NAME=phone5050 VALUE='' SIZE='12' MAXLENGTH='25' >    </td> <td colspan=2 width='12%' align=left valign='center'>       <font color='#000000' face=Arial size=-2></font>    </td>  </tr>
      <tr> <td colspan=8 bgcolor='#FCAF17' width='100%' align=center valign='center'>       <font color='#000000' FACE='Arial' size=3>Shipping Information</font>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'>       <font color='#000000' face='Arial' size=2><b>Same as billing info:</b></font><font color=red face=Arial size=2><b>*</b></font>    </td> <td width='60%' colspan=6 align=left valign='center'><DIV ALIGN=LEFT><INPUT TYPE=RADIO NAME='same_as_billing_info_5300' VALUE='Yes' onclick=dispBox14(); ><font color='#000000' face=Arial size=2>Yes</font> <INPUT TYPE=RADIO NAME='same_as_billing_info_5300' VALUE='No' onclick=dispBox14(); ><font color='#000000' face=Arial size=2>No</font> </DIV>    </td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta52"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb52"></span><input type=hidden name=first_name_5350></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc52"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta54"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb54"></span><input type=hidden name=last_name_5500></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc54"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta16"></span></td><td width='60%' colspan=6 align=left valign='center'><span id="Textb16"></span><input type=hidden name=gender_5625></td><span id="Textc16"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta55"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb55"></span><input type=hidden name=address_line_15750></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc55"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta56"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb56"></span><input type=hidden name=address_line_25850></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc56"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta57"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb57"></span><input type=hidden name=city5950></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc57"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta75"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb75"></span><input type=hidden name=state_6050></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc75"></span></td>  </tr>
      <tr> <td colspan=2 bgcolor='#FFD36F' nowrap width='18%' align=left valign='center'><span id="Texta59"></span></td><td width='45%' colspan=4 align=left valign='center'><span id="Textb59"></span><input type=hidden name=phone_6150></td><td colspan=2 width='12%' align=left valign='center'><span id="Textc59"></span></td>  </tr>
    <tr><td align='center' colspan='8' class='MainText'><input type='submit' value='Submit'></form><br><br><font face=Arial size=-2 color='#dddddd'>Powered by </font><a href='http://www.elbowspace.com'; target='_blank'><font face=Arial size=-2 color='#dddddd'><i>Elbowspace.com</i></font></a></td></tr>
    <!-- end of article body --></table></center>
    
    <script>
    function syncShipping(tag) {
      var src = document.getElementById('convinience_store_number3850');
      if (tag.value == '7-11 (2 Days) $59.00' || tag.value == 'Family Mart (2 Days) $59.00') {
        src.disabled = false;
      } else {
        src.disabled = true;
      }
    }
    function syncProduct2(tag) {
      var src = document.getElementById('shipping_item13799');
      if (tag.value != '- $00.00') {
        src.value = 'Postal Office (2-3 Days) $99.00';
        src.disabled = true;
      } else {
        src.value = '- $00.00';
        src.disabled = false;
      }
      syncShipping(src);
    }
    </script>
    <script Language='JavaScript'> 
    function calcTotCK(id){ 
    var PNindex = parseInt(id); 
      var item_orderJ = new Array(71); 
      item_orderJ[0] = 2175; 
      item_orderJ[2] = 698; 
      var formfieldname = 'document.form1.item_'+PNindex  +item_orderJ[PNindex]; 
      var formfieldvalue = eval(''+formfieldname+'.value'); 
      Prod = formfieldvalue; 
     if (PNindex == '0') 
       if ( document.form1.item_02175.checked == false )  
          Prod = '- $0.00';  
     if (PNindex == '2') 
       if ( document.form1.item_2698.checked == false )  
          Prod = '- $0.00';  
     var index = Prod.indexOf('$'); 
     if (index > 0) 
       { 
          var prod_dollamt = Prod.substring(index+1,Prod.length); 
          var index2 = prod_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
          else 
            { 
             prod_dollamt = prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
       } 
     var prod_tot = 0; 
      var qty_item_orderJ = new Array(71); 
      qty_item_orderJ[0] = 2176; 
      qty_item_orderJ[2] = 699; 
      var formfieldnameQ = 'document.form1.qty_item'+PNindex  +qty_item_orderJ[PNindex]; 
      var formfieldvalueQ = eval(''+formfieldnameQ+'.value'); 
      prod_tot = prod_dollamt * formfieldvalueQ; 
     var prod_tot_str = prod_tot.toString(); 
     var ptl = prod_tot_str.length; 
     if ( ptl <= 1 ) 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + '0' + prod_tot_str.substring(ptl-2,ptl); 
     else 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + prod_tot_str.substring(ptl-2,ptl); 
     if (PNindex == '0') 
        document.form1.total_item02177.value = '$' + prod_tot_dis; 
     if (PNindex == '2') 
        document.form1.total_item2700.value = '$' + prod_tot_dis; 
    calcCommon();  
    } 
    function calcTot(Prod_List){ 
    var Prod_Name = Prod_List.name; 
    var PNl = Prod_Name.length; 
    var PNindex = Prod_Name.substring(5,6); 
    var PNindex2 = Prod_Name.substring(5,7); 
      var item_orderJ = new Array(71); 
      item_orderJ[0] = 2175; 
      item_orderJ[2] = 698; 
     if ( ( PNindex2.substring(0,1) == '1' || PNindex2.substring(0,1) == '2' || PNindex2.substring(0,1) == '3' ||  
            PNindex2.substring(0,1) == '4' || PNindex2.substring(0,1) == '5' || PNindex2.substring(0,1) == '6' ||  
            PNindex2.substring(0,1) == '7' ) &&  
          ( PNindex2.substring(1,2) == '1' || PNindex2.substring(1,2) == '2' || PNindex2.substring(1,2) == '3' ||  
            PNindex2.substring(1,2) == '4' || PNindex2.substring(1,2) == '5' || PNindex2.substring(1,2) == '6' ||  
            PNindex2.substring(1,2) == '7' || PNindex2.substring(1,2) == '8' || PNindex2.substring(1,2) == '9' ||  
            PNindex2.substring(1,2) == '0' ) )  
       { 
     if ( Prod_Name.substring(7,Prod_Name.length) == item_orderJ[PNindex2] ) 
       { PNindex = PNindex2; }  
       } 
    var Prod = Prod_List.options[Prod_List.selectedIndex].value; 
     var index = Prod.indexOf('$'); 
     if (index > 0) 
       { 
          var prod_dollamt = Prod.substring(index+1,Prod.length); 
          var index2 = prod_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
          else 
            { 
             prod_dollamt = prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
       } 
     var prod_tot = 0; 
      var qty_item_orderJ = new Array(71); 
      qty_item_orderJ[0] = 2176; 
      qty_item_orderJ[2] = 699; 
      var formfieldname = 'document.form1.qty_item'+PNindex  +qty_item_orderJ[PNindex]; 
      var formfieldvalue = eval(''+formfieldname+'.value'); 
      prod_tot = prod_dollamt * formfieldvalue; 
     var prod_tot_str = prod_tot.toString(); 
     var ptl = prod_tot_str.length; 
     if ( ptl <= 1 ) 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + '0' + prod_tot_str.substring(ptl-2,ptl); 
     else 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + prod_tot_str.substring(ptl-2,ptl); 
     if (PNindex == '0') 
        document.form1.total_item02177.value = '$' + prod_tot_dis; 
     if (PNindex == '2') 
        document.form1.total_item2700.value = '$' + prod_tot_dis; 
    calcCommon();  
    } 
    function calcTot2(Prod_List){ 
    var Prod_Name = Prod_List.name; 
    var PNl = Prod_Name.length; 
    var PNindex = Prod_Name.substring(8,9); 
    var PNindex2 = Prod_Name.substring(8,10); 
      var qty_item_orderJ = new Array(71); 
      qty_item_orderJ[0] = 2176; 
      qty_item_orderJ[2] = 699; 
     if ( ( PNindex2.substring(0,1) == '1' || PNindex2.substring(0,1) == '2' || PNindex2.substring(0,1) == '3' ||  
            PNindex2.substring(0,1) == '4' || PNindex2.substring(0,1) == '5' || PNindex2.substring(0,1) == '6' ||  
            PNindex2.substring(0,1) == '7' ) &&  
          ( PNindex2.substring(1,2) == '1' || PNindex2.substring(1,2) == '2' || PNindex2.substring(1,2) == '3' ||  
            PNindex2.substring(1,2) == '4' || PNindex2.substring(1,2) == '5' || PNindex2.substring(1,2) == '6' ||  
            PNindex2.substring(1,2) == '7' || PNindex2.substring(1,2) == '8' || PNindex2.substring(1,2) == '9' ||  
            PNindex2.substring(1,2) == '0' ) )  
       { 
     if ( Prod_Name.substring(10,Prod_Name.length) == qty_item_orderJ[PNindex2] ) 
       { PNindex = PNindex2; }  
       } 
    var qty_item = Prod_List.options[Prod_List.selectedIndex].value; 
    var Prod = 0; 
      var item_orderJ = new Array(71); 
      item_orderJ[0] = 2175; 
      item_orderJ[2] = 698; 
      var formfieldname = ''; 
      formfieldname = 'document.form1.item_'+PNindex  +item_orderJ[PNindex]; 
      var formfieldvalue = ''; 
      try { formfieldvalue = eval(''+formfieldname+'.value'); }  
      catch(err) { formfieldname = 'document.form1.price_item'+PNindex  +item_orderJ[PNindex];  formfieldvalue = eval(''+formfieldname+'.value'); }  
      Prod = formfieldvalue; 
     var index = Prod.indexOf('$'); 
     if (index > 0) 
       { 
          var prod_dollamt = Prod.substring(index+1,Prod.length); 
          var index2 = prod_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
          else 
            { 
             prod_dollamt = prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
       } 
     else  
       { 
        var prod_dollamt = Prod; 
        var index2 = prod_dollamt.indexOf('.'); 
        if (index2 > -1) 
          { 
           if (index2 == 0) 
             { 
              prod_dollamt = '0' + prod_dollamt; 
              index2 = 1; 
             } 
           if (prod_dollamt.length == index2+2) 
             { 
              prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length) + '0'; 
             } 
           else 
             { 
           if (prod_dollamt.length == index2+1) 
             { 
              prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length) + '00'; 
             } 
           else 
             { 
           if (prod_dollamt.length > index2+3) 
             { 
              prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,index2+3); 
             } 
           else 
             { 
              prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length); 
             }}} 
          } 
        else 
          { 
           prod_dollamt = prod_dollamt.substring(index2+1,prod_dollamt.length) + '00'; 
          } 
       } 
     var prod_tot = prod_dollamt * qty_item; 
     var prod_tot_str = prod_tot.toString(); 
     var ptl = prod_tot_str.length; 
     if ( ptl <= 1 ) 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + '0' + prod_tot_str.substring(ptl-2,ptl); 
     else 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + prod_tot_str.substring(ptl-2,ptl); 
     if (PNindex == '0') 
       { 
        document.form1.total_item02177.value = '$' + prod_tot_dis; 
        try { if ( document.form1.item_02175.checked != true ) { document.form1.item_02175.checked = true; } }  
        catch(err) {}  
       } 
     if (PNindex == '2') 
       { 
        document.form1.total_item2700.value = '$' + prod_tot_dis; 
        try { if ( document.form1.item_2698.checked != true ) { document.form1.item_2698.checked = true; } }  
        catch(err) {}  
       } 
    calcCommon();  
    } 
    function calcTot3(Prod_List){ 
    calcCommon();  
    } 
    function calcTot4(Prod_List){ 
    var Prod_Name = Prod_List.name; 
    var PNl = Prod_Name.length; 
    var PNindex = Prod_Name.substring(13,14); 
    var PNindex2 = Prod_Name.substring(13,15); 
      var shipping_item_orderJ = new Array(11); 
      shipping_item_orderJ[1] = 3799; 
     if ( ( PNindex2.substring(0,1) == '1' || PNindex2.substring(0,1) == '2' || PNindex2.substring(0,1) == '3' ||  
            PNindex2.substring(0,1) == '4' || PNindex2.substring(0,1) == '5' || PNindex2.substring(0,1) == '6' ||  
            PNindex2.substring(0,1) == '7' ) &&  
          ( PNindex2.substring(1,2) == '1' || PNindex2.substring(1,2) == '2' || PNindex2.substring(1,2) == '3' ||  
            PNindex2.substring(1,2) == '4' || PNindex2.substring(1,2) == '5' || PNindex2.substring(1,2) == '6' ||  
            PNindex2.substring(1,2) == '7' || PNindex2.substring(1,2) == '8' || PNindex2.substring(1,2) == '9' ||  
            PNindex2.substring(1,2) == '0' ) )  
       { 
     if ( Prod_Name.substring(15,Prod_Name.length) == shipping_item_orderJ[PNindex2] ) 
       { PNindex = PNindex2; }  
       } 
    var Prod = Prod_List.options[Prod_List.selectedIndex].value; 
     var index = Prod.indexOf('$'); 
     if (index > 0) 
       { 
          var prod_dollamt = Prod.substring(index+1,Prod.length); 
          var index2 = prod_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
          else 
            { 
             prod_dollamt = prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
       } 
     var prod_tot = 0; 
     prod_tot = prod_dollamt; 
     var prod_tot_str = prod_tot.toString(); 
     var ptl = prod_tot_str.length; 
     if ( ptl <= 1 ) 
        var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + '0' + prod_tot_str.substring(ptl-2,ptl); 
     else 
        if ( ptl == 2 || prod_tot_str.substring(0,ptl-2) == '0' ) 
           var prod_tot_dis = '.' + prod_tot_str.substring(ptl-2,ptl); 
        else 
           var prod_tot_dis = prod_tot_str.substring(0,ptl-2) + '.' + prod_tot_str.substring(ptl-2,ptl); 
     if (PNindex == '1') 
        document.form1.shipping_amount13800.value = '$' + prod_tot_dis; 
    calcCommon();  
    } 
    function calcTot5(Prod_List){ 
    var Prod_Name = Prod_List.name; 
    var Prod = Prod_List.options[Prod_List.selectedIndex].value; 
     var index = Prod.indexOf('%'); 
     if (index > 0) 
       { 
          var prod_dollamt = Prod.substring(index+1,Prod.length); 
          var index2 = prod_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             prod_dollamt = prod_dollamt.substring(0,index2) + prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
          else 
            { 
             prod_dollamt = prod_dollamt.substring(index2+1,prod_dollamt.length); 
            } 
       } 
     var prod_tot = 0; 
     prod_tot = prod_dollamt; 
     var sub_prod_tot_str = document.form1.sub_total3500.value; 
     if (sub_prod_tot_str.length > 0 && prod_tot > 0) 
       { 
          var total_item_dollamt = sub_prod_tot_str.substring(1,sub_prod_tot_str.length); 
          var index2 = total_item_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             total_item_dollamt = total_item_dollamt.substring(0,index2) + total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          else 
            { 
             total_item_dollamt = total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
        var misc_dollamt = total_item_dollamt * prod_tot; 
        var misc_dollamt_str_wrk = misc_dollamt.toString() 
            misc_dollamt_str_wrk = misc_dollamt_str_wrk.substring(0,misc_dollamt_str_wrk.length - 4)  
            misc_dollamt = parseInt(misc_dollamt_str_wrk); 
        var ptl = misc_dollamt_str_wrk.length; 
        var misc_dollamt_dis = misc_dollamt_str_wrk.substring(0,ptl-2) + '.' + misc_dollamt_str_wrk.substring(ptl-2,ptl); 
        document.form1.misc_amount.value = '$' + misc_dollamt_dis; 
       } 
     else 
       { 
        document.form1.misc_amount.value = '$00.00' 
       } 
    calcCommon();  
    } 
     var NumericEdit = 'N'; 
    function calcFFTot(){ 
      calc(); 
    return true; 
    } 
    function calc(){ 
    calcCommon();  
    return true; 
    } 
    function calcMTot(){ 
      calcM(); 
    return true; 
    } 
    function calcM(){ 
    calcCommon();  
    return true; 
    } 
    function calcCommon(){  
    var fin_total_item_dollamt = 0; 
    var total_item0 =  document.form1.total_item02177.value; 
     if (total_item0.length > 0) 
       { 
          var total_item_dollamt = total_item0.substring(1,total_item0.length); 
          var index2 = total_item_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             total_item_dollamt = total_item_dollamt.substring(0,index2) + total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          else 
            { 
             total_item_dollamt = total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          fin_total_item_dollamt = fin_total_item_dollamt + parseInt(total_item_dollamt); 
       } 
    var total_item2 =  document.form1.total_item2700.value; 
     if (total_item2.length > 0) 
       { 
          var total_item_dollamt = total_item2.substring(1,total_item2.length); 
          var index2 = total_item_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             total_item_dollamt = total_item_dollamt.substring(0,index2) + total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          else 
            { 
             total_item_dollamt = total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          fin_total_item_dollamt = fin_total_item_dollamt + parseInt(total_item_dollamt); 
       } 
     if (fin_total_item_dollamt > 0) 
       { 
        var sub_prod_tot_str = fin_total_item_dollamt.toString(); 
        var ptl = sub_prod_tot_str.length; 
        var sub_prod_tot_dis = sub_prod_tot_str.substring(0,ptl-2) + '.' + sub_prod_tot_str.substring(ptl-2,ptl); 
        document.form1.sub_total3500.value = '$' + sub_prod_tot_dis; 
       } 
     else 
       { 
        document.form1.sub_total3500.value = '$0.00'; 
       } 
    var fin_total_item_dollamt_pretax = fin_total_item_dollamt; 
     var ship_dollamt_str_wrk = document.form1.shipping_amount13800.value; 
     if (ship_dollamt_str_wrk.length > 0) 
       { 
          var total_item_dollamt = ship_dollamt_str_wrk.substring(1,ship_dollamt_str_wrk.length); 
          var index2 = total_item_dollamt.indexOf('.'); 
          if (index2 > 0) 
            { 
             total_item_dollamt = total_item_dollamt.substring(0,index2) + total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          else 
            { 
             total_item_dollamt = total_item_dollamt.substring(index2+1,total_item_dollamt.length); 
            } 
          fin_total_item_dollamt = fin_total_item_dollamt + parseInt(total_item_dollamt); 
       } 
     if (fin_total_item_dollamt > 0) 
       { 
        var fin_prod_tot_str = fin_total_item_dollamt.toString(); 
        var ptl = fin_prod_tot_str.length; 
        var fin_prod_tot_dis = fin_prod_tot_str.substring(0,ptl-2) + '.' + fin_prod_tot_str.substring(ptl-2,ptl); 
        document.form1.grand_total3900.value = '$' + fin_prod_tot_dis; 
       } 
     else 
       { 
        document.form1.grand_total3900.value = '$0.00'; 
       } 
    } 
    function validRequired(formField,fieldLabel,message) 
    { 
     var result = true; 
     if (formField.value == "") 
       { 
        alert('Please enter a value for the "' + fieldLabel + '" field. ' + message + ''); 
        formField.focus(); 
        result = false; 
       } 
     return result; 
    } 
    function validRequiredHid(formField,fieldLabel,message) 
    { 
     var result = true; 
     if (formField.value == "") 
       { 
        alert('Please enter a value for the "' + fieldLabel + '" field. ' + message + ''); 
        result = false; 
       } 
     return result; 
    } 
    function validRequiredAmt(formField,fieldLabel,message) 
    { 
     var result = true; 
     if (formField.value == "$.00" || 
         formField.value == "$0.00" || 
         formField.value == "$00.00" || 
         formField.value == "$000.00" || 
         formField.value == "$" || 
         formField.value == "") 
       { 
        alert('Please enter a value for the "' + fieldLabel + '" field. ' + message + ''); 
        formField.focus(); 
        result = false; 
       } 
     return result; 
    } 
    function validEmail(formField,fieldLabel,required,message) 
    { 
     var result = true; 
     var email1 = "";  
     var email2 = "";  
     var email3 = "";  
     var localpart = "";  
     var domainpart = "";  
     var domainsecondpart = "";  
     var commaindex = formField.value.indexOf(','); 
     var commaindex2 = 0; 
     var periodindex = 0; 
     var periodindex2 = 0; 
     if ( commaindex > 0 ) 
       { 
        email1 = formField.value.substring(0,commaindex); 
        commaindex2 = formField.value.indexOf(',',commaindex+1); 
        if ( commaindex2 > 0 ) 
          { 
           email2 = formField.value.substring(commaindex+1,commaindex2); 
           email3 = formField.value.substring(commaindex2+1,formField.length); 
          } 
        else 
          { 
           email2 = formField.value.substring(commaindex+1,formField.length); 
          } 
       } 
     else 
       { 
        email1 = formField.value; 
       }  
     if ( email1.length > 0 ) 
       {  
        if (result && ((formField.value.length < 3) || !isEmailAddr(email1)) ) 
          { 
           alert('Please enter a complete email address in the form: yourname@yourdomain.com'); 
           formField.focus(); 
           result = false; 
          } 
        if (result) 
          { 
           periodindex = email1.lastIndexOf('.'); 
           if ( periodindex > 0 ) 
             { 
              domainsecondpart = email1.substring(periodindex+1,email1.length); 
              if ( result && domainsecondpart.length > 4 ) 
                { 
                 alert('Invalid email address. Domain not valid.'); 
                 formField.focus(); 
                 result = false; 
                } 
             } 
           else 
             { 
              alert('Please enter a complete email address. The period is missing.'); 
              formField.focus(); 
              result = false; 
             } 
          } 
        if (result) 
          { 
           atsignindex = email1.indexOf('@'); 
           if ( atsignindex > 0 ) 
             { 
              localpart = email1.substring(0,atsignindex); 
              atsignindex2 = email1.indexOf('@',atsignindex+1); 
              if ( atsignindex2 > 0 ) 
                { 
                 alert('Invalid email address. Too many @ symbols in email address.'); 
                 formField.focus(); 
                 result = false; 
                } 
              if (result && !validEmailChar(localpart)) 
                { 
                 alert('Invalid email characters. Please re-enter your email address. (Check for imbedded spaces.)'); 
                 formField.focus(); 
                 result = false; 
                } 
              domainpart = email1.substring(atsignindex+1,periodindex); 
              if (result && !validEmailCharD(domainpart)) 
                { 
                 alert('Invalid email characters in domain portion. Please re-enter your email address. (Check for imbedded spaces.)'); 
                 formField.focus(); 
                 result = false; 
                } 
             } 
          } 
       }  
     if ( email2.length > 0 ) 
       {  
        if (result && ((formField.value.length < 3) || !isEmailAddr(email2)) ) 
          { 
           alert('Please enter a complete email address in the form: yourname@yourdomain.com'); 
           formField.focus(); 
           result = false; 
          } 
        if (result) 
          { 
           periodindex = email2.lastIndexOf('.'); 
           if ( periodindex > 0 ) 
             { 
              domainsecondpart = email2.substring(periodindex+1,email2.length); 
              if ( result && domainsecondpart.length > 4 ) 
                { 
                 alert('Invalid email address. Domain not valid.'); 
                 formField.focus(); 
                 result = false; 
                } 
             } 
           else 
             { 
              alert('Please enter a complete email address. The period is missing.'); 
              formField.focus(); 
              result = false; 
             } 
          } 
        if (result) 
          { 
           atsignindex = email2.indexOf('@'); 
           if ( atsignindex > 0 ) 
             { 
              localpart = email2.substring(0,atsignindex); 
              atsignindex2 = email2.indexOf('@',atsignindex+1); 
              if ( atsignindex2 > 0 ) 
                { 
                 alert('Invalid email address. Too many @ symbols in email address.'); 
                 formField.focus(); 
                 result = false; 
                } 
              if (result && !validEmailChar(localpart)) 
                { 
                 alert('Invalid email characters. Please re-enter your email address. (Check for imbedded spaces.)'); 
                 formField.focus(); 
                 result = false; 
                } 
             } 
          } 
       } 
     else  
       { 
        if ( result && commaindex > 0 ) 
          { 
           alert('Invalid email adress format. No email address after the comma.'); 
           formField.focus(); 
           result = false; 
          } 
       }  
     if ( email3.length > 0 ) 
       {  
        if (result && ((formField.value.length < 3) || !isEmailAddr(email3)) ) 
          { 
           alert('Please enter a complete email address in the form: yourname@yourdomain.com'); 
           formField.focus(); 
           result = false; 
          } 
        if (result) 
          { 
           periodindex = email3.lastIndexOf('.'); 
           if ( periodindex > 0 ) 
             { 
              domainsecondpart = email3.substring(periodindex+1,email3.length); 
              if ( result && domainsecondpart.length > 4 ) 
                { 
                 alert('Invalid email address. Domain not valid.'); 
                 formField.focus(); 
                 result = false; 
                } 
             } 
           else 
             { 
              alert('Please enter a complete email address. The period is missing.'); 
              formField.focus(); 
              result = false; 
             } 
          } 
        if (result) 
          { 
           atsignindex = email3.indexOf('@'); 
           if ( atsignindex > 0 ) 
             { 
              localpart = email3.substring(0,atsignindex); 
              atsignindex2 = email3.indexOf('@',atsignindex+1); 
              if ( atsignindex2 > 0 ) 
                { 
                 alert('Invalid email address. Too many @ symbols in email address.'); 
                 formField.focus(); 
                 result = false; 
                } 
              if (result && !validEmailChar(localpart)) 
                { 
                 alert('Invalid email characters. Please re-enter your email address. (Check for imbedded spaces.)'); 
                 formField.focus(); 
                 result = false; 
                } 
             } 
          } 
       }  
     else  
       { 
        if ( result && commaindex2 > 0 ) 
          { 
           alert('Invalid email adress format. No email address after the comma.'); 
           formField.focus(); 
           result = false; 
          } 
       }  
     return result; 
    } 
    function isEmailAddr(email) 
    { 
     var result = false; 
     var theStr = new String(email); 
     var index = theStr.indexOf('@'); 
     if (index > 0) 
       { 
        var pindex = theStr.indexOf('.',index); 
        if ((pindex > index+1) && (theStr.length > pindex+1)) 
    	    result = true; 
       } 
     return result; 
    } 
             function validEmailChar(localpart) 
             { 
              var result = true; 
              if (result && !allDigitsEmail(localpart)) 
    	      { 
    	       result = false; 
    	      } 
    	    return result; 
             } 
             function allDigitsEmail(str) 
             { 
    	  return inValidCharSetE(str,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_0123456789."); 
             } 
             function inValidCharSetE(str,charset) 
             { 
    	    var result = true; 
                var blankindex = 0; 
    	    for (var i=0;i<str.length;i++) 
    	      if (charset.indexOf(str.substr(i,1))<0) 
                  { 
                   if ( i == 0 && str.substring(0,1) == ' ') 
                     {} 
                   else 
                     {     
                      result = false; 
                      break; 
                     } 
                  } 
              return result; 
             } 
             function validEmailCharD(domainpart) 
             { 
              var result = true; 
              if (result && !allDigitsEmailD(domainpart)) 
    	      { 
    	       result = false; 
    	      } 
    	    return result; 
             } 
             function allDigitsEmailD(str) 
             { 
    	  return inValidCharSetD(str,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_0123456789."); 
             } 
             function inValidCharSetD(str,charset) 
             { 
    	    var result = true; 
                var blankindex = 0; 
    	    for (var i=0;i<str.length;i++) 
    	      if (charset.indexOf(str.substr(i,1))<0) 
                  { 
                   result = false; 
                   break; 
                  } 
              return result; 
             } 
    function validNumericDec(formField,fieldLabel) 
    { 
     var result = true; 
     if (result && !allDigitsDec(formField.value) && formField.value.length > 0 ) 
       { 
        alert('Please enter only numbers for the "' + fieldLabel + '" field. Value entered: ' + formField.value + ''); 
        formField.focus(); 
        result = false; 
       } 
     return result; 
    } 
    function allDigitsDec(str) 
    { 
     return inValidCharSet(str,"0123456789."); 
    } 
    function allDigits(str) 
    { 
     return inValidCharSet(str,"0123456789"); 
    } 
    function inValidCharSet(str,charset) 
    { 
     var result = true; 
     for (var i=0;i<str.length;i++) 
       if (charset.indexOf(str.substr(i,1))<0) 
         { 
    	    result = false; 
          break; 
         } 
     return result; 
    } 
    function validDate(formField,fieldLabel) 
    { 
     var result = true; 
     if ( formField.value.length == 0 ) 
       {} 
     else 
       { 
     var elems = formField.value.split("/"); 
     result = (elems.length == 3);  
     result = (formField.value.length == 10);  
     if (result && formField.value.length > 0 ) 
       { 
        var month = parseInt(elems[0],10); 
        var day = parseInt(elems[1],10); 
        var year = parseInt(elems[2],10); 
        result = allDigits(elems[0]) && (month > 0) && (month < 13) && 
          allDigits(elems[1]) && (day > 0) && (day < 32) && 
          allDigits(elems[2]) && (elems[2].length == 4); 
       } 
     if (!result && formField.value.length > 0 ) 
       { 
        alert('Please enter a date in the format MM/DD/YYYY for the "' + fieldLabel +'" field.'); 
        formField.focus(); 
       } 
       } 
     return result; 
    } 
    function validCard(formField,formField2,fieldLabel,required,message) 
    { 
     var result = true; 
     var cardLength = formField.value.length; 
     if (result && (!allDigits(formField.value) || cardLength < 4) && formField.value.length > 0 ) 
       { 
        alert('Invalid card number. Please enter only numbers for the "' + fieldLabel + '" field. No spaces or dashes. Value entered: ' + formField.value + ''); 
        formField.focus(); 
        result = false; 
       } 
     var firstdig = formField.value.substring(0,1); 
     var first4dig = formField.value.substring(0,4); 
     if (result && formField2.value == 'Master Card' && ( firstdig > '5' || firstdig < '5' || cardLength > 16 || cardLength < 16) && formField.value.length > 0 ) 
       { 
        alert('Invalid Mastercard card number. Check your card number or card type.'); 
        formField.focus(); 
        result = false; 
       } 
     if (result && formField2.value == 'Visa' && ( firstdig > '4' || firstdig < '4' || cardLength > 16 || cardLength < 13  || cardLength == 14 || cardLength == 15) && formField.value.length > 0 ) 
       { 
        alert('Invalid Visa card number. Check your card number or card type.'); 
        formField.focus(); 
        result = false; 
       } 
     if (result && formField2.value == 'American Express' && ( firstdig > '3' || firstdig < '3' || cardLength > 15 || cardLength < 15) && formField.value.length > 0 ) 
       { 
        alert('Invalid American Express card number. Check your card number or card type.'); 
        formField.focus(); 
        result = false; 
       } 
     if (result && formField2.value == 'Discover' && ( first4dig > '6011' || first4dig < '6011' || cardLength > 16 || cardLength < 16) && formField.value.length > 0 ) 
       { 
        alert('Invalid Discover card number. Check your card number or card type.'); 
        formField.focus(); 
        result = false; 
       } 
     return result; 
    } 
    function validateForm(theForm) 
    { 
     if (!validRequired(theForm.e_mail_300,"E-Mail:",'')) 
     return false; 
     if (!validEmail(theForm.e_mail_300,"E-Mail:",'Valid e-mail addresses only.')) 
     return false; 
     if (!validRequired(theForm.item_2698,"Product # 1:",'')) 
     return false; 
     if (!validRequired(theForm.qty_item2699,"Product # 1:",'')) 
     return false; 
     if (!validRequiredAmt(theForm.total_item2700,"Product # 1:",'')) 
     return false; 
     if (!validRequired(theForm.shipping_item13799,"Shipping:",'')) 
     return false; 
     if (!validRequiredAmt(theForm.shipping_amount13800,"Shipping:",'')) 
     return false; 
     if (theForm.payment_method_3959[0].checked == false &&  
        theForm.payment_method_3959[1].checked == false )  
       { 
        alert('Please enter a value for the Payment Method: field.'); 
        return false; 
       } 
    if (document.getElementById("bank_account_number_3997X") != null) 
      { 
       noInner8(); 
      } 
    else 
      {document.form1.bank_account_number_3997.value = '';} 
        if (document.getElementById("bank_account_number_3997X") != null) 
          { 
     if (!validNumericDec(theForm.bank_account_number_3997,"Bank Account Number:")) 
     return false; 
          } 
     if (!validRequired(theForm.first_name_4250,"First Name:",'')) 
     return false; 
     if (!validRequired(theForm.last_name_4450,"Last Name:",'')) 
     return false; 
     if (!validRequired(theForm.username4500,"UserName",'')) 
     return false; 
     if (!validRequired(theForm.address_line_14550,"Address Line 1:",'')) 
     return false; 
     if (!validRequired(theForm.city4750,"City:",'')) 
     return false; 
     if (!validRequired(theForm.state_4850,"State:",'')) 
     return false; 
     if (theForm.same_as_billing_info_5300[0].checked == false &&  
        theForm.same_as_billing_info_5300[1].checked == false )  
       { 
        alert('Please enter a value for the Same as billing info: field.'); 
        return false; 
       } 
    if (document.getElementById("first_name_5350X") != null) 
      { 
       noInner52(); 
      } 
    else 
      {document.form1.first_name_5350.value = '';} 
        if (document.getElementById("first_name_5350X") != null) 
          { 
     if (!validRequiredHid(theForm.first_name_5350,"First Name:",'')) 
     return false; 
          } 
    if (document.getElementById("last_name_5500X") != null) 
      { 
       noInner54(); 
      } 
    else 
      {document.form1.last_name_5500.value = '';} 
        if (document.getElementById("last_name_5500X") != null) 
          { 
     if (!validRequiredHid(theForm.last_name_5500,"Last Name:",'')) 
     return false; 
          } 
    if (document.getElementById("gender_5625X0") != null) 
      { 
       noInner16(); 
      } 
    else 
      {document.form1.gender_5625.value = '';} 
    if (document.getElementById("address_line_15750X") != null) 
      { 
       noInner55(); 
      } 
    else 
      {document.form1.address_line_15750.value = '';} 
        if (document.getElementById("address_line_15750X") != null) 
          { 
     if (!validRequiredHid(theForm.address_line_15750,"Address Line 1:",'')) 
     return false; 
          } 
    if (document.getElementById("address_line_25850X") != null) 
      { 
       noInner56(); 
      } 
    else 
      {document.form1.address_line_25850.value = '';} 
    if (document.getElementById("city5950X") != null) 
      { 
       noInner57(); 
      } 
    else 
      {document.form1.city5950.value = '';} 
        if (document.getElementById("city5950X") != null) 
          { 
     if (!validRequiredHid(theForm.city5950,"City:",'')) 
     return false; 
          } 
    if (document.getElementById("state_6050X") != null) 
      { 
       noInner75(); 
      } 
    else 
      {document.form1.state_6050.value = '';} 
        if (document.getElementById("state_6050X") != null) 
          { 
     if (!validRequiredHid(theForm.state_6050,"State:",'')) 
     return false; 
          } 
    if (document.getElementById("phone_6150X") != null) 
      { 
       noInner59(); 
      } 
    else 
      {document.form1.phone_6150.value = '';} 
        if (document.getElementById("phone_6150X") != null) 
          { 
     if (!validRequiredHid(theForm.phone_6150,"Phone:",'')) 
     return false; 
          } 
    return true; 
    }

  3. #3
    SitePoint Member
    Join Date
    Jul 2011
    Location
    Ho Chi Minh city, Vietnam
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    * Part 2
    Code:
     var  savecondarr = ''; 
    var tx1 = new Array(300); 
    var tx2 = new Array(300); 
    var tx3 = new Array(300); 
    var g1 = 0; 
    while ( g1 <= 300 ) 
     { 
      tx1[g1] = ''; 
      tx2[g1] = ''; 
      tx3[g1] = ''; 
      g1 = g1 + 1; 
     } 
    function dispBox14() { var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+59).innerHTML = tx1[59];    javascript:document.getElementById("Textb"+59).innerHTML = tx2[59];    javascript:document.getElementById("Textc"+59).innerHTML = tx3[59]; try { noInner59(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+59).innerHTML ="";    javascript:document.getElementById("Textb"+59).innerHTML ="";    javascript:document.getElementById("Textc"+59).innerHTML =""; try { noInner59(1); } catch(err) {}     blankCascade(59);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+75).innerHTML = tx1[75];    javascript:document.getElementById("Textb"+75).innerHTML = tx2[75];    javascript:document.getElementById("Textc"+75).innerHTML = tx3[75]; try { noInner75(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+75).innerHTML ="";    javascript:document.getElementById("Textb"+75).innerHTML ="";    javascript:document.getElementById("Textc"+75).innerHTML =""; try { noInner75(1); } catch(err) {}     blankCascade(75);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+57).innerHTML = tx1[57];    javascript:document.getElementById("Textb"+57).innerHTML = tx2[57];    javascript:document.getElementById("Textc"+57).innerHTML = tx3[57]; try { noInner57(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+57).innerHTML ="";    javascript:document.getElementById("Textb"+57).innerHTML ="";    javascript:document.getElementById("Textc"+57).innerHTML =""; try { noInner57(1); } catch(err) {}     blankCascade(57);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+56).innerHTML = tx1[56];    javascript:document.getElementById("Textb"+56).innerHTML = tx2[56];    javascript:document.getElementById("Textc"+56).innerHTML = tx3[56]; try { noInner56(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+56).innerHTML ="";    javascript:document.getElementById("Textb"+56).innerHTML ="";    javascript:document.getElementById("Textc"+56).innerHTML =""; try { noInner56(1); } catch(err) {}     blankCascade(56);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+55).innerHTML = tx1[55];    javascript:document.getElementById("Textb"+55).innerHTML = tx2[55];    javascript:document.getElementById("Textc"+55).innerHTML = tx3[55]; try { noInner55(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+55).innerHTML ="";    javascript:document.getElementById("Textb"+55).innerHTML ="";    javascript:document.getElementById("Textc"+55).innerHTML =""; try { noInner55(1); } catch(err) {}     blankCascade(55);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+54).innerHTML = tx1[54];    javascript:document.getElementById("Textb"+54).innerHTML = tx2[54];    javascript:document.getElementById("Textc"+54).innerHTML = tx3[54]; try { noInner54(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+54).innerHTML ="";    javascript:document.getElementById("Textb"+54).innerHTML ="";    javascript:document.getElementById("Textc"+54).innerHTML =""; try { noInner54(1); } catch(err) {}     blankCascade(54);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value != 'Yes')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+52).innerHTML = tx1[52];    javascript:document.getElementById("Textb"+52).innerHTML = tx2[52];    javascript:document.getElementById("Textc"+52).innerHTML = tx3[52]; try { noInner52(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+52).innerHTML ="";    javascript:document.getElementById("Textb"+52).innerHTML ="";    javascript:document.getElementById("Textc"+52).innerHTML =""; try { noInner52(1); } catch(err) {}     blankCascade(52);   } var rdtrue = 'n';  var noe = document.form1.same_as_billing_info_5300.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.same_as_billing_info_5300[pr].checked == true)    {     if ( document.form1.same_as_billing_info_5300[pr].value == 'No')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+16).innerHTML = tx1[16];    javascript:document.getElementById("Textb"+16).innerHTML = tx2[16];    javascript:document.getElementById("Textc"+16).innerHTML = tx3[16]; try { noInner16(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+16).innerHTML ="";    javascript:document.getElementById("Textb"+16).innerHTML ="";    javascript:document.getElementById("Textc"+16).innerHTML =""; try { noInner16(1); } catch(err) {}     blankCascade(16);   }} function dispBox15() { var rdtrue = 'n';  var noe = document.form1.payment_method_3959.length; var pr = 0; while ( pr < noe && rdtrue == 'n' ) {  if ( document.form1.payment_method_3959[pr].checked == true)    {     if ( document.form1.payment_method_3959[pr].value == 'ATM')       { rdtrue = 'y'; }     }  pr = pr + 1; } if (rdtrue == 'y')   {    javascript:document.getElementById("Texta"+8).innerHTML = tx1[8];    javascript:document.getElementById("Textb"+8).innerHTML = tx2[8];    javascript:document.getElementById("Textc"+8).innerHTML = tx3[8]; try { noInner8(); } catch(err) {}    } else    {    javascript:document.getElementById("Texta"+8).innerHTML ="";    javascript:document.getElementById("Textb"+8).innerHTML ="";    javascript:document.getElementById("Textc"+8).innerHTML =""; try { noInner8(1); } catch(err) {}     blankCascade(8);   }} function noInner8(i) 
    { 
        if ( i == "1" )  
          {document.form1.bank_account_number_3997.value = '';} 
        else  
          {document.form1.bank_account_number_3997.value = document.getElementById('bank_account_number_3997X').value;} 
        try {  
        dispBox8(); 
        } catch(err) {}  
        try {  
        fieldCalc('bank_account_number_3997');  
        } catch(err) {}  
     } 
    function noInner52(i) 
    { 
        if ( i == "1" )  
          {document.form1.first_name_5350.value = '';} 
        else  
          {document.form1.first_name_5350.value = document.getElementById('first_name_5350X').value;} 
        try {  
        dispBox52(); 
        } catch(err) {}  
        try {  
        fieldCalc('first_name_5350');  
        } catch(err) {}  
     } 
    function noInner54(i) 
    { 
        if ( i == "1" )  
          {document.form1.last_name_5500.value = '';} 
        else  
          {document.form1.last_name_5500.value = document.getElementById('last_name_5500X').value;} 
        try {  
        dispBox54(); 
        } catch(err) {}  
        try {  
        fieldCalc('last_name_5500');  
        } catch(err) {}  
     } 
    function noInner16(i) 
    { 
        var rdtrue = 'n';  
        var pr = 0; 
        while ( pr < 2 && rdtrue == 'n' ) 
          { 
           if ( typeof document.getElementById('gender_5625X'+pr) != 'undefined') 
             { 
              if ( document.getElementById('gender_5625X'+pr).checked == true) 
                { 
                 rdtrue = 'y'; 
                 document.form1.gender_5625.value = document.getElementById('gender_5625X'+pr).value; 
                } 
             } 
           pr = pr + 1; 
          } 
     } 
    function noInner55(i) 
    { 
        if ( i == "1" )  
          {document.form1.address_line_15750.value = '';} 
        else  
          {document.form1.address_line_15750.value = document.getElementById('address_line_15750X').value;} 
        try {  
        dispBox55(); 
        } catch(err) {}  
        try {  
        fieldCalc('address_line_15750');  
        } catch(err) {}  
     } 
    function noInner56(i) 
    { 
        if ( i == "1" )  
          {document.form1.address_line_25850.value = '';} 
        else  
          {document.form1.address_line_25850.value = document.getElementById('address_line_25850X').value;} 
        try {  
        dispBox56(); 
        } catch(err) {}  
        try {  
        fieldCalc('address_line_25850');  
        } catch(err) {}  
     } 
    function noInner57(i) 
    { 
        if ( i == "1" )  
          {document.form1.city5950.value = '';} 
        else  
          {document.form1.city5950.value = document.getElementById('city5950X').value;} 
        try {  
        dispBox57(); 
        } catch(err) {}  
        try {  
        fieldCalc('city5950');  
        } catch(err) {}  
     } 
    function noInner75(i) 
    { 
        document.form1.state_6050.value = document.getElementById('state_6050X').value; 
     } 
    function noInner59(i) 
    { 
        if ( i == "1" )  
          {document.form1.phone_6150.value = '';} 
        else  
          {document.form1.phone_6150.value = document.getElementById('phone_6150X').value;} 
        try {  
        dispBox59(); 
        } catch(err) {}  
        try {  
        fieldCalc('phone_6150');  
        } catch(err) {}  
     } 
     tx1[8] = "       <font color='#000000' face='Arial' size=2><b>Bank Account Number:</b></font>    "; tx2[8] = " <INPUT TYPE=TEXT NAME=bank_account_number_3997X VALUE='' SIZE='20' MAXLENGTH='20'  id=bank_account_number_3997X onkeyup=noInner8(); >    "; tx3[8] = "       <font color='#000000' face=Arial size=-2>Bank`s Account 5 last digits</font>    "; tx1[52] = "       <font color='#000000' face='Arial' size=2><b>First Name:</b></font><font color=red face=Arial size=2><b>*</b></font>    "; tx2[52] = " <INPUT TYPE=TEXT NAME=first_name_5350X VALUE='' SIZE='15' MAXLENGTH='15'  id=first_name_5350X onkeyup=noInner52(); >    "; tx3[52] = "       <font color='#000000' face=Arial size=-2></font>    "; tx1[54] = "       <font color='#000000' face='Arial' size=2><b>Last Name:</b></font><font color=red face=Arial size=2><b>*</b></font>    "; tx2[54] = " <INPUT TYPE=TEXT NAME=last_name_5500X VALUE='' SIZE='15' MAXLENGTH='15'  id=last_name_5500X onkeyup=noInner54(); >    "; tx3[54] = "       <font color='#000000' face=Arial size=-2></font>    "; tx1[16] = "       <font color='#000000' face='Arial' size=2><b>Gender:</b></font>    "; tx2[16] = "<DIV ALIGN=LEFT><INPUT TYPE=RADIO NAME='gender_5625X' VALUE='Male' id=gender_5625X0 onclick=noInner16(); ><font color='#000000' face=Arial size=2>Male</font> <INPUT TYPE=RADIO NAME='gender_5625X' VALUE='Female' id=gender_5625X1 onclick=noInner16(); ><font color='#000000' face=Arial size=2>Female</font> </DIV>    "; tx3[16] = ""; tx1[55] = "       <font color='#000000' face='Arial' size=2><b>Address Line 1:</b></font><font color=red face=Arial size=2><b>*</b></font>    "; tx2[55] = " <INPUT TYPE=TEXT NAME=address_line_15750X VALUE='' SIZE='25' MAXLENGTH='25'  id=address_line_15750X onkeyup=noInner55(); >    "; tx3[55] = "       <font color='#000000' face=Arial size=-2></font>    "; tx1[56] = "       <font color='#000000' face='Arial' size=2><b>Address Line 2:</b></font>    "; tx2[56] = " <INPUT TYPE=TEXT NAME=address_line_25850X VALUE='' SIZE='25' MAXLENGTH='25'  id=address_line_25850X onkeyup=noInner56(); >    "; tx3[56] = "       <font color='#000000' face=Arial size=-2></font>    "; tx1[57] = "       <font color='#000000' face='Arial' size=2><b>City:</b></font><font color=red face=Arial size=2><b>*</b></font>    "; tx2[57] = " <INPUT TYPE=TEXT NAME=city5950X VALUE='' SIZE='18' MAXLENGTH='18'  id=city5950X onkeyup=noInner57(); >    "; tx3[57] = "       <font color='#000000' face=Arial size=-2></font>    "; tx1[75] = "       <font color='#000000' face='Arial' size=2><b>State:</b></font><font color=red face=Arial size=2><b>*</b></font>    "; tx2[75] = " <SELECT NAME=state_6050X id=state_6050X onchange=noInner75(); ><OPTION VALUE=''>Choose a State</OPTION><OPTION VALUE='Taipei'>Taipei</OPTION><OPTION VALUE='Taizhong'>Taizhong</OPTION></SELECT>    "; tx3[75] = "       <font color='#000000' face=Arial size=-2></font>    "; tx1[59] = "       <font color='#000000' face='Arial' size=2><b>Phone:</b></font><font color=red face=Arial size=2><b>*</b></font>    "; tx2[59] = " <INPUT TYPE=TEXT NAME=phone_6150X VALUE='' SIZE='10' MAXLENGTH='25'  id=phone_6150X onkeyup=noInner59(); >    "; tx3[59] = "       <font color='#000000' face=Arial size=-2></font>    ";function saveCondParent(conditemid,formuseritemid) 
    { 
     var pix   = 0; 
     var pix2  = 0; 
     var pix3  = 0; 
     var holdprnt  = ''; 
     savecondarr = savecondarr + '^' + conditemid + '^' + '~' + formuseritemid + '~'; 
     pix = savecondarr.indexOf('^' + formuseritemid + '^'); 
     if ( pix > -1 ) 
       { 
        pix2 = savecondarr.indexOf('~',pix+2); 
        if ( pix2 > -1 ) 
          { 
           pix3 = savecondarr.indexOf('^',pix2+2); 
           if ( pix3 > -1 ) 
             { 
              holdprnt  = savecondarr.substring(pix2,pix3);  
              savecondarr = savecondarr + holdprnt; 
             } 
           else 
             { 
              holdprnt  = savecondarr.substring(pix2,savecondarr.length);  
              savecondarr = savecondarr + holdprnt; 
             } 
          } 
       } 
    } 
    function blankCascade(conditemid) 
    { 
     var pix   = 0; 
     var pix2  = 0; 
     var holdpix2a  = 0; 
     var holdpix2b  = 0; 
     var holdpix2c  = 0; 
     var holdprnt  = ''; 
     while ( savecondarr.length > 4 && pix > -1 ) 
       { 
        pix = savecondarr.indexOf('~' + conditemid + '~'); 
        holdpix2c = savecondarr.indexOf('^',pix); 
        if ( holdpix2c == -1 ) 
          { holdpix2c = savecondarr.length; }  
        if ( pix > -1 ) 
          { 
           pix2 = 0; 
           pix2 = savecondarr.indexOf('^'); 
           while ( pix2 < pix && pix2 > -1 ) 
             { 
              holdpix2a  = holdpix2b; 
              holdpix2b  = pix2; 
              pix2 = savecondarr.indexOf('^',pix2+2); 
             } 
           if ( holdpix2a > -1 && holdpix2b > -1 ) 
             { 
              holdprnt  = savecondarr.substring(holdpix2a+1,holdpix2b);  
              javascript:document.getElementById("Texta"+holdprnt).innerHTML ="";  
              javascript:document.getElementById("Textb"+holdprnt).innerHTML ="";  
              javascript:document.getElementById("Textc"+holdprnt).innerHTML ="";  
              savecondarr = savecondarr.replace(savecondarr.substring(holdpix2a,holdpix2c),''); 
              try { window['noInner'+holdprnt](1); } catch(err) {} 
             } 
          } 
       } 
    } 
    try {  
    noInner15();  
    } catch(err) {}  
    try {  
    dispBox15();  
    } catch(err) {}  
    try {  
    noInner8();  
    } catch(err) {}  
    try {  
    dispBox8();  
    } catch(err) {}  
    try {  
    noInner14();  
    } catch(err) {}  
    try {  
    dispBox14();  
    } catch(err) {}  
    try {  
    noInner16();  
    } catch(err) {}  
    try {  
    dispBox16();  
    } catch(err) {}  
    try {  
    noInner52();  
    } catch(err) {}  
    try {  
    dispBox52();  
    } catch(err) {}  
    try {  
    noInner54();  
    } catch(err) {}  
    try {  
    dispBox54();  
    } catch(err) {}  
    try {  
    noInner55();  
    } catch(err) {}  
    try {  
    dispBox55();  
    } catch(err) {}  
    try {  
    noInner56();  
    } catch(err) {}  
    try {  
    dispBox56();  
    } catch(err) {}  
    try {  
    noInner57();  
    } catch(err) {}  
    try {  
    dispBox57();  
    } catch(err) {}  
    try {  
    noInner75();  
    } catch(err) {}  
    try {  
    dispBox75();  
    } catch(err) {}  
    try {  
    noInner59();  
    } catch(err) {}  
    try {  
    dispBox59();  
    } catch(err) {}  
    </script>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •