delObj = function(type, name, id){
	if(confirm(document.lc['rooms.admin.delete']+' \''+name+"\'?")){
		sendMainForm(type, 'del_obj', id, '');
	}
}

sendMainForm = function(type, action, id, value){
	document.getElementById('rb_action').value = action;
	document.getElementById('rb_id').value = id;
	document.getElementById('rb_type').value = type;
	document.getElementById('rb_value').value = value;
	document.getElementById('rb_main_form').submit();
}

