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); top = 'top=' + y + ', '; left = 'left=' + x + ', '; } catch(except){ top=''; left=''; } 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.venetian-atmosphere.com/dynalay.asp?PAGINA=" + page.toString(), "_blank", width, height) } function openimage(image, width, height){ OpenImage(image, width, height); } function OpenImage(image, width, height){ if (width=='') properties = '' else properties = 'width=' + width + ', height=' + height + ', resizable=yes, scrollbars=yes, status=yes, menubar=no, toolbars=no' var w = window.open('http://www.venetian-atmosphere.com/upload//images/' + image, '_blank', properties); if (!w.opener) w.opener = this; return void(0); } function opensmartimage(image){ OpenSmartImage(image); } var ImageWindowCount = 0; var ImageWindow; function OpenSmartImage(image){ if (ImageWindowCount){ ImageWindow.close(); ImageWindow = null; ImageWindowCount = 0; } ImageWindow = window.open('', 'ImageWindow', 'width=300,height=250,resizable=yes,scrollbars=no'); ImageWindowCount++; ImageWindow.document.open(); ImageWindow.document.write('\n'); ImageWindow.document.write('\t
\n'); ImageWindow.document.write('\t\n'); ImageWindow.document.write('\t\t