function GetObject(objID)
{
  if (document.getElementById)
    return document.getElementById(objID)
  else if (document.all)
    return document.all[objID];

  else if (document.layers)
  {
    this.obj = document.layers[objID];
    this.style = document.layers[objID];
  }
}



function safeSetClass(obj,classname)
{
	if (obj)
	{
		obj.setAttribute("class", classname);
		obj.setAttribute("className", classname);
	}
}

function safeGetClass(obj)
{
	if (obj)
	{
		var tmp=obj.getAttribute("class");
		if (!tmp) var tmp=obj.getAttribute("className");
		return tmp;
	} else return false;
}


function checkRegistration(alerttext)
{
	var obj=GetObject('suhlasim');
	if (obj)
	{
		if (!(obj.checked))
		{
			alert(alerttext);
			return false;
		}
		else
			return true;
	}
	return false;
}


