var xmlHttp3

function addprocart(str3){
	if (str3){
		str3 = "proid/" + str3;
	}else{
		str3 = "proid/";
	}

xmlHttp3=GetXmlHttpObject();
if (xmlHttp3==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url3="/products/addproduct/";
url3=url3+str3;
url3=url3+"/sid/"+Math.random();

xmlHttp3.onreadystatechange=stateChanged3;
xmlHttp3.open("GET",url3,true);
xmlHttp3.send(null);
}


function stateChanged3() { 
if ((xmlHttp3.readyState==1)||(xmlHttp3.readyState==2)||(xmlHttp3.readyState==3)){ 
document.getElementById("shoppingcart").innerHTML="<div style='width:100px;padding:20px;float:middle;'><img src='/images/ajax-loader_sml.gif'/></div>";
}

if (xmlHttp3.readyState==4){ 
document.getElementById("shoppingcart").innerHTML=xmlHttp3.responseText;
	}
}

function GetXmlHttpObject()
{
var xmlHttp3=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp3=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp3=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp3=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp3;
}