function getClosedInclude(destination) {
    return publicService.getExternalInclude(getExternalIncludeResponse, { destination: destination, isClosed: true, maximum: 10 });
}

function getPendingInclude(destination) {
    return publicService.getExternalInclude(getExternalIncludeResponse2, { destination: destination, isClosed: false, maximum: 10 });
}

// general

function getFeloniesInclude(destination, maximumNumber, start) {
//	alert( 'In getFeloniesInclude: '  + destination );
	   return publicService.getExternalInclude(getExternalIncludeResponse, { destination: destination, chargeType: 'felony', maximum: maximumNumber, start: start });
}

function getMisdemeanorsInclude(destination, city, start) {
//	alert( 'In getMisdemeanorsInclude: '  + destination + '--' + city );
    return publicService.getExternalInclude(getExternalIncludeResponse, { destination: destination, chargeType: 'misdemeanor', city: city, start: start });
}

function getExternalIncludeResponse(data)
{
    DWRUtil.useLoadingMessage('Loading');
    document.getElementById('externalInclude').innerHTML = data;
}

function getExternalIncludeResponse2(data)
{
    DWRUtil.useLoadingMessage('Loading');
    document.getElementById('externalInclude2').innerHTML = data;
}

// from DWR sample
function callOnLoad(init)
{
    if (window.addEventListener)
    {
        window.addEventListener("load", init, false);
    }
    else if (window.attachEvent)
    {
        window.attachEvent("onload", init);
    }
    else
    {
        window.onload = init;
    }
}
