function addToCart(action,id_image,image_type)
{
var size=document.size.size.value;
xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="cart.php"
url=url+"?action="+action
url=url+"&id_image="+id_image
url=url+"&size="+size
url=url+"&image_type="+image_type
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 document.getElementById("cart").innerHTML=xmlHttp.responseText
 }
}