// The example below is for using Ajax and a webservice 
// 
// This function calls the Web service method and 
// passes the event callback function.  
function DeleteOne(Artid)
{

articleminus2.AspNet.WebService.DropItem(Artid,
SucceededCallback);
document.getElementById('divpopup' + Artid).style.display='block'
document.getElementById('modalBackground' + Artid).style.display='block'  
document.getElementById('clearBackground' + Artid).style.display='block'
}


function AddOne(Artid)
{

articleminus2.AspNet.WebService.IncreaseItem(Artid,
SucceededCallback);
document.getElementById('divpopup' + Artid).style.display='block'
document.getElementById('modalBackground' + Artid).style.display='block'  
document.getElementById('clearBackground' + Artid).style.display='block'
}


// This is the callback function invoked if the Web service
// succeeded.
// It accepts the result object as a parameter.
function SucceededCallback(result, eventArgs)
{
// Page element to display feedback.
var RsltElem = document.getElementById("shopcartlayout");
RsltElem.innerHTML = result;

}


if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
