// PopUpWin.js function newWindow(TatigusPicture,X,Y) { var AX=X+50; var AY=Y+50; if (screen) { var leftpos=screen.width; var toppos=screen.height; leftpos = (leftpos-AX)/2; leftpos =parseInt(leftpos,10) toppos = (toppos-AY)/2; toppos =parseInt(toppos,10) } else { leftpos = 30 toppos = 10 } TatiGusWindow=window.open("",'TatiGusWin', 'scrollbars=no,width=' +AX+',height='+AY+',left='+leftpos+',top='+toppos) TatiGusWindow.document.write ( "Imagen<\/TITLE><\/HEAD>" ); TatiGusWindow.document.write ( "<BODY background='MainImg/backstars.jpg' oncontextmenu='return false' ondragstart='return false' onselectstart='return false' onBlur='javascript:window.close()'>" ); TatiGusWindow.document.write ( "<center><img src='"+TatigusPicture+"'>" ); TatiGusWindow.document.write ("<br><br><input type=button name='cmdClose' value='Cerrar' onclick=\"javascript:window.close()\"><br>"); TatiGusWindow.document.write ( "<\/center><\/BODY><\/HTML>" ); TatiGusWindow.document.close() // close layout stream TatiGusWindow.focus() } function newWindowFree(TatigusPicture,X,Y) { var AX=X+50; var AY=Y+50; if (screen) { var leftpos=screen.width; var toppos=screen.height; leftpos = (leftpos-AX)/2; leftpos =parseInt(leftpos,10) toppos = (toppos-AY)/2; toppos =parseInt(toppos,10) } else { leftpos = 30 toppos = 10 } TatiGusWindow=window.open("",'TatiGusWin', 'scrollbars=no,width=' +AX+',height='+AY+',left='+leftpos+',top='+toppos) TatiGusWindow.document.write ( "<HTML><HEAD><TITLE>Imagen<\/TITLE><\/HEAD>" ); TatiGusWindow.document.write ( "<BODY background='MainImg/backstars.jpg' onBlur=\"javascript:window.close()\">" ); TatiGusWindow.document.write ( "<center><img src='"+TatigusPicture+"'>" ); TatiGusWindow.document.write ("<br><br><input type=button name='cmdClose' value='Cerrar' onclick=\"javascript:window.close()\"><br>"); TatiGusWindow.document.write ( "<\/center><\/BODY><\/HTML>" ); TatiGusWindow.document.close() // close layout stream TatiGusWindow.focus() } function newWindowWBars(TatigusPicture,X,Y) { var AX=X+20; var AY=Y+20; if (screen) { var leftpos=screen.width; var toppos=screen.height; leftpos = (leftpos-X)/2; leftpos =parseInt(leftpos,10) toppos = (toppos-Y)/2; toppos =parseInt(toppos,10) } else { leftpos = 30 toppos = 10 } TatiGusWindow=window.open("",'TatiGusWin', 'scrollbars=yes,width=' +AX+',height='+AY+',left='+leftpos+',top='+toppos) TatiGusWindow.document.write ( "<HTML><HEAD><TITLE>Imagen<\/TITLE><\/HEAD>" ); TatiGusWindow.document.write ( "<BODY background='MainImg/backstars.jpg' onBlur=\"javascript:window.close()\">" ); TatiGusWindow.document.write ( "<center><img src='"+TatigusPicture+"'>" ); TatiGusWindow.document.write ("<br><br><input type=button name='cmdClose' value='Cerrar' onclick=\"javascript:window.close()\"><br>"); TatiGusWindow.document.write ( "<\/center><\/BODY><\/HTML>" ); TatiGusWindow.document.close() // close layout stream TatiGusWindow.focus() }