var screenWidth=screen.availWidth;
var screenHeight=screen.availHeight;

if (screenWidth<=1000) w=screenWidth-10;
else w=292;

var h=289;

var x=(screenWidth-w-10)/2;
var y=(screenHeight-h-120)/2;

if (x<0) x=0;
if (y<0) y=0;


function openWin(){
	if (document.layers) {
		myWin = window.open("","up","width="+w+",height="+h+",left=0,top=0,menubar=0,status=0,location=0,scrollbars=0,resizable=0,screenX="+x+",screenY="+y);
	} else {
		myWin = window.open("","up","width="+w+",height="+h+",left="+x+",top="+y+",menubar=0,status=0,location=0,scrollbars=0,resizable=0");
		//setTimeout('myWin.moveTo('+x+','+y+'+25)',500);
		
	}
	//myWin.focus();
}

function showhide(id, me) {
 	var el = document.getElementById(id);
 	var li = document.getElementById(me);
	if (el) {
  		if (el.className=="invisible") {
  			el.className="visible";
  			li.className="open";
  		} else { 
  			el.className="invisible";
  			li.className="close";
  		}
 	} 
}

function dblStyle(objName,tag) { 
  var obj1 = document.getElementById(objName);
  var obj2 = document.getElementById("t" + objName);
  var theProp = "";
  if (tag) 
  {
  	var class1 = "aktiv";
  } 
  else 
  {
  	var class1 = "";
  }
 
  if (obj1) {
  		obj1.className=class1;
  } 
  if (obj2){
  		obj2.className=class1;
  }

}
