
function confirmLink(theLink, confirmMsg)
{
	// Confirmation is not required in the configuration file
	// or browser is Opera (crappy js implementation)
	if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
		return true;
	}

	var is_confirmed = confirm(confirmMsg);
	if (is_confirmed) {
		theLink.href += '&confirmed=1';
	}

	return is_confirmed;
}

function newUserSelectionWindow( myFormID, myID )
{
	var myURL="outside_UserSelection.php?formid=" + myFormID + "&id=" + myID;
	myWindow=window.open(myURL,"UserSelection","width=400,height=400,resizable=no,menubar=no,scrollbars=yes");
	myWindow.focus();
}

function inlineHelpWindow( topic )
{
	var myURL="inline_Help.php?topic=" + topic;
	myWindow=window.open(myURL,"Help","width=400,height=400,resizable=no,menubar=no,scrollbars=yes");
	myWindow.focus();
}

function userSelected( formid, id, name )
{
	opener.document.forms[formid].elements[id].value=name;
	close();
}
