function js() { $FILEID = $_GET["FILEID"]; $ocs = new ocs(); $title = $ocs->PACKAGE_NAME_FROM_FILEID($FILEID) . " {affected}"; $page = CurrentPageName(); $tpl = new templates(); $prefix = str_replace(".", "_", $page); $title = $tpl->_ENGINE_parse_body("{$title}"); $html = "\n\t\n\tfunction {$prefix}LoadMain(){\n\t\tYahooWin6('550','{$page}?popup=yes&FILEID={$FILEID}','{$title}');\n\t\t\n\t}\n\n\n\t{$prefix}LoadMain();"; echo $html; }