// The example below is for using Ajax and a webservice 
// 
// This function calls the Web service method and 
// passes the event callback function.  
function addItem(Artid)
{

articleadd.AspNet.WebService.addItem(Artid,
SucceededCallback);
//document.getElementById('divpopup' + Artid).style.display='block'
//document.getElementById('modalBackground' + Artid).style.display='block'  
//document.getElementById('clearBackground' + Artid).style.display='block'
}

//function addItem2(Artid)
//{
//
//articleadd.AspNet.WebService.addItem(Artid,
//SucceededCallback);
//document.getElementById('divpopup2_' + Artid).style.display='block'
//document.getElementById('modalBackground2_' + Artid).style.display='block'  
//document.getElementById('clearBackground2_' + 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("price");
//RsltElem.innerHTML = result;
window.location = '/Basis.aspx?Lid=0&Lit=SHOP&Act=6909';

}


if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
