﻿

// IE 6.0, 7.0 nem támogatott
function CheckIEVersion() {
    $(document).ready(function () {
        if ($.browser.msie) {
            if (parseInt($.browser.version) < 8) {
                $('#notsupportedIE').dialog(
                {
                    modal: true,
                    buttons: {
                        Ok: function () {
                            $(this).dialog("close");
                        }
                    }
                }
                );
            }
        }
    });
}




// ha azonos a két cím, akkor le kell tiltani a beviteli mezőket (adatmódosítás)
function SetPostAddress() {

    if ($(".jq-addressisidentical input").attr('checked')) {

        $('#txtPostName').val($('#txtInvoiceName').val());
        $('#txtPostZip').val($('#txtInvoiceZip').val());
        $('#txtPostCity').val($('#txtInvoiceCity').val());
        $('#txtPostStreet').val($('#txtInvoiceStreet').val());

        $('.postaddress').attr('disabled', true);

    }
    else {
        $('.postaddress').removeAttr('disabled');
    }
}


