clearInput = function (e)
{
	if (e.__cleared)
		return;

	e.value = '';
	e.__cleared = true;
}

openWindow = function (u, n, o)
{
	var w = null;

	while (!w)
	{
		w = window.open(u, n, o);

		if (!w && !confirm("You appear to be using software that is stopping the website from opening a popup.\n\nTry holding CTRL while clicking OK to try again, or click Cancel to give up."))
			break;
	}

	if (!w)
		alert("You'll need to bypass your popup blocker to access this part of the site.");

	return w;
}
