// The example below is for using Ajax and a webservice 
// 
// This function calls the Web service method and 
// passes the event callback function.  
function GetCid()
{
Samples.AspNet.WebService.GetCurrentCid(
SucceededCallback);
    
}

// 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("ctl01_ResultId");
RsltElem.innerHTML = result;
}

function ak_zmien() {
                 if (document.getElementById('ak').checked == false) {
                     document.getElementById('zaawans').style.visibility = "hidden";
                     document.getElementById('zaawans').style.display = "none";
                 } else {
                     document.getElementById('zaawans').style.visibility = "visible";
                     document.getElementById('zaawans').style.display = "block";
                 }
}
 window.onload = ak_zmien;



if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
