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 attach_file(p_script_url) {
	script = document.createElement('script');
	script.src = p_script_url;
	document.getElementsByTagName('head')[0].appendChild(script);
}

function set_shipping(shipping_method) {
	//alert(shipping_method);
	//call_url('set_shipping.php?shipping_method=' + shipping_method, '');
	window.location.href='checkout_option.php?shipping_method=' + shipping_method;
}