Código PHP:
<script>
function IDsichecked(donde){
var quienes = [], i
for(i=0;i<donde.length;i++){
var obj = document.getElementById(donde[i])
if(obj.checked) quienes.push(obj.id)
}
return quienes
}
</script>
Plan: <input type='checkbox' id='pme' checked="1">
Servicios: <input type='checkbox' id='spq'>
Servicios administrativos: <input type='checkbox' id='spnq'>
<button onclick="alert(IDsichecked( ['pme','spq','spnq'] ))">Mostar IDS</button>