\n'); } var win = ""; var nwindow = new Object(); var count = new Number(0); function openWin (fileName) { var wWidth = screen.availWidth - 10; var height = screen.availHeight - 30; if (wWidth > 1280) { wWidth = 1280; } if (height > 950) { height = 950; } var posX = 0; var posY = 0; //alert("openWin:" + fileName); var specs = "toolbar=0,menubar=0,resizable=1,titlebar=0,status=0,scrollbars=0,location=0,left=" + posX + ",top=" + posY + ",width=" + wWidth + ", height=" + height + ",innerWidth=" + wWidth + ",innerHeight=" + height; //alert(specs); if( (nwindow.closed) || (count < 1) ) { //alert("popup closed or not been opened"); nwindow=window.open(fileName,"mediaPlayer", specs); setTimeout('nwindow.focus();',250); count = 1; } else { if(count > 0) { //alert("popup.focus()"); nwindow.focus(); //nwindow.alertCall ("popup focussed..."); } else { //alert("count < 1 - open popup"); nwindow=window.open(fileName,"mediaPlayer", specs); count = 1; } } } //-->
