function create_checkbox(type, index, json) { if(json.length > 0) { $('#checkbox_container').append('
' + language.get('CHECK', index) + '
'); } else { $('#' + type + 'body').remove(); } }