//------------------------------------------------------------------------------------- //Apri una nuova finestra per la visualizzazione e la gestione dei dati della risorsa //------------------------------------------------------------------------------------- var newWindow = null; function closeWin(win){ if (!win) win = newWindow; var appearence=''; //used to return old appearence properties if (win != null) { if(!win.closed) { appearence += "width=" + GetInnerWidth(win) + ", height=" + GetInnerHeight(win) + ", top=" + GetTop(win) + ", left=" + GetLeft(win) win.close(); } } return appearence; } function open_manage_win(url){ var width=1000; var height=600; var px_from_top=(screen.height-height)/2; var px_from_left=(screen.width-width)/2; var properties = ''; var old_appearence = closeWin(); //Close if exists and get old window appearence if (old_appearence == '') { properties += "width=" + width + ", height=" + height + ", top=" + px_from_top + ", left=" + px_from_left; } else { properties += old_appearence } properties += ", toolbar=no, menubar=no, location=no, directories=no, status=no"; properties += ", scrollbars=yes, resizable=yes, copyhistory=no"; //FIXME: HEAVY KLUDGE! WRAP THE BODY WINDOW index = url.indexOf("avng/body"); if (index > 0) { base_url = url.substring(0, index+9); index = url.lastIndexOf("?"); query_string = url.substring(index); url = base_url + "/frame_wrapper" + query_string; } //Open the new window var newWindow = window.open(url, 'bodyframes', properties); newWindow.focus(); return newWindow; }