function whatsupbro(formular, id_multishop) {
	var variant = new Array();
	var item_count = formular.item_count.value;
	var productid = formular.id_product.value;

	if (formular.elements['variant[]'] != null) {
		if (formular.elements['variant[]'].firstChild == null) {
			for (var x = 0; x < formular.elements['variant[]'].length; x++)
				variant.push('variant[]=' + formular.elements['variant[]'][x].options[formular.elements['variant[]'][x].selectedIndex].value);
		} else
			variant.push('variant[]=' + formular.elements['variant[]'].options[formular.elements['variant[]'].selectedIndex].value);
	}

	var str = '&' + variant.join('&');

	if (!send_xmlhttprequest(pridaljsemtotam, 'GET', '/index.php?ma=ajax&sid=pcart&ms=' + id_multishop + '&item_count=' + item_count + '&id_product=' + productid + str)) {
		return true;
	}

	//document.write('/index.php?ma=ajax&sid=pcart&ms=' + id_multishop + '&item_count=' + item_count + '&id_product=' + productid + str);

	return false;
}

function pridaljsemtotam(xmlhttp) {
	if (xmlhttp.readyState == 4) {
		var cart = xmlhttp.responseXML.getElementsByTagName('cart')[0].firstChild.data;
		var info = xmlhttp.responseXML.getElementsByTagName('info')[0].firstChild.data;


		document.getElementById('dark_bg').style.display = 'block';
		document.getElementById('matwindow').style.display = 'block';
		document.getElementById('matwindow_in').style.display = 'block';
		document.getElementById('matwindow_in').innerHTML = info;

		document.getElementById('supercartos').innerHTML = cart;

        reg = /^.*MSIE 6.*$/;
        if (reg.test(navigator.appVersion)) {
            var sel = document.body.getElementsByTagName("SELECT");
            for (var i = 0; i < sel.length; i++)
                sel[i].style.visibility = "hidden";
        }
	}
}