// www.schober.de
// startseite javascript lib
// 11 2008 erik wunderlich

var W3 = (document.documentElement) ? true : false;
var winID = 0;
var popUp = new Array();


function setClass(obj, newClassname) {
	if (W3) document.getElementById(obj).className = newClassname;
}

function openURL(obj) {
	document.location.href = obj;
}

function fensterAuf(inhalt, breite, hoehe, winname) {
  var xOff = 10;
  var yOff = 10;
  if (parseInt(navigator.appVersion)>=4) {
    xOff = (screen.width-breite)/2;
    yOff = (screen.height-(hoehe))/2;
    yOff -= 20;
  }
  
  popUp[winID] = window.open(inhalt, winname, 'toolbar=no,status=no,location=no,directories=no,resizable=no,scrollbars=yes,width='+breite+',height='+hoehe+',left='+xOff+',top='+yOff);
  winID++;
}

