
<!--
ie = ((document.all) && (window.offscreenBuffering)) ? true : false;
nn = ((document.captureEvents) && (!document.getElementById)) ? true : false;
mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false; 
op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != -1)) ? true : false
if (mz){
	document.write('<style>#contentcontainer{height: 397px;} input#bildit{padding:4px 0 0 7px;}</style>');
}

function FensterOeffnen (Adresse) {
  Fenster1 = window.open(Adresse, "pdffenster", "width=750,height=550, screenx=100, screeny=100, resizable=yes, scrollable=Yes,toolbar=no,status=no");
  Fenster1.focus();
}

function vollbild(Adresse) {
  Fenster3 = window.open(Adresse, "vollbildfenster", "width=1024,height=768,  screenx=0, screeny=0, fullscreen=no, resizable=yes, scrollbars=auto,toolbar=no,status=no");
  Fenster3.focus();
}


function tour(Adresse,width,height) {
    if ( screen.availWidth > width )  
    { 
       moveX = (screen.availWidth-width)/2; 
    } else { 
       width = screen.availWidth; 
       moveX = 0; 
    } 
    if ( screen.availHeight > height )  
    { 
       moveY = (screen.availHeight-height)/2; 
    } else { 
       height = screen.availHeight; 
       moveY = 0; 
    } 
   window.open(Adresse,"popuptour","scrollbars=no,resizeable=yes,toolbar=no,menubar=no,location=no,width=" + width + ",height=" + height + ",top=" + moveY + ",left=" + moveX); 
}


function quicktime500x375(Adresse) {
  Fenster4 = window.open(Adresse, "PanoKlein", "width=500,height=391,fullscreen=no, resizable=no, scrollbars=auto,toolbar=no,status=no");
  Fenster4.focus();
}

function click (e) {
		  if (!e)
		    e = window.event;
		  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
		    if (window.opera)
		      window.alert("Sorry: Diese Funktion ist deaktiviert.");
		    return false;
		  }
		}
		if (document.layers)
		  document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown = click;
		document.oncontextmenu = click;
		
//for input fields: ---> | onkeypress="return handleEnter(this,event);" |
function handleEnter (field, event)
{
	var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	if (keyCode == 13)
	{
		var i;
		for (i = 0; i < field.form.elements.length; i++)
			if (field == field.form.elements[i])
				break;
		i = (i + 1) % field.form.elements.length;
		field.form.elements[i].focus();
		return false;
	} 
	else
	return true;
}


function submitOnce(theform)
{
	//if IE 4+ or NS 6+
	if (document.all||document.getElementById)
	{
		//screen thru every element in the form, and hunt down "submit" and "reset"
		for (i=0;i<theform.length;i++)
		{
			var tempobj=theform.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			//disable em
			tempobj.disabled=true
		}
	}
}


// -->
