function selectAll(selectBox,selectAll)
{
	// have we been passed an ID
	if (typeof selectBox == "string") selectBox = document.getElementById(selectBox);
	
	// is the select box a multiple select box?
	if (selectBox.type == "select-multiple")
	{
		for (var i = 0; i < selectBox.options.length; i++)
		{
			if (!document.getElementById('select_all').checked) selectBox.options[i].selected = false;
			else
			{
				if (!selectBox.options[i].disabled) selectBox.options[i].selected = true;
			}
		}
	}
}

function emptyGAIForm()
{
	gaiStart = document.getElementById('gai_start');
	gaiStart.value='';
	
	gaiEnd = document.getElementById('gai_end');
	gaiEnd.value='';
	
	gaiMin = document.getElementById('gai_min');
	gaiMin.value='';
	
	gaiMax = document.getElementById('gai_max');
	gaiMax.value='';
}