// Version 1.0.3.1 Copyright 2006-2009 by TogetherSoft, Inc. All rights reserved.
function TSI_WinPopup(_strHref, _intWidth, _intHeight, _strAttributes, _strWinName){ var intScreenHeight; var intScreenWidth; var strFeatures = new String(''); var Xleft; var Ytop; var hWin; if(isNaN(_intHeight) || _intHeight == 0){ _intHeight = 450; } else{ if(_intHeight < 200){ _intHeight = 200; } } if(isNaN(_intWidth) || _intWidth == 0) { _intWidth = 425; } else{ if(_intWidth < 200){ _intWidth = 200; } } if(_strAttributes.replace(' ', '') == '') { _strAttributes = 'menubar=no,toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes'; } if(_strWinName.replace(' ', '') == '') { _strWinName = 'TSIPopUp'; } intScreenHeight = window.screen.availHeight - 90; intScreenWidth = window.screen.availWidth - 10; Xleft = (intScreenWidth - _intWidth) / 2; Ytop = (intScreenHeight - _intHeight) / 2; strFeatures = 'height=' + _intHeight + ',width=' + _intWidth + ',screeny=' + Ytop + ',screenx=' + Xleft + ',top=' + Ytop + ',left=' + Xleft + ','; strFeatures += _strAttributes; hWin = window.open(_strHref, _strWinName, strFeatures); return hWin; }
