function openWindow(url, lang, cur, other)
{
	var width = 1000;
	var height = 670;
	var name = 'erlik';
	var lang;

	if (lang == '') {
		lang = 'fr';
	}
	
	url += "?lang=" + lang + "&cur=" + cur + other;
	
	var ah = screen.availHeight-30;
	var aw = screen.availWidth;
	//var aw = screen.availWidth-5;
	//name = "_blank";
	var str = "height="+ah+",innerHeight="+ah+",width="+aw+",innerWidth="+aw;
	var xc = 0;
	var yc = 0;
	
	str += ",left="+xc+",screenX="+xc;
	str += ",top="+yc+",screenY="+yc;
	
	if (screen.availHeight > 590) {
		str += ",scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no";
	}
	else {
		str += ",scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no";
	}
	
	var win = window.open(url, name, str);
}

function xmlhttpPost(strURL, sku)
{
	var xmlHttpReq = false;
	var self = this;
	
	if (window.XMLHttpRequest)	// Mozilla/Safari
	{
		self.xmlHttpReq = new XMLHttpRequest();
	}
	else if (window.ActiveXObject)	// IE
	{
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	self.xmlHttpReq.open('POST', strURL, true);
	self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=iso-8859-1");
	self.xmlHttpReq.setRequestHeader("Connection", "close");
	
	/*
	self.xmlHttpReq.onreadystatechange = function()
	{
		if (self.xmlHttpReq.readyState == 4)
		{
			alert(":: Temp message for testing : sku = " + sku + " added to cart ::")
			updatepage(self.xmlHttpReq.responseText, div_name);
		}
	}
	*/
	self.xmlHttpReq.send(null);
}
