// JavaScript Document

// DispPrice
// change here
// oldvar = DispPrice
// newvar = apa apa aje


var xmlHttpDispPrice;

function GetXmlHttpObjectDispPrice() {
	var xmlHttpDispPrice=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttpDispPrice=new XMLHttpRequest();
	}
	catch (e) {
		// Internet Explorer
		try {
			xmlHttpDispPrice=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttpDispPrice=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttpDispPrice;
}



function stateChangedDispPrice()  { 
	if (xmlHttpDispPrice.readyState==4) { 
		document.getElementById("dispPrice").innerHTML=xmlHttpDispPrice.responseText;
	}
}

function dispPrice(str1) {
	xmlHttpDispPrice=GetXmlHttpObjectDispPrice();
	if (xmlHttpDispPrice==null) {
		alert ("Your browser does not support AJAX!");
		return;
	} 
	var url="__disp_price.php";
	url=url+"?u="+str1;
	url=url+"&sid="+Math.random();
	xmlHttpDispPrice.onreadystatechange=stateChangedDispPrice;
	xmlHttpDispPrice.open("GET",url,true);
	xmlHttpDispPrice.send(null);
}
