var HighLightColor = "#CC0000";
var RestoreColor = "#FFFFFF";
var newwin;

function PopUp(Url, Width, Height)
{
    window.showModalDialog(Url, "Dialog Arguments Value","dialogHeight: " + Height + "px; dialogWidth: " + Width + "px; dialogTop: px; dialogLeft: px; center: Yes; help: No; resizable: No; status: No;");
}

function ShowBasketMessage(message) 
{
	var x,y
	var oPopup = window.createPopup();
	var oPopupBody = oPopup.document.body;
	
	oPopupBody.style.backgroundColor = "#ffffcc";
	oPopupBody.style.borderColor = "#ff0000";
	oPopupBody.style.border = "solid red 2px";
	oPopupBody.style.marginLeft = "5px";
	oPopupBody.style.marginTop = "5px";
	oPopupBody.style.fontFamily = "verdana";
	oPopupBody.style.fontSize = "13";
	oPopupBody.innerHTML = message;
	x = (document.body.clientWidth/2)-200;
	y = (document.body.clientHeight/2)-100;
	oPopup.show(x, y, 400, 140, document.body);
}


function UpdateSmallBasket(objWindow) 
{
    var root;
    var xmlHttp;
    var xmlResp;
    var qty;
    var parseErr;
                    		
    // send XML document to Web server
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlHttp.open("POST","XML_SmallBasket.asp",false);
    xmlHttp.send();

	xmlResp = new ActiveXObject("Microsoft.XMLDOM");
	xmlResp.async = false;
	xmlResp.loadXML(xmlHttp.responseText);
		
	root = xmlResp.documentElement.nodeName;
	if (root=='SmallBaskets')
	{
	    //eval(objWindow).SmallBasket_Qty.innerText = xmlResp.documentElement.selectSingleNode("//Quantity").text;
	    //eval(objWindow).SmallBasket_Price.innerText = xmlResp.documentElement.selectSingleNode("//Total_Price").text;	  
	    eval(objWindow).update_small_basket(xmlResp.documentElement.selectSingleNode("//Quantity").text,
			xmlResp.documentElement.selectSingleNode("//Total_Price").text);
	}
	else
		alert('error');
		
	xmlHttp = null;
	xmlResp = null;	
	
}


function AddToBasketConf(Url)
{
  window.showModalDialog(Url, "Dialog Arguments Value","dialogHeight: 160px; dialogWidth: 360px; dialogTop: px; dialogLeft: px; center: Yes; help: No; edge : Raised; resizable: No; scroll: No; status: No; unadorned: Yes");

}

