nbf(app.activeDocument.paragraphStyles,1);
for (k = 0; k < app.activeDocument.paragraphStyleGroups.length; k++){
nbf(app.activeDocument.paragraphStyleGroups[k].paragraphStyles,0);
}
function nbf(ps,j){
for (i = j; i < ps.length; i++){
ps[i].noBreak = false;
}
}
app.activeDocument.stories.everyItem().noBreak = false;