function popUp (url, width, height) {
  var pop = window.open(url, "popUp", "width=" + width + ",height=" + height + ",status=no,scrollbars=no,resizable=no,left=" + (screen.width/2-width/2) + ",top=" + (screen.height/2-height/2));
  pop.opener = self;
  pop.focus();
  }

function closeIt () {
  opener.focus();
  window.close();
}

function gesendet(type) {
  var file;
  if(type == 1)
    file = "danke1.html";
  else if(type == 2)
    file = "danke2.html";
  var pop = window.open(file, "popUp", "width=300,height=150,status=no,scrollbars=no,resizable=no,left=" + (screen.width/2-300/2) + ",top=" + (screen.height/2-150/2));
  pop.opener = self;
  pop.focus();
  }

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);