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

