function toggleVisibility(node, nodeType){ // Toggle visibility of all elements having p_nodeType within p_node var elements = node.getElementsByTagName(nodeType); for (var i=0; i maxEventLength)) { f.eventSpan.style.background = wrongTextInput; return; } } } } closePopup(popupId); askAjax(hookId, formId); } // Function that collects the status of all validation checkboxes function getValidationStatus(hookId) { var res = {'validated': [], 'discarded': []}; var node = document.getElementById(hookId + '_cal'); var cbs = node.getElementsByTagName('input'); var key = null; for (var i=0; i