<script type="text/javascript">// <![CDATA[

jQuery(document).ready(function(){

    jQuery("#PAYMENT_SELECTION").before(

        '<div id="TERMS_AND_CONDITIONS">' +

        '<table class="paymentMethodTable" style="width:100%;margin:10px 0 0 0">' +

        '<tr>' +

        '<th class="leftAlign">Terms and Conditions</th>' +

        '</tr>' +

        '<tr class="cellLow">' +

        '<td>' +

        '<input type="checkbox" id="termsandconditions" name="termsandconditions" value="accept"> ' +

      '<label for="termsandconditions">I agree to the <a href="YOURTERMSANDCONDITIONSURLHERE" target="_blank"> terms & conditions.</a> </label>' +

        '</td>' +

        '</tr>' +

        '</table>' +

        '</div>'

    );

        var error_msg_tc = "You must agree to the terms and conditions before placing your order.";

        if(jQuery("form[name=orderFormLockDownForm]").length){

                jQuery(".continueButton").click(function(){

                        if (!jQuery("#termsandconditions").is(":checked")){          

                                alert(error_msg_tc);

                                return false;

                        } else {

                                return true;

                        }

                });

        }

        else{

                jQuery("form[name=orderForm]").submit(function(){

                        if (!jQuery("#termsandconditions").is(":checked")){          

                                alert(error_msg_tc);

                                jQuery(".continueButton").eq(1).attr("href", "javascript:Infusion.Ecomm.OrderForms.placeOrder('false', 'orderForm', true, 0, 0);");

                                return false;

                        } else {

                                return true;

                        }

                });

        }

       

});

 

// ]]></script>