function getElement(obj)
{
	return document.getElementById(obj);
}

function markElement(obj)
{
	var o = getElement(obj);
	if (o != null)
		o.style.color = '#FF0000';
}

function unMarkElement(obj)
{
	var o = getElement(obj);
	if (o!=null)
		o.style.color = '#000000';
}

function rollOver(obj, src)
{
	document.getElementById(obj).src = src;
}

function showHideElement(obj)
{
	document.getElementById(obj).style.display = (document.getElementById(obj).style.display == 'none' ? 'block' : 'none');
}

function getXmlHttpRequestObject()
{
	var xmlHttp;
	if (window.ActiveXObject)
	{
		try
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) 
		{
			xmlHttp = false;
		}
	}
	else
	{
		try 
		{
			xmlHttp = new XMLHttpRequest();
		}
		catch (e) 
		{
			xmlHttp = false;
		}
	}
	if (!xmlHttp)
		alert("Wysiąpił błąd podczas tworzenia obiektu XMLHttpRequest.");

	return xmlHttp;
}

function deleteConfirm(param)
{
	if (param)
		return confirm('Czy na pewno chcesz usunąć '+param+'?');
	else
		return confirm('Czy na pewno chcesz usunąć?');
}

