// Base JavaScript code for NameRegistrars
function popup(pageurl, winwidth, winheight, allowresize) {
	if (winwidth == undefined) winwidth = 400;
	if (winheight == undefined) winheight = 300;
	var winx = (screen.width - winwidth) / 4;
	var winy = (screen.height - winheight) / 4;
	if (typeof allowresize == 'undefined')
		allowresize = false;
	resize = ',resizable=' + (allowresize ? 'yes' : 'no');
	winprops = 'height=' + winheight + ',width=' + winwidth + ',top=' + winy + ',left=' + winx + ',scrollbars=yes' + resize;
	win = window.open(pageurl, "HelpWin", winprops);
	// Set our name for a reference back;
	if (!win.opener)
		win.opener = self;
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	return false; // Prevents older browsers from jumping to top of page w/ 'href="#"'
}
function pophelp(helpspec) {
	return popup('pophelp.php?' + helpspec, 520, 400);
}

