//   CONSTANT DECLARATIONS
//-------------------------------------------------
var netscape = (document.layers) ? 1 : 0;
var iexplorer = (document.all) ? 1 : 0;
var appCodeName = navigator.appCodeName.toLowerCase();
var appName = navigator.appName.toLowerCase();
var appVersion = navigator.appVersion;
var i = appVersion.indexOf('.');
var appMajorVersion = appVersion.substr(0, i);
var j = appVersion.indexOf(' ', i);
var appMinorVersion = appVersion.substr(i + 1, (j - i));
var ReqWin;

function openwindow(url,name,height,width,toolbar,location,status,menubar,scrollbars)
{
var features = '';
var top = 0;
var left = 0;
if ( netscape == 1 )
	{
	if ( height < screen.availHeight )
		{
		top = Math.round( ( screen.availHeight - height ) / 2 );
		}
	if ( width < screen.availWidth )
		{
		left = Math.round( ( screen.availWidth - width ) / 2 );
		}
	features = 'height=' + height + ',width=' + width + ',screenY=' + top;
	features += ',screenX=' + left + ',scrollbars=' + scrollbars;
	features += ',resizable=1,menubar=' + menubar;
	features += ',status=' + status + ',toolbar=' + toolbar;
	features += ',location=' + location;
	} 
else if ( iexplorer == 1 )
	{
	if ( height < screen.height )
		{
		top = Math.round( ( screen.height - height ) / 2 );
		}
	if ( width < screen.width )
		{
		left = Math.round( ( screen.width - width ) / 2 );
		}
	features = 'height=' + height + ',width=' + width + ',top=' + top;
	features += ',left=' + left + ',scrollbars=' + scrollbars;
	features += ',resizable=1,menubar=' + menubar;
	features += ',status=' + status + ',toolbar=' + toolbar;
	features += ',location=' + location;	
	}
return open(url,name,features);
}

function replaceBrackets(strText)
{
var strTemp = new String(strText);
strTemp = strTemp.replace(/</g,"&lt;");
strTemp = strTemp.replace(/>/g,"&gt;");
return strTemp;
}