function getObj(name)
{
	return document.getElementById(name);
}

function count(arr)
{
		var cnt = 0;
		for(element in arr)
		{
			if (element!=null)
				cnt++;
		}
		return cnt;
}

function toggleObjDisplay(obj)
{
  if (obj)
  {
	if (obj.style.display=='none')
		obj.style.display = '';
	else
		obj.style.display = 'none';
	//alert(obj.id+" display = '"+obj.style.display+"'");
  }
}