function popup(url, title) {// Nell'apertura di un popup tramite AJAX vado a nascondere tutti i flash presenti nella pagina// in modo tale che non nascondano il popup che si apre.// Controllo tutti i flash che hanno come id del DIV che li contiene i suffissi specificati nel// seguente array/*var suffix = new Array("", "_1", "_2", "_3", "_4", "_5");var message = Liferay.Popup({modal: true,noCenter: true,width: 800,title: title,onClose:function() {for (i=0; i<suffix.length; i++) { var idFlash = "flash" + suffix[i];if(document.getElementById(idFlash) != null) {//document.getElementById('flash').style.display = 'block';document.getElementById(idFlash).style.visibility = 'visible';}}}});for (i=0; i<suffix.length; i++) { var idFlash = "flash" + suffix[i];if(document.getElementById(idFlash) != null) {//document.getElementById('flash').style.display = 'none';document.getElementById(idFlash).style.visibility = 'hidden';}}AjaxUtil.update(url, message);*/newWindow(url,title,'550','450','resizable=1,scrollbars=1,status=0,toolbar=0');}var win = null;function newWindow(mypage, myname, w, h, features) {var winl = (screen.width-w)/2;var wint = (screen.height-h)/2;if (winl < 0) winl = 0;if (wint < 0) wint = 0;var settings = 'height=' + h + ',';settings += 'width=' + w + ',';settings += 'top=' + wint + ',';settings += 'left=' + winl + ',';settings += features;win = window.open(mypage,myname,settings);win.window.focus();}
