function getElement(objID)
{
	var obj;
	
	if(document.getElementById)
	{
		obj = document.getElementById(objID);
	}
	else if(document.all)
	{
		obj = document.all[objID];
	}
		
	return obj;
}

function showHideElement(obj, block)
{
	if (block == 1)
	{
		if (obj.style.display == 'none')
			showElement(obj, block);
		else
			hideElement(obj, block);
	}
	else
	{
		if (obj.style.visibility == 'hidden')
			showElement(obj, block);
		else
			hideElement(obj, block);
	}
}

function showElement(obj, block)
{
	if (block == 1)
	{
		obj.style.display = 'block';
	}
	else
	{
		obj.style.visibility = 'visible';
	}
}

function hideElement(obj, block)
{
	if (block == 1)
	{
		obj.style.display = 'none';
	}
	else
	{
		obj.style.visibility = 'hidden';
	}
}

function changeInnerHTML(obj, text)
{
	obj.innerHTML = text;
}

function getObjTop(obj)
{
	alert(obj.style.width);
}