<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<?php if ($payment_methods) { ?>
  <?php foreach ($payment_methods as $payment_method) { ?>
      <div class="osc-item-pay">
        <?php if ($payment_method['code'] == $code || !$code) { ?>
        <?php $code = $payment_method['code']; ?>
            <input type="radio" name="payment_method" value="<?php echo $payment_method['code']; ?>" id="<?php echo $payment_method['code']; ?>" checked="checked" />
        <?php } else { ?>
            <input type="radio" name="payment_method" value="<?php echo $payment_method['code']; ?>" id="<?php echo $payment_method['code']; ?>" />
        <?php } ?></td>
        <label for="<?php echo $payment_method['code']; ?>"><?php echo $payment_method['title']; ?></label>
      </div>
  <?php } ?>
<?php } ?>
<script type="text/javascript"><!--
          $("#osc-payment-data  input").click(function(){
           update_three_block(1);
            });

//--></script>


