function OpenWindow(url, width, height){ OpenSizedWindow(url, '_blank', width, height) } function OpenSizedWindow(url, target, width, height){ var properties if (width=='') properties = '' else properties = 'width=' + width + ', height=' + height + ', resizable=yes, scrollbars=yes, status=yes, menubar=no, toolbars=no' var w = window.open(url, target, properties); if (!w.opener) w.opener = this; return void(0); } function OpenAutoPositionedSizedWindow(url, target, width, height){ var properties var x, y; var top, left; try{ //calcola coordinata Y y = (event.screenY - event.offsetY) + 20; if ((y + height)>(screen.height-100)) y = (screen.height - height - 100); //calcola coordinata X x = (event.screenX - (width/2)); if (x < 20) x = 20; else if ((x + width)>(screen.width-20)) x = (screen.width - width - 20); } catch(except){ x = screenX + (outerWidth - innerWidth); y = screenY + (outerHeight - innerHeight); } top = 'top=' + y + ', '; left = 'left=' + x + ', '; if (width=='') properties = '' else properties = 'width=' + width + ', height=' + height + ', ' properties += top + left + 'resizable=yes, scrollbars=yes, status=yes, menubar=no, toolbars=no' var w = window.open(url, target, properties); if (!w.opener) w.opener = this; return void(0); } function OpenPage(page, width, height){ OpenAutoPositionedSizedWindow("http://www.panizzieugenio.com/upload/dynalay.asp?PAGINA=" + page.toString, "_blank", width, height) } function OpenImage(image, width, height){ var url = "http://www.panizzieugenio.com/upload//images/" + image if (width=='') properties = '' else properties = 'width=' + width + ', height=' + height + ', resizable=yes, scrollbars=yes, status=yes, menubar=no, toolbars=no' var w = window.open(url, '_blank', properties); if (!w.opener) w.opener = this; return void(0); } function OpenSmartImage(image){ var w = window.open("", "images", "width=300,height=250,resizable=yes,scrollbars=no"); w.document.write("\n"); w.document.write("\t\n"); w.document.write("\t\t\n"); w.document.write("\t\t\n"); w.document.write("\n"); w.document.write("\t\n"); w.document.write("\t\n"); w.document.write("\t\t\n"); w.document.write("\t\n"); w.document.write("\n"); w.document.close(); if (!w.opener) w.opener = this; return void(0); }