/* Copyright Scientec Internet Applications + Media GmbH - www.scientec.de */

mDecode();

for (var i=0; i<document.getElementById("navigation").getElementsByTagName("a").length; i++){
	thisA=document.getElementById("navigation").getElementsByTagName("a")[i];
	thisHREF=thisA.href;
	thisLOCATION=document.location.href;
	thisHOST="http://"+document.location.host+"/";
	if(thisHREF==thisLOCATION || thisHREF==thisLOCATION+"index.html"){thisA.className+=" hier"};
}

function mDecode()
{
  var EM=document.getElementById("inhalt").getElementsByTagName("em");
  if(EM.length>0){
    var mt="m"+"ai"+"lto:";
    for(var i=0;i<EM.length;i++){
      thisEM=EM[i];
      if(thisEM.className=="em"){
        EMSTR=String(thisEM.innerHTML).replace(/~AT~/,"@");
        thisEM.innerHTML='<a href="'+mt+EMSTR+'">'+EMSTR+'</a>';
      }
    }
  }
}

function validate()
{
  var send = 1;
  if (send == 1){if (document.commentform.author.value == ""){alert("Bitte tragen Sie Ihren Namen ein."); send = 0; document.commentform.author.focus();}}
  if (send == 1){if (document.commentform.text.value == ""){alert("Bitte tragen Sie Ihren Kommentar ein."); send = 0; document.commentform.text.focus();}}
  if (send == 1)
  {
    document.commentform.dextra.value = "347";
    return true;
  }
  else
  {
    return false;
  }
}

