// netramanage Ver. 2.0.51

// insertAdjacentHTML(), insertAdjacentText() and insertAdjacentElement()
// for Netscape 6/Mozilla by Thor Larholm me@jscript.dk
// Usage: include this code segment at the beginning of your document
// before any other Javascript contents.

//if(typeof HTMLElement!="undefined" && !HTMLElement.prototype.insertAdjacentElement){
if(typeof HTMLElement!="undefined" && !HTMLElement.prototype.insertAdjacentElement){
	HTMLElement.prototype.insertAdjacentElement = function(where,parsedNode)
	{
		switch (where){
		case 'beforeBegin':
			this.parentNode.insertBefore(parsedNode,this)
			break;
		case 'afterBegin':
			this.insertBefore(parsedNode,this.firstChild);
			break;
		case 'beforeEnd':
			this.appendChild(parsedNode);
			break;
		case 'afterEnd':
			if (this.nextSibling) 
				this.parentNode.insertBefore(parsedNode,this.nextSibling);
			else this.parentNode.appendChild(parsedNode);
			break;
		}
	}

	HTMLElement.prototype.insertAdjacentHTML = function(where,htmlStr)
	{
		var r = this.ownerDocument.createRange();
		r.setStartBefore(this);
		var parsedHTML = r.createContextualFragment(htmlStr);
		this.insertAdjacentElement(where,parsedHTML)
	}


	HTMLElement.prototype.insertAdjacentText = function(where,txtStr)
	{
		var parsedText = document.createTextNode(txtStr)
		this.insertAdjacentElement(where,parsedText)
	}
}
// Ende insertAdjacentHTML(), insertAdjacentText() and insertAdjacentElement()


function __mk_flush_content () {
	document.getElementById('__mk_main').insertAdjacentHTML("afterBegin",document.getElementById('mkmain').value);
	pollC('__mk_main', 'load');
}

function pollC(id, load){
	if (!load&&document.getElementById(id)){
		document.getElementById(id).id='';
	return;
	} else if (load&&document.getElementById(id)){
		if (id=='__mk_main')  //optional
		initLightbox();  //required
	return;
	} else if (load&&!document.getElementById(id))
	setTimeout("pollC('"+id+"', 'load')", 60);
}

function __mk_ow_print(){
		printwin = window.open("extensions/print/print.htm","Print","status=yes,scrollbars=yes,width=600,height=600");
}

function __mk_window_open(url){
  var popup = window.open(url);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var printfenster = window.open(theURL,winName,features);
}

function check()
{
  if ((form1.vorname.value!="") && (form1.name.value!="") && (form1.email.value!=""))
    return true; else { alert(form1.angaben.value); return false}
}

