[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/javascript/ -> checkout_shipping_address.js.php (source)

   1  <script language="javascript" type="text/javascript"><!--
   2  var selected;
   3  
   4  function selectRowEffect(object, buttonSelect) {
   5    if (!selected) {
   6      if (document.getElementById) {
   7        selected = document.getElementById('defaultSelected');
   8      } else {
   9        selected = document.all['defaultSelected'];
  10      }
  11    }
  12  
  13    if (selected) selected.className = 'moduleRow';
  14    object.className = 'moduleRowSelected';
  15    selected = object;
  16  
  17  // one button is not an array
  18    if (document.checkout_address.address[0]) {
  19      document.checkout_address.address[buttonSelect].checked=true;
  20    } else {
  21      document.checkout_address.address.checked=true;
  22    }
  23  }
  24  
  25  function rowOverEffect(object) {
  26    if (object.className == 'moduleRow') object.className = 'moduleRowOver';
  27  }
  28  
  29  function rowOutEffect(object) {
  30    if (object.className == 'moduleRowOver') object.className = 'moduleRow';
  31  }
  32  
  33  function check_form_optional(form_name) {
  34    var form = form_name;
  35  
  36    var firstname = form.elements['firstname'].value;
  37    var lastname = form.elements['lastname'].value;
  38    var street_address = form.elements['street_address'].value;
  39  
  40    if (firstname == '' && lastname == '' && street_address == '') {
  41      return true;
  42    } else {
  43      return check_form(form_name);
  44    }
  45  }
  46  //--></script>
  47  <?php require (DIR_WS_JAVASCRIPT . 'form_check.js.php'); ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7