// Browser Check
function browserCheck() {
  var agt = navigator.userAgent.toLowerCase();
  this.ie4 = (document.all) ? true : false;
  this.ns4 = (document.layers) ? true : false;
  this.dom2 = (document.getElementById) ? true : false;
  this.ie5 = (this.ie4 && this.dom2) ? true : false;
  this.ns6 = (!this.ie4 && this.dom2) ? true : false;
  this.win = (agt.indexOf("win") != -1) ? true : false;
  this.mac = (agt.indexOf("mac") != -1) ? true : false;
}


// Popup Fenster
window.onerror=null
function popup(name,file,x,y,scroll) {
  var popup =  window.open(file,name,"width="+x+",height="+y+",screenX=200,screenY=200,scrollbars="+scroll+"");
  if(popup != null) popup.focus() //brings window to top
}
this.window.focus();


// Farbwechsel
function sensitiveCell( element, mouse_in, bg) {
  if( mouse_in) {
    element.style.backgroundImage = "url(image/" + bg + ")";
  } else {
    element.style.backgroundImage = "url(image/" + bg + ")";
  }
}

function clickMenue( link ) {
  this.location.href = link;
}

function printPage() {
  if (window.print) {
    window.print();
  } else {
    alert("Sorry, aber Ihr Browser unterst&uuml;zt nicht das direkte Drucken von HTML-Seiten!");
  }
}

function chglng() 
{
	//wechsel von .com zu .de
	var a = this.location.href;
	var b = a.replace(/com/g, "de");
	location.href = b;	
}

function chgen() 
{
	//wechsel von .de zu .com
	var a = this.location.href;
	var b = a.replace(/de\//g, "com/");
	location.href = b;	
}
