/* Decoded by unphp.net */ ?>'; else: if(!isset($multipleForms) || !is_array($multipleForms) || empty($multipleForms) || !$multipleForms): $multipleForms[] = $formName;/*backwards compatible now*/ endif; unset($formName); $findForm = 'document.getElementsByTagName("form").item(0); '; foreach($multipleForms as $k=>$formName): //newHidden $newHidden .= ' var newHidden'.$k.' = document.createElement("input"); newHidden'.$k.'.setAttribute("type","hidden"); newHidden'.$k.'.setAttribute("value","'.$token.'"); newHidden'.$k.'.setAttribute("name","'.$tnP.'"); '; //jsOutput if(isset($formName) && $formName != '' && !is_numeric($formName)) { $findForm = 'document.forms["'.$formName.'"]; '; } elseif(isset($formName) && $formName != '' && is_numeric($formName)) { $findForm = 'document.getElementsByTagName("form").item('.$formName.'); '; } $jsOutput .= 'var formRef'.$k.' = '.$findForm.' if(formRef'.$k.') { formRef'.$k.'.appendChild(newHidden'.$k.'); } '; endforeach; ?> function init() { } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(init);