function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var stored_num = 1;

function showBN( id, num ) {

	if( !num ) num = stored_num;

	e = document.getElementById( id );
	
	if( !e.value ) e.value = stored_num = num;
	
	e.focus();
	e.select();
}

function changeInput(field1,field2){

	if(field1.value.length>3) {

		field2.select();
		//field2.focus();

	}
}

function hideBN( id ) {
	e = document.getElementById( id );

	if( e.value == stored_num ) e.value = "";
}

function swapClass( id, add ) {

	cb = document.getElementById( "cb" + id );
	if( cb.className == "off" ) cb.className=""; else cb.className="off";

	if( add ) return;

	tm = document.getElementById( "tm" + id );
	if( tm.className == "med" ) tm.className=""; else tm.className="med";
}

function sendForward(){

	var s_mail = document.forms['forward_input'].email.value;

	var s_subject = document.forms['forward_input'].subject.value;

	var s_name = document.forms['forward_input'].sendername.value;

	if(s_mail){	
	
		document.forms['forward'].action = 'mailto:'+s_mail+'?subject='+s_subject;
		
		document.forms['forward'].elements['Absender'].value = s_name;
		
		document.forms['forward'].submit();
	
	} else alert('Bitte geben Sie eine EMailadresse ein.');
	
	return false;

}

function toggle(item){
	obj=document.getElementById(item);
	visible=(obj.style.display!="none")

	if (visible){
		obj.style.display="none";
	} else {
		obj.style.display="block";
	}
}

