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; } } } var elems = f.elements; var params = {}; // Put form elements into "params" for (var i=0; i < elems.length; i++) { params[elems[i].name] = elems[i].value; } closePopup(prefix + 'Popup'); askAjaxChunk(hookId, 'POST', objectUrl, fieldName+':pxViewMonth', params); }