function openWin( hrOReng ) {
	var agt = navigator.userAgent.toLowerCase();
	var mac = ( agt.indexOf( "mac" ) != -1 ) ? true : false;
	var v = navigator.appVersion;
	var v60 = ( v.indexOf( "6.0" ) != -1) ? true : false;
	var ffox = ( agt.indexOf( "firefox" ) != -1 ) ? true : false;
	
	var ns6 = document.getElementById && !document.all
	if ( document.layers || ns6 ) {
		H = window.innerHeight + 100;
		W = window.innerWidth;
	}
	if( mac ) {
		H = screen.availHeight;
		W = screen.availWidth;			
	}
	if ( !mac && document.all ) {
		H = window.screen.height - 55;
		W = window.screen.width - 10;
	}
	s = ",width=" + W + ",height=" + H;

	if ( !mac && v60 ) {
		var win = window.open( hrOReng,'main','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,top=0,left=0' + s );
	} else {
		if( ffox ) { 
			openFirefoxWindow( hrOReng );
		} else {
			var win = window.open( hrOReng,'main','resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,top=0,left=0' + s );
		}
	}
		
	if ( window.focus ) win.focus(); 
}