/*
 * vim:encoding=utf-8
 * vim:termencoding=iso-8859-2
 */

function getElement(id)
{
	if (document.all)
		return document.all[id];
	else if (document.getElementById)
		return document.getElementById(id);
	else
		return false;
}

/*
 * Sprawdzanie szerokości napisu w podanym divie. Najlepiej, gdyby był ukryty.
 */
function determine_string_width_and_height( s , div )
{
	div.innerHTML = s;

	var result = new Array();

	result[ "width" ] = div.clientWidth;
	result[ "height" ] = div.clientHeight;

	return result;
}

