+ function ActualizarResponsables()
+ {
+ replaceChildNodes('form_responsableA', '');
+ replaceChildNodes('form_responsableB', '');
+ appendChildNodes('form_responsableA', map(makeOption, $('form_grupos_from').options));
+ appendChildNodes('form_responsableB', map(makeOption, $('form_grupos_to').options));
+
+ if (getElement('form_grupos_from').options.length == 0) {
+ getElement('form_tutoresA').disabled = true;
+ getElement('form_responsableA').disabled = true;
+ } else {
+ getElement('form_tutoresA').disabled = false;
+ getElement('form_responsableA').disabled = false;
+ }
+ if (getElement('form_grupos_to').options.length == 0) {
+ getElement('form_tutoresB').disabled = true;
+ getElement('form_responsableB').disabled = true;
+ } else {
+ getElement('form_tutoresB').disabled = false;
+ getElement('form_responsableB').disabled = false;
+ }
+ }