function ajaxFunction(item)
{
	var xmlHttp;
	try
    {
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
    }
	catch (e)
    {
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}	
	}
    
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			eval("document.getElementById('divAdded_"+item+"').innerHTML = \"<span style='color:#65c160'>Successfully Added</span>\";");
		}

	}

	eval("document.getElementById('divAdded_"+item+"').innerHTML = 'Adding to Trolley...';");
	eval("url = 'trolley_add.php?item='+item+'&quantity='+document.getElementById(\"lstQuantity_"+item+"\").value;");
	//alert(url);
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
}






function ajaxFunction2(group)
{
	var xmlHttp;
	try
    {
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
    }
	catch (e)
    {
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}	
	}
    
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			eval("document.getElementById('divAdded_"+group+"').innerHTML = \"<span style='color:#65c160'>Successfully Added</span>\";");
		}

	}

	eval("document.getElementById('divAdded_"+group+"').innerHTML = 'Adding to Trolley...';");
	eval("url = 'trolley_add.php?item='+document.getElementById(\"lstSize_"+group+"\").value+'&quantity='+document.getElementById(\"lstQuantity_"+group+"\").value;");
	//alert(url);
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
}