connid = 0; function flashchat_DoFSCommand() { } function setFocus() { window.focus(); var chatui = document.getElementById('flashchat'); if(chatui && chatui.focus) chatui.focus(); } function doLogout() { if(connid == 0) return; width = 220; height = 30; wleft = (screen.width - width) / 2; wtop = (screen.height - height) / 2 - 20; window.open("dologout.php?id=" + connid, "logout", "width=" + width + ",height=" + height + ",left=" + wleft + ",top=" + wtop + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no"); } function setConnid(newconnid) { connid = newconnid; } window.onload = setFocus; window.onunload = doLogout; //------------------------------ //---open share file window //------------------------------ var win_popup = null; function openWindow( url, name, params, w, h ) { var ah = window.screen.availHeight; var aw = window.screen.availWidth; var l = (aw - w) / 2; var t = (ah - h) / 2; params += params == "" ? "" : ","; params += "left="+l+",top="+t+",screenX="+l+",screenY="+t+",height="+h+",width="+w+",resizable=yes,status=yes,scrollbars=no"; //close previous opened popup if (win_popup && win_popup.open && !win_popup.closed) { win_popup.close(); } //--- win_popup = window.open( "", name, params ); win_popup.location.href = url; } //--- end open window function /* function fileDownload(fname) { if(window.frames['dataframe'].window && fname) { window.frames['dataframe'].window.location.href = fname; } else { HTTP/1.1 200 OK Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection: close Date: Tue, 06 Jan 2009 15:12:25 GMT Pragma: no-cache Content-Type: text/html Expires: Thu, 19 Nov 1981 08:52:00 GMT Server: Microsoft-IIS/6.0 X-Powered-By: PHP/5.2.6 Set-Cookie: PHPSESSID=jt3q1fs28u5sdmhdcd80vaai77; path=/ X-Powered-By: ASP.NET alert('File download error.'); } }*/