

function ATC_Succeeded(result, obj2, obj3)
{
	var atcID = obj2 + "_atc";
	
    if (result[0] == "true")
    {   
        eval(result[1]);
        
        if (result[2] == "true")
        {
			var addToCart = $get(atcID);
			
			if (addToCart != null)
			{
				var infoPopup = $find('cip_tag');
				
				if (infoPopup != null)
				{
					infoPopup.setText(result[3]);
					infoPopup.set_targetControlID(atcID);
					infoPopup.show();
				}
			}        
        }
    }
}

function ATC_Failed(obj1, obj2, obj3)
{
	alert('Failed: ' + obj1);
}




