function popup (type, id) {
	window.open('gr_popup.asp?type='+type+'&id='+id, '_blank', 'left=100, top=5, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, height=400, width=600');
	return true;
}

// -- init function -- {{{
function init() {
	var inner_h = 0; // inner height of browser window (pre-resizing)
	var outer_h = 0; // outer height of browser window (pre-resizing)
	var avail_h = 0; // available space for resizing (max. inner height)
	var toolbar_h = 0; // height of the browser menus/toolbars
	var container_h = 0; // height of the container element
	var resize_h = 480; // height to resize to
	var resize_w = 680;	// width to resize to
	var screen_h = self.screen.availHeight; // available screen real estate
	var screen_w = self.screen.availWidth;

	// -- GET INNER/OUTER HEIGHT -- {{{
	// all except Explorer
	if (self.innerHeight && self.outerHeight) {
		inner_h = self.innerHeight;
		outer_h = self.outerHeight;
	}
	// Explorer 6 Strict Mode
	else if (document.documentElement && document.documentElement.clientHeight) {
		outer_h = screen_h;
		window.resizeTo(resize_w, screen_h); 
		inner_h = document.documentElement.clientHeight;	
	}
	// other Explorers
	else if (document.body) {
		outer_h = screen_h;
		window.resizeTo(resize_w, screen_h); 
		inner_h = document.body.clientHeight;
	}
	// wierd browsers -- don't run the rest of this method
	else {
		return;
	}
	// -- -- }}}

	container_h = document.getElementById("container").offsetHeight;	
	toolbar_h = outer_h - inner_h;	
	avail_h = screen_h - toolbar_h;

	// if there is not enough height to display entire container, use as much space
	// as is currently available (scroll)
	if (avail_h > container_h) { resize_h = container_h; }
	else { resize_h = avail_h; }

	// make sure the window is wide enough
	if (resize_w > screen_w) { resize_w = screen_w; }

	window.resizeTo(resize_w, resize_h + toolbar_h);

	// position window
	var center_x = screen_w / 2;
	var left_edge = screen_w / 2 - resize_w / 2;
	window.moveTo(100, 5);
}
// -- -- }}}
