// Alerter

var backColor = new Array();
var dwellTime = 500; 

backColor[0] = '#ffffff';
backColor[1] = '#ff99ff';

function flashbg(whichColor)
{
	document.getElementById('alerter').style.backgroundColor = backColor[whichColor];
	if(!whichColor) setTimeout('flashbg(1)',(500));
	else setTimeout('flashbg(0)',(500));
}

var t = null;
var d = dwellTime;

t = setTimeout('flashbg(0)',(500));
t =  null;

// Toggler

function toggle()
{
	if(document.getElementById('smalltog').innerHTML == '+')
	{
		document.getElementById('toggle').style.display = 'inline';
		document.getElementById('smalltog').style.padding = '0 5px 0 5px';
		document.getElementById('smalltog').innerHTML = '-';
	}
	else
	{
		document.getElementById('toggle').style.display = 'none';
		document.getElementById('smalltog').style.padding = '0 3px 0 3px';
		document.getElementById('smalltog').innerHTML = '+';
	}
}

// On click in text box, delete contents
function doClear(theText)
{
	if (theText.value == theText.defaultValue)
	{
		theText.value = ""
	}
}