//DropDown Navigation

function Nav(x)
{
 if(x == "nix")
 {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   top.focus();
   return;
 }
 else
  {
   top.location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   top.focus();
  }
}



//erzwungener Reload fuer Netscape
NS4 = document.layers;
if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;    }
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight) 
location.reload();  }
if (NS4) onresize = reDo;




//top
function goTop()
{
	scroll (0,0)
}



//Seite empfehlen
function openform(url) {
var url = url + "?url=" + document.location
	var NS = (document.layers) ? true : false;
	var IE = (document.all) ? true : false;

if(NS) {
	window.open(url,"","scrollbars=no,menubar=no,personalbar=no,width=500,height=330,screenX=220,screenY=0");
} else if(IE) {
	window.open(url,"","scrollbars=no,menubar=no,personalbar=no,width=500,height=300,left=220,top=0");
}

}

//Abfalladressen
function new_window(url,name) {
self.name = "Parent_Window"; 
var new_window = "toolbar=no,width=550,height=400,status=no,scrollbars=yes,resize=no,menubar=yes";
OpenWindow = window.open(url,name,new_window);
}

//Abfalladressen
function openWin(url,name) {
self.name = "Parent_Window"; 
var new_window = "toolbar=no,width=550,height=360,status=no,scrollbars=yes,resize=no,menubar=yes,left=100,top=100";
OpenWindow = window.open(url,name,new_window);
}


//Quiz
function quiz(url,name) {
self.name = "Parent_Window"; 
var quiz = "toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no,width=590,height=650";
OpenWindow = window.open(url,name,quiz);
}

//FORM NAME Akzeptanz
function checkFelder() {
missinginfo = "";



if (document.form.ok.checked == "")  {
missinginfo += "\n     muessen Sie die Regeln lesen und aktzeptieren. Dies bestaetigen Sie durch das Klicken der Checkbox.";
}


if (missinginfo != "") {
missinginfo ="Um bei der Verschenk-Boerse ein Inserat aufzugeben\n" +
missinginfo;
alert(missinginfo);
return false;
}
else return true;
}

//Anfang tooltipp für organigramm
wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 20) + "px";
		wmtt.style.top 	= (y - 20) + "px";
	}
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block"
}

function hideWMTT() {
	wmtt.style.display = "none";
}

//Ende tooltipp für organigramm

// Damit im Tooltip keine E-Mailadressen im Klartext stehen:
//Mailto-Link
function printadr(coordvals, mailadr, maildom, mailtld, mashort){
document.write('<area shape="rect" alt="" coords="'+coordvals+'" href="mailto:'+mailadr+'@'+maildom +'.'+ mailtld+'" onmouseover="showWMTT('+mashort+')" onmouseout="hideWMTT()">')}


//Anzeige im Tooltip
function showadr(mailadr, maildom, mailtld){
document.write('E-Mail: '+mailadr+'@'+maildom +'.'+ mailtld)}


//InfoMailLink mailto
function infoadr(mailadr, maildom, mailtld){
document.write('<a href="mailto:'+mailadr+'@'+maildom +'.'+ mailtld+'">')}