function setClassName(thisId, newClassName) {
  document.getElementById(thisId).className = newClassName;
}

function setTeaserDecoration(obj,propValue,itemNr) {
  var itemNr = ((itemNr)? itemNr:0);
  obj.getElementsByTagName("span").item(itemNr).style.textDecoration = propValue;
  //alert(obj.getElementsByTagName("span").item(itemNr).style.textDecoration);
}
var popupManager = {};
    popupManager.anonymus = [];

function centerPopup(popupName,popupUrl,popupWidth,popupHeight,myWidth,myHeight,myScrollbar) {
	if(!myWidth)     {myWidth = 10;}
	if(!myHeight)    {myHeight = 50;}
	if(!myScrollbar) {myScrollbar = 0;}

	var popupLeft = (window.screen.width/2)  - (popupWidth/2 + myWidth);
	var popupTop  = (window.screen.height/2) - (popupHeight/2 + myHeight);

  popupManager[popupName] = window.open(popupUrl,popupName,("toolbar=no,location=no,status=no,menubar=no,scrollbars=" + myScrollbar + ",resizable=no,width=" + popupWidth + ",height=" + popupHeight + ",left=" + popupLeft + ",top=" + popupTop + ",screenX=" + popupLeft + ",screenY=" + popupTop));
  popupManager[popupName].focus();
  return false;
}
