function xmlhttpPost(strURL, idx, p) 
{
	//var obj_zoom = document.getElementById('zoom');
	//obj_zoom.className='tdhidden';

	var xmlHttpReq = false;
    var self = this;
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText, idx);
        }
    }
    self.xmlHttpReq.send(getquerystring(idx, p));
}
function getquerystring(idx, p)
{
	
	if(idx=="order")
	{
		
		
		var IE = document.all?true:false
		if (!IE) document.captureEvents(Event.MOUSEMOVE)
		var tempX = 0;
		var tempY = 0;
		  
		  	
		    tempY = 530;
		  
		  if (tempX < 0){tempX = 0}
		  if (tempY < 0){tempY = 0}  
		  
		  var margin_top = (tempY-50)+'px';
		  var margin = margin_top+" 0px 0px 500px";
		document.getElementById("popup1").style.margin = margin;
		document.getElementById('popup1').style.display='block';
		document.getElementById("middletd").className='tdalpha';

		var arr_p = p.split("***");
		qstr = 'x1=' + escape(arr_p[0])+ '&x2=' + escape(arr_p[1])+ '&x3=' + arr_p[2];
	}
	
	return qstr;
}
function updatepage(str, idx)
{
	
	if(idx == "order")
	{
		document.getElementById('popup1').style.display='none';
		document.getElementById("middletd").className='tdnonalpha';
		document.getElementById("basket_count").innerHTML=str;
	}


}

/*var is_opera = /opera\/9/i.test(navigator.userAgent);
var is_gecko = /gecko/i.test(navigator.userAgent);
var is_ie    = /MSIE/.test(navigator.userAgent);*/

function setCVisibleProd(prod)
{
	document.getElementById(prod).style.display='block';
	
}
 
function setCHiddenProd(prod)
{
	javascript:document.getElementById(prod).style.display='none';
}

