<!-- ajax. begin -->
<!--
function check_unique_key(url, params) {
	var unique_key = false;
	
	try {
		var xml_http = zXmlHttp.createRequest();
		
		xml_http.open("post", url, false);
		
		xml_http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		
		xml_http.send(params);
		
		if (xml_http.readyState == 4) {		
			if (xml_http.status == 200) {
//				alert(xml_http.responseText);
				var row = xml_http.responseXML.getElementsByTagName("row");
				var text_str = "";
//				alert(rows);
				if (row && row.length>0) {	// have record.
					for(i=0; i<row.length; i++){
//						alert(row[i].getElementsByTagName("unique")[0].firstChild.data);
						if (row[i].getElementsByTagName("unique")!=null &&
							row[i].getElementsByTagName("unique").length>0) {
							
							text_str = row[i].getElementsByTagName("unique")[0].firstChild.data;
							unique_key = text_str==1?true:false;
//							alert(row[i].getElementsByTagName("count")[0].firstChild);
//							alert("unique: "+text_str+"\n"+"count: "+row[i].getElementsByTagName("count")[0].firstChild.data);
						}
					}
				} else {	// no record.
					alert("No xml!");
				}
			}
		}
	} catch(err) {
		alert(err);
	}
	
	return unique_key;
}

function ajax_get_all_amount_total_price(url, params) {
	try {
		
		var loader=new net.ContentLoader(url, function(){}, params);
		
		var json_obj = JSON.parse(loader.req.responseText);
		
		el = document.getElementById("ajax_all_amount");
		if (el.getElementsByTagName("span") && el.getElementsByTagName("span").length>0 ){
			op = el.getElementsByTagName("span")[0];
			op.parentNode.removeChild(op);
		}
		
		el = document.getElementById("ajax_all_total_price");
		if (el.getElementsByTagName("span")  && el.getElementsByTagName("span").length>0 ){
			op = el.getElementsByTagName("span")[0];
			op.parentNode.removeChild(op);
		}
		
		var all_amount = json_obj.all_amount;
		var all_total_price = json_obj.all_total_price;
		
		el = document.getElementById("ajax_all_amount");
		op = document.createElement("span");
		oText = document.createTextNode(all_amount);
		op.appendChild(oText);
		el.appendChild(op);
		
		el = document.getElementById("ajax_all_total_price");
		op = document.createElement("span");
		oText = document.createTextNode(all_total_price);
		op.appendChild(oText);
		el.appendChild(op);

	} catch(err) {
		alert(loader.req.responseText+"\n"+err);
	}
}
-->
<!-- ajax. end -->