function call_url(url, element) {
	var req;
	var data;
	
 	var msxmlhttp = new Array(
		'Msxml2.XMLHTTP.5.0',
		'Msxml2.XMLHTTP.4.0',
		'Msxml2.XMLHTTP.3.0',
		'Msxml2.XMLHTTP',
		'Microsoft.XMLHTTP');
	for (var i = 0; i < msxmlhttp.length; i++) {
		try {
			req = new ActiveXObject(msxmlhttp[i]);
		} catch (e) {
			req = null;
		}
	}
 			
	if(!req && typeof XMLHttpRequest != "undefined")
		req = new XMLHttpRequest();
	if (!req)
		return;
	
	req.onreadystatechange = function() { 
		if(req.readyState == 4) {
			if(req.status == 200) {
				data = req.responseText.replace(/^\s*|\s*$/g,"");
				if (element) {
					document.getElementById(element).innerHTML = eval(data);
				} else {
					eval(data);
				}
			} else {
				return;
			}
		}
	};
	req.open("GET", url, true);
	req.send(null);
	return true;
}

function PopupChart(id) {
	jQuery.facebox(function() {  $.get('popup_product_chart.php', {id: id}, function(data) { $.facebox(data) }) })
}

