function addCart() {
    var qty = document.getElementById('qty').value
    if (isNaN(qty)) { alert('Please enter a valid number from 1 to 20. Thank you.'); retun; }
    if (parseInt(qty) > 20) {alert('For larger shipments please contact us directly. Maximum quantity per item is 20. Thank you for understanding.');retun;}
    var message = "";
    $.blockUI();
    var post = "";
    var $inputs = $('#myForm input, #myForm select');
    $inputs.each(function(i, el) {
        post += $(el).attr('id') + "@@" + $(el).val() + "||";
    });
    post += 'message@@' + message
    $.ajax({
        type: "POST",
        async: false,
        url: "engines/submitArt.asp",
        data: post,
        cache: false,
        dataType: 'html',
        error: function(rez) {
            $.unblockUI();
            $.weeboxs.open(rez.responseText, { title: 'Error', type: 'error', showButton: false, height: 100, width: 300, modal: false, draggable: false });
        },
        success: function(rez) {
            $.unblockUI();
            if (rez == '1') {
                $.weeboxs.open('You are not logged in, or your session has expired! Please Log in or Register!', { title: 'Warning', type: 'prompt', showButton: true, okBtnName: 'Login', cancelBtnName: 'Register', height: 100, width: 300, modal: false, draggable: false, onok: function() { document.location = 'login.asp' }, oncancel: function() { document.location = 'register.asp' } });
            }
            else {
                $.weeboxs.open('Cart successfully updated! Info and confirmation of Your order at View Cart link!', { title: 'Success', type: 'success', timeout: 3, showButton: false, height: 100, width: 300, modal: false, draggable: false });
            }
        }
    });
}

function noCart() {
    alert('Oooops!\nShipping to your region is not available at the moment.\nPlease contact us for further information.Thank you for understanding.')
}