function sheetnames() {
var out = new Array()
var sheets = SpreadsheetApp.getActive().getSheets();
for (var i=0 ; i<sheets.length ; i++) {
out.push( [ sheets[i].getName()])
out.push( [ sheets[i].getProtections(SpreadsheetApp.ProtectionType.SHEET)[0].getProtectionType() ]);
}
return out
}