/* Open Picture Window WordPress Plugin*/ function ald_OpenPictureWindow(theURL, winName, features, myWidth, myHeight, isCenter, myTitle) { var ald_opw = null; var settings; myWidth = parseInt(myWidth) + 20; myHeight = parseInt(myHeight) + 100; settings = 'width='+myWidth+',height='+myHeight; if(!myTitle) myTitle = "Brought to you by Open Picture Window Plugin"; if(isCenter) // Position in center of window { var myLeft = (screen.width) ? (screen.width-myWidth)/2 : 0; var myTop = (screen.height) ? (screen.height-myHeight)/2 : 0; settings +=',left='+myLeft+',top='+myTop; } if(features!='') settings +=','+features; // add features passed as argument ald_opw = window.open('',winName,settings); with (ald_opw.document) { open('text/html', 'replace'); write('\n'); write('\n'); write(''); write(myTitle); write('\n'); write('\n'); write('\n'); write('\n'); write('\n'); write('\n'); write('\n'); write(''); write(''+ myTitle +''); write('\n'); write('\n'); close(); } }