rem: owURL=theURL; owName=winName; owFeatures=features; verifieAndOpen(); 
add: if (img.complete) { var width=img.width +40; var height=img.height +40; } else { var width=640; var height=480; img.onload = resizeWindowToFit; } newWin = window.open(theURL,winName,features+',left=2,top=1,width=' + width + ',height=' + height); 
context: function phpWGOpenWindow(theURL,winName,features){  img = new Image()  img.src = theURL;  owURL=theURL;  owName=winName;  owFeatures=features;  verifieAndOpen();}
meta: 1164	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1164/57ee203e29d521931a152b413ad3acc0db555197/scripts.js/buggy/template-common/scripts.js