function currLocation(locationReferer) {
	window.location = locationReferer; 
}

function defaultPaging(locationReferer, absolute_url, sess, count) {
			
		xmlHttp_cart = createXmlHttpObject();
		
		if (xmlHttp_cart==null) {
			ajax_not_supported();
			return false;
		} 
		
		//alert(locationReferer);
		
		var url = absolute_url + '/ajax_shop.php?maxOnPage='+count+'&sess='+sess;
		
		//window.location(locationReferer);
		
				
		var block = document.getElementById('shopSess');
		
		xmlHttp_cart.onreadystatechange = function () {
			stateChanged(xmlHttp_cart,block,block);
		}
		
		xmlHttp_cart.open("GET",url,true);
		xmlHttp_cart.send(null);
		
		currLocation(locationReferer);
		
		return true;
}

function defaultOrdering(locationReferer, absolute_url, sess, order) {
			
		xmlHttp_cart = createXmlHttpObject();
		
		if (xmlHttp_cart==null) {
			ajax_not_supported();
			return false;
		} 
		
		//alert(locationReferer);
		
		var url = absolute_url + '/ajax_shop.php?shop_default_order='+order+'&sess='+sess;
		
		//window.location(locationReferer);
		
				
		var block = document.getElementById('shopSess');
		
		xmlHttp_cart.onreadystatechange = function () {
			stateChanged(xmlHttp_cart,block,block);
		}
		
		xmlHttp_cart.open("GET",url,true);
		xmlHttp_cart.send(null);
		
		currLocation(locationReferer);
		
		return true;
}

function defaultOrderingType(locationReferer, absolute_url, sess, type) {
			
		xmlHttp_cart = createXmlHttpObject();
		
		if (xmlHttp_cart==null) {
			ajax_not_supported();
			return false;
		} 
		
		//alert(locationReferer);
		
		var url = absolute_url + '/ajax_shop.php?orderingType='+type+'&sess='+sess;
		
		//window.location(locationReferer);
		
				
		var block = document.getElementById('shopSess');
		
		xmlHttp_cart.onreadystatechange = function () {
			stateChanged(xmlHttp_cart,block,block);
		}
		
		xmlHttp_cart.open("GET",url,true);
		xmlHttp_cart.send(null);
		
		currLocation(locationReferer);
		
		return true;
}

