

  /**
   * Copy a StoreUser Billing Address to their Shipping Address
   *
   * @since 2005.11.01
   * @return bool true
   */
  function copyBillingToShipping() {

    document.getElementById('shippingFirstName').value 			= document.getElementById('billingFirstName').value;
    document.getElementById('shippingLastName').value 			= document.getElementById('billingLastName').value;
    document.getElementById('shippingCompany').value 			= document.getElementById('billingCompany').value;
    document.getElementById('shippingAddress').value 			= document.getElementById('billingAddress').value;
    document.getElementById('shippingExtendedAddress').value 	= document.getElementById('billingExtendedAddress').value;
    document.getElementById('shippingCity').value 				= document.getElementById('billingCity').value;
    document.getElementById('shippingState').value 				= document.getElementById('billingState').value;
    document.getElementById('shippingZip').value 				= document.getElementById('billingZip').value;
    document.getElementById('shippingCountry').value 			= document.getElementById('billingCountry').value;
    document.getElementById('shippingDayPhone').value 			= document.getElementById('billingDayPhone').value;

    return true;

  }


  /**
   * Store User update password form validation.
   *
   * @since 2005.11.01
   * @return bool true if no error, false if error
   */
  function validateUpdatePasswordForm() {
    errors = '';
    if (document.update_password.newPassword.value != document.update_password.newConfirm.value) {
      errors += "New password and confirm password do not match!\n";
    }

    if (document.update_password.original.value == "") {
      errors += "Original password must have a value!\n";
    }

    if (document.update_password.newPassword.value == "") {
      errors += "New password must have a value!\n";
    }

    if (document.update_password.newConfirm.value == "") {
      errors += "Confirm password must have a value!\n";
    }

    if (errors != '') {
      alert(errors);
      return false;
    }

    return true;

  }