function openLw(htmlTarget, captionText, width, height) { if(Number(width)==Number.NaN || Number(width)<1) width = ''; if(Number(height)==Number.NaN || Number(height)<1) height = ''; //openLw(htmlTarget, captionText, width, height); setTimeout(function(){openLwHelper(htmlTarget, captionText, width, height)}, 100); //Still necessary? (Was necessary for IE6 to work correctly, but this delay might not be necessary anymore) } function openLwHelper(htmlTarget, captionText, width, height) { myLightWindow.activateWindow({ href: htmlTarget, title: captionText, width: width, height: height }); // caption: captionText, } function returnFromHtml() { $("crossDomainInterface").SetVariable("returnFromHtml", "1"); }