//This sends the variables to the xml datasheet for instant errors and quotes
function printing_quote(book_size,binding_type,paper_color,black_page_quantity,color_page_quantity,urlencode) {
	var current_url = window.location.protocol + "//" + window.location.host;
	//Decides what type of call to make
	if (window.XMLHttpRequest) {
		http = new XMLHttpRequest();
	} 
	else if (window.ActiveXObject) {
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}	 
		http.onreadystatechange = function (){
		if (http.readyState == 4) {
			var xmlObj = http.responseXML;
			var disp_quote = xmlObj.getElementsByTagName("disp_quote").item(0).firstChild.data;
			var disp_pos_message = xmlObj.getElementsByTagName("pod_message").item(0).firstChild.data;
			document.getElementById('disp_quote').innerHTML = disp_quote;
			document.getElementById('pod_message').innerHTML = disp_pos_message;
		}
	};
	http.open("GET",current_url+'/xml_feeds.php?go=printing_quote&book_size='+book_size+'&binding_type='+binding_type+'&paper_color='+paper_color+'&black_page_quantity='+black_page_quantity+'&color_page_quantity='+color_page_quantity+'&urlencode='+urlencode,true);
	http.send(null);
}
