function doShowHide(strID)
{
	var obj = document.getElementById(strID);
	if (!obj)
	{
		return false;
	};

	if (obj.style.display == 'none')
	{
		obj.style.display = 'block';
	}
	else
	{
		obj.style.display = 'none';
	}
}

function doSetCell(c)
{
	objForm = document.getElementById('movement');
	objForm.cellval.value = c;
}

function doDrawPass(c, arrCellPass)
{
	objSel = document.getElementById("cellaction");
	if (!objSel)
	{
	    return;
	}
	
	for (i=objSel.options.length; i>0; i--)
	{
		objSel.options[i-1] = null;
	}
	for (i=0; i<arrCellPass[c].length; i++)
	{
		objSel.options.length = objSel.options.length+1;
		objSel.options[objSel.options.length-1].value = arrCellPass[c][i];
		objSel.options[objSel.options.length-1].text  = arrCellPass[c][i];
	};
}