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 for validating and discarding calendar events function validateEvents(hookId) { // Collect checkboxes from hookId and identify checked and unchecked ones var validated = []; var discarded = []; var node = document.getElementById(hookId + '_cal'); var cbs = node.getElementsByTagName('input'); for (var i=0; i