<!--//--><![CDATA[//><!--
				  
function check(){

	var msg = '';

	
	if(document.formDaten.comment.value == ''){
		msg += '- Kommentar fehlt\n';
	}
	
	if(document.formDaten.nickName.value == ''){
		msg += '- Nickname fehlt\n';
	}
	
	if(	msg != '') {
		alert("Bitte Formular vervollständigen:\n\n"+msg);
		return false;
	}
	
	return true;
	
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height) {

  if(left == 1) left = (screen.width/2) - width/2;
  if(top == 1) top = (screen.height/2) - height/2;

  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  if(popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'')){
	  	popUpWin.focus();
  } else {
		alert('Diese Seite wird in einem PopUp Fenster angezeigt.\nDeaktivieren Sie bitte Ihren PopUp Blocker.');  
  }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

// Menü
/*
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);
*/
//--><!]]>

