function inEditBox(iBoxId)
{
	// pre-select the content of the edit box IF it starts and ends with square brackets
	var oItem = document.getElementById(iBoxId);
	var iLength = oItem.value.length;

	if((oItem.value[0] == "[") && (oItem.value[iLength - 1] == "]"))
	{
		oItem.focus();
		oItem.select();
	}
}

function outEditBox(iBoxId, sDefaultValue)
{
	// set the content of the edit box to the default if it has been left blank
	var oItem = document.getElementById(iBoxId);

	if(oItem.value == "")
	{
		oItem.value = sDefaultValue;
	}
}


