
	function BrowserCheck() {
		this.agt = navigator.userAgent.toLowerCase();
		this.major = parseInt( navigator.appVersion );
		this.minor = parseFloat( navigator.appVersion );
	
		this.ns =	( ( this.agt.indexOf( 'mozilla' ) != -1 ) &&// mozilla YES
					( this.agt.indexOf( 'spoofer' ) == -1 ) &&	// spoofers NO
					( this.agt.indexOf( 'compatible' ) == -1) &&// compatible (ie and so on) NO
					( this.agt.indexOf( 'opera' ) == -1 ) &&	// opera NO
					( this.agt.indexOf( 'webtv' ) == -1 ) );	// webtv NO

		this.ns2 =	( this.ns && ( this.major == 2 ) );			// netscape 2
		this.ns3 =	( this.ns && ( this.major == 3 ) );			// netscape 3
		this.ns4 =	( this.ns && ( this.major == 4 ) );			// netscape 4
		this.ns5 =	( this.ns && ( this.major == 5 ) );			// netscape 5

		this.ie =	( this.agt.indexOf( 'msie' ) != -1);		// explorer
		this.ie3 =	( this.ie && ( this.major < 4 ) );			// explorer 3
		this.ie4 =	( this.ie && ( this.major == 4 ) &&	( this.agt.indexOf( 'msie 4.0' ) != -1 ) );
		this.ie5 =	( this.ie && ( this.major == 4 ) &&	( this.agt.indexOf ('msie 5.0') != -1) );	// explorer 5
		this.ie55 =	( this.ie && ( this.major == 4 ) &&	( this.agt.indexOf( 'msie 5.5' ) != -1 ) );	// explorer 5.5
		this.ie6 =	( this.ie && ( this.major == 4 ) &&	( this.agt.indexOf( 'msie 6.0' ) != -1 ) );

		this.opera =	( this.agt.indexOf( 'opera' ) != -1 );	// opera
		this.webtv =	( this.agt.indexOf( 'webtv' ) != -1 );	// webtv
	}
	
	is = new BrowserCheck();

	function getWindowHeight() {
		_height = ( is.ns4) ? window.innerHeight + 4 : document.body.offsetHeight;		
		if ( is.ns5 ) {
			_width -= 4;
			_height -= 4;
		}
		if (_height < 0 ) {
		_height = window.innerHeight;
		}
		scr_height = screen.availHeight;
		return _height;
	}

	function switchImage(imgName, imgSrc) {
		if (document.images) {
 			if (imgSrc != "none") {
				document.images[imgName].src = imgSrc;
			}
		}
	}
	function setHeight( ) {
		document.getElementById( 'cnt').style.height  = getWindowHeight() - 210;
	}	
	function OpenWin(path) {
		windowT=open(path,"Eval","menubar=no,status=no,scrollbars=no,resizable=yes,top=230,left=300,width=460,height=550")
	}
	
	function OpeneBiz() {
		windowT=open("web/ebiz.html","eBiz","menubar=no,status=no,scrollbars=no,resizable=yes,width=576,height=800")
	}
	
	function Openref(a) {
		windowT=open(a,"NapsaliONas","menubar=no,status=no,scrollbars=yes,resizable=yes,width=550,height=560")
	}
	
	function OpenConnect() {
		windowT=open("web/connect.html","Connect","scrollbars=yes,menubar=no,status=no,width=596,height=800")
	}
	function rNews1() {
		windowT=open("web/smsconnector1.html","SMSConn","menubar=no,status=no,resizable=yes,width=350,height=450")
	}
	
	function rNews2() {
		windowT=open("web/smsconnector2.html","SMSConn","menubar=no,status=no,resizable=yes,width=350,height=450")
	}
	