/* support functions for input boxes where instead of a 
   label a descriptive default value is used */
function shortInputFocus(inputBox, blankText)
{
	if (inputBox.value == blankText)
	{
		inputBox.value = "";
		inputBox.className = "active"; 
	}
}
function shortInputBlur(inputBox, blankText)
{
	if (inputBox.value == "")
	{
		inputBox.value = blankText;
		inputBox.className = "";
	}
}


/* confirmation box before deleting an item */
function confirmDelete(itemTitle) {
	var text = "Are you sure you wish to delete the item";
	if (itemTitle) {
		text += ":\n"+itemTitle;
	} else {
		text += "?";
	}
	return confirm(text);
}
