function callbackfunction_AddIntoCart(responseJS){sended_request = false;if (typeof responseJS != 'undefined'){if (typeof responseJS.cart != 'undefined'){var little_cart = document.getElementById('little_cart');if (little_cart){var span = document.createElement("span");span.style.display = 'none';span.innerHTML = "Stupid IE. " + responseJS.cart;runScripts(span.getElementsByTagName('SCRIPT'));little_cart.innerHTML = responseJS.cart;}else{alert('Ошибка! Краткая корзина не найдена');}}}}
function AddIntoCart(shop_path, item_id, item_count){cmsrequest = shop_path + 'cart/?ajax_add_item_id=' + item_id + '&count=' + item_count;sendRequest(cmsrequest, 'get', callbackfunction_AddIntoCart);return false;}
if (document.images){var img = new Object();img["ajax_loader_min"] = new Image();img["ajax_loader_min"].src = '/hostcmsfiles/images/ajax_loader_mini.gif';}
function ShowImgWindow(title, src, width, height){obj = window.open("", "", "scrollbars=0,dialog=0,minimizable=1,modal=1,width="+width+",height="+height+",resizable=0");obj.document.write("<html>");obj.document.write("<head>");obj.document.write("<title>"+title+"</title>");obj.document.write("</head>");obj.document.write("<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");obj.document.write("<img src=\""+src+"\" width=\""+width+"\" height=\""+height+"\" alt=\""+title+"\" />");obj.document.write("</body>");obj.document.write("</html>");obj.document.close();}
