rem: var closeParam = createNamedElement("input", "popupClose"); closeParam.setAttribute("type", "hidden"); closeParam.setAttribute("value", "true");  win.document.forms['system_form_0'].appendChild(closeParam); win.araneaPage().event_6(win.document.system_form_0, null, null, null, null, null); 
add: var systemForm = null; for (var i = 0; i < win.document.forms.length; i++) { if (win.document.forms[i].getAttribute('arn-systemForm')) { systemForm = win.document.forms[i]; } } if (systemForm) { var closeParam = createNamedElement("input", "popupClose"); closeParam.setAttribute("type", "hidden"); closeParam.setAttribute("value", "true"); systemForm.appendChild(closeParam); win.araneaPage().event_6(systemForm, null, null, null, null, null); } 
context: function submitThreadCloseRequest(win) {  if (win && win.document) {    var closeParam = createNamedElement("input", "popupClose");    closeParam.setAttribute("type", "hidden");    closeParam.setAttribute("value", "true");    //TODO: find the systemform reliably    win.document.forms['system_form_0'].appendChild(closeParam);    win.araneaPage().event_6(win.document.system_form_0, null, null, null, null, null);  }}
meta: 7108	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7108/8a5c8ad8f61275a747534adc952b3ff4c62541c6/aranea-popups.js/buggy/etc/js/aranea/aranea-popups.js