	w_openwindow = null;
	function open_window(nurl,windowname,width,height, leftPos, topPos)
	{
		if (typeof leftPos == 'undefined') leftPos = (self.screen.width-width-25)/2;
		if (typeof topPos == 'undefined') topPos = (self.screen.height-height-25)/2;	

	 	w_openwindow = window.open(nurl,windowname,'width='+width+',height='+height+',left='+leftPos+',top='+topPos+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	}
	
	function focus_check()
	{	   
		// Proceed if window handler is not null
	 	if (w_openwindow != null) 
		{								
		 	if (!w_openwindow.closed) 
				w_openwindow.focus();	// if it's not closed, reset focus
			else
				w_openwindow = null; 	// if closed then set handler to null
		}
		
	}
		
	function confirmation(message)
	{
		if (confirm(message))
			return true;
		else
			return false;
	}

	function get_browser() {
		if(navigator.appName.indexOf( "Netscape" ) != -1) {
			// is netscape
			if(navigator.userAgent.indexOf( "Netscape/7" ) != -1) 
				return "NS7";
			else if(navigator.userAgent.indexOf("Netscape6") != -1)
				return "NS6";
			else if(navigator.userAgent.indexOf("Mozilla/5.0") != -1 && navigator.userAgent.indexOf("Gecko/") != -1)
				return "Moz";
			else if(navigator.userAgent.indexOf("Safari/") != -1)
				return "NS6";
			else
				return "NS";
		} else {
			// is IE
			return "IE";
		}
	}
	var browser = get_browser();
