function getValue(v) { return(document.getElementById(v)); }
function getValueS(v) { return(getValue(v).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function isset(v) { return((typeof(v)=='undefined' || v.length==0)?false:true); }
function XYwin(v) { var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); return(isset(v)?z[v]:z); }

function sTOG() { 
	document.onclick=function(){ 
		getValueS('sbg').display='none'; 
		getValueS('sbox').display='none'; 
		document.onclick=function(){}; 
	}; 
	}
function sBOX(v,b,e,c) { 
	setTimeout("sTOG()",100); 
	getValueS('sbg').height='2500px'; 
	getValueS('sbg').display='block'; 
	getValue('sbox').innerHTML=v+'<div class="sX" onClick="sTOG();">'+e+'<br /><br />'+c+''+"<\/div>"; 
	getValueS('sbox').left=Math.round((XYwin(1)-b)/2)+'px'; 
	getValueS('sbox').top=Math.round((XYwin(0))/2)+'px'; 
	getValueS('sbox').width=b+'px'; 
	getValueS('sbox').display='block'; 
}



function zanox(orderid, partnerid)
{
			res= '<img width="1" height="1" src="https://ad.zanox.com/pps/?2797C420253136&OrderID=[['+orderid+']]&CustomerID=[['+orderid+']]&CurrencySymbol=[[EUR]]&TotalPrice=[[1]]&PartnerID=[['+partnerid+']]" />'; 
			res +='<SCRIPT TYPE="text/javascript" src="https://ad.zanox.com/3pn/?2797C420253136&mode=[[1]]&OrderID=[['+orderid+']]&CustomerID=[['+orderid+']]&CurrencySymbol=[[EUR]]&TotalPrice=[[1]]&PartnerID=[['+partnerid+']]"></SCRIPT>'; 
			res +='<NOSCRIPT><IMG src="https://ad.zanox.com/3pn/?2797C420253136&mode=[[2]]&OrderID=[['+orderid+']]&CustomerID=[['+orderid+']]&CurrencySymbol=[[EUR]]&TotalPrice=[[1]]&PartnerID=[['+partnerid+']]" width="1" height="1" /></NOSCRIPT>'; 			
	return res;
}

function openBoxes(height)
{
		document.getElementById("dynamic-box").style.height=height+'px';
		document.getElementById("button1a").style.visibility='hidden';
		document.getElementById("button1b").style.visibility='visible';	
		document.getElementById("button2a").style.visibility='hidden';
		document.getElementById("button2b").style.visibility='visible';	
		document.getElementById("button3a").style.visibility='hidden';
		document.getElementById("button3b").style.visibility='visible';	
}

function closeBoxes()
{
		document.getElementById("dynamic-box").style.height='150px';
		document.getElementById("button1a").style.visibility='visible';
		document.getElementById("button1b").style.visibility='hidden';	
		document.getElementById("button2a").style.visibility='visible';
		document.getElementById("button2b").style.visibility='hidden';	
		document.getElementById("button3a").style.visibility='visible';
		document.getElementById("button3b").style.visibility='hidden';	
}

function show(which) {

	if(which==1) {
		document.getElementById("livetesten-form0").style.visibility='hidden';
		document.getElementById("livetesten-form1").style.visibility='visible';
		document.getElementById("livetesten-form2").style.visibility='hidden';
		document.getElementById("livetesten-form3").style.visibility='hidden';
		document.getElementById("livetesten-form4").style.visibility='hidden';
	}
	if(which==2) {
		document.getElementById("livetesten-form0").style.visibility='hidden';
		document.getElementById("livetesten-form1").style.visibility='hidden';
		document.getElementById("livetesten-form2").style.visibility='visible';
		document.getElementById("livetesten-form3").style.visibility='hidden';
		document.getElementById("livetesten-form4").style.visibility='hidden';
	}
	if(which==3) {
		document.getElementById("livetesten-form0").style.visibility='hidden';
		document.getElementById("livetesten-form1").style.visibility='hidden';
		document.getElementById("livetesten-form2").style.visibility='hidden';
		document.getElementById("livetesten-form3").style.visibility='visible';
		document.getElementById("livetesten-form4").style.visibility='hidden';
	}
	if(which==4) {
		document.getElementById("livetesten-form0").style.visibility='hidden';
		document.getElementById("livetesten-form1").style.visibility='hidden';
		document.getElementById("livetesten-form2").style.visibility='hidden';
		document.getElementById("livetesten-form3").style.visibility='hidden';
		document.getElementById("livetesten-form4").style.visibility='visible';
	}


}



function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


function codecard() {
	document.cardform.user.value = document.form.user.value;
	document.cardform.submit();

}

function inputfocus(){
	if (document.form!=null)document.form.user.focus();
}

var texte = Array();
texte[ 'nossl' ] = "Normale Verbindung";
texte[ 'ssl' ] = "SSL Verbindung";
texte[ 'login' ] = "Bitte einloggen";
texte[ 'logout' ] = "Sie haben sich ausgeloggt!";
texte[ 'loginfehler' ] = "Fehler beim Login!";
texte[ 'loginversuche' ] = "Die maximale Anzahl von Loginversuchen würde überschritten. <br> Bitte wenden Sie sich an unseren Service!";
texte[ 'timeout' ] = 'Sie wurden wegen eines Sessiontimeoutes ausgeloggt!';

function getText( key ){
	var res = texte[key];
	//if (res == undefined) return '';
	return texte[key];
}

function argItems( theArgName ) {
  sArgs = location.search.slice( 1 ).split( '&' );
  r = '';
  for( var i = 0; i < sArgs.length; i++ ) {
    if( sArgs[ i ].slice( 0, sArgs[ i ].indexOf( '=' ) ) == theArgName ) {
      r = sArgs[ i ].slice( sArgs[ i ].indexOf( '=' ) + 1 );
      break;
    }
  }
  return ( r.length > 0 ? unescape( r ).split( ',' ) : '' )
}

function myload(){
	document.form.url.value = argItems('url');

}





function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=583,height=600,screenX=10,screenY=10');");
}

function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=800,screenX=10,screenY=10');");
}

function popUpQuickorder(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=830,height=615,screenX=10,screenY=10');");
}

function popUpTrailer(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=712,height=440,screenX=10,screenY=10');");
}

function checkKurzInfo() {
  if ( document.kurzinfoform.absendertemp.value == '' || document.kurzinfoform.absendertemp.value == 'Ihre E-Mail Adresse' ) {
    alert( "Bitte geben Sie Ihre E-Mail Adresse ein!" );
	document.kurzinfoform.absendertemp.focus();
    return false;
  } 
  else if ( document.kurzinfoform.absendertempname.value == '' || document.kurzinfoform.absendertempname.value == 'Ihr Name' ) {
    alert( "Bitte geben Sie Ihren Namen ein!" );
	document.kurzinfoform.absendertempname.focus();
    return false;
  } else {
    
    
    var adre = document.kurzinfoform.absendertemp.value;  
    var name = document.kurzinfoform.absendertempname.value;
    var w = window.open('http://www.ebuero.de/dankepopup1.jsp?'+adre+'&'+name,'danke','scrollbars=1,width=420,height=700,left='+Math.round((screen.width-420)/2)+',top='+Math.round((screen.height-700)/2));
  
    document.kurzinfoform.absender.value=document.kurzinfoform.absendertemp.value;
    document.kurzinfoform.absendertemp.value='';
    document.kurzinfoform.absendername.value=document.kurzinfoform.absendertempname.value;
    document.kurzinfoform.absendertempname.value='';
    return true;
  }
}
function checkKurzInfo4() {
  if ( document.kurzinfoform.absendertemp.value == '' || document.kurzinfoform.absendertemp.value == 'Ihre E-Mail Adresse' ) {
    alert( "Bitte geben Sie Ihre E-Mail Adresse ein!" );
	document.kurzinfoform.absendertemp.focus();
    return false;
  } 
  else if ( document.kurzinfoform.absendertempname.value == '' || document.kurzinfoform.absendertempname.value == 'Ihr Name' ) {
    alert( "Bitte geben Sie Ihren Namen ein!" );
	document.kurzinfoform.absendertempname.focus();
    return false;
  } else {
    
    
    var adre = document.kurzinfoform.absendertemp.value;  
    var name = document.kurzinfoform.absendertempname.value;
    var w = window.open('http://ebuero-beta.coast.ebuero.de/dankepopup2.jsp?'+adre+'&'+name,'danke','scrollbars=1,width=420,height=700,left='+Math.round((screen.width-420)/2)+',top='+Math.round((screen.height-700)/2));
  
    //document.kurzinfoform.absender.value=document.kurzinfoform.absendertemp.value;
    //document.kurzinfoform.absendertemp.value='';
    //document.kurzinfoform.absendername.value=document.kurzinfoform.absendertempname.value;
    //document.kurzinfoform.absendertempname.value='';
    return true;
  }
}


function checkKurzInfo2() {
  if ( document.kurzinfoform1.absendertemp1.value == '' || document.kurzinfoform1.absendertemp1.value == 'Ihre E-Mail Adresse' ) {
    alert( "Bitte geben Sie Ihre E-Mail Adresse ein!" );
	document.kurzinfoform1.absendertemp1.focus();
    return false;
  } 
  else if ( document.kurzinfoform1.absendertempname1.value == '' || document.kurzinfoform1.absendertempname1.value == 'Ihr Name' ) {
    alert( "Bitte geben Sie Ihren Namen ein!" );
	document.kurzinfoform1.absendertempname1.focus();
    return false;
  } else {
  
    var adre = document.kurzinfoform1.absendertemp1.value;  
    var name = document.kurzinfoform1.absendertempname1.value;
    var w = window.open('http://www.ebuero.de/dankepopup1.jsp?'+adre+'&'+name,'danke','scrollbars=1,width=420,height=700,left='+Math.round((screen.width-420)/2)+',top='+Math.round((screen.height-700)/2));
    document.kurzinfoform1.absender1.value=document.kurzinfoform1.absendertemp1.value;
    document.kurzinfoform1.absendertemp1.value='';
    document.kurzinfoform1.absendername1.value=document.kurzinfoform1.absendertempname1.value;
    document.kurzinfoform1.absendertempname1.value='';
    return true;
  }
}

function checkKurzInfo3() {
  if ( document.kurzinfoform1.absendertemp1.value == '' || document.kurzinfoform1.absendertemp1.value == 'Ihre E-Mail Adresse' ) {
    alert( "Bitte geben Sie Ihre E-Mail Adresse ein!" );
	document.kurzinfoform1.absendertemp1.focus();
    return false;
  } 
  else if ( document.kurzinfoform1.absendertempname1.value == '' || document.kurzinfoform1.absendertempname1.value == 'Ihr Name' ) {
    alert( "Bitte geben Sie Ihren Namen ein!" );
	document.kurzinfoform1.absendertempname1.focus();
    return false;
  } else {
  
    var adre = document.kurzinfoform1.absendertemp1.value;  
    var name = document.kurzinfoform1.absendertempname1.value;
        var w = window.open('http://www.ebuero.de/dankepopup1.jsp?'+adre+'&'+name,'danke','scrollbars=1,width=420,height=700,left='+Math.round((screen.width-420)/2)+',top='+Math.round((screen.height-700)/2));
    document.kurzinfoform1.absender1.value=document.kurzinfoform1.absendertemp1.value;
    document.kurzinfoform1.absendertemp1.value='';
    document.kurzinfoform1.absendername1.value=document.kurzinfoform1.absendertempname1.value;
    document.kurzinfoform1.absendertempname1.value='';
    return true;
  }
}

function checkFormLanding() {
  if ( document.form.email.value == '' ) {
    alert( "Bitte geben Sie Ihre E-Mail Adresse ein!" );
	document.form.email.focus();
    return false;
  } 
  else if ( document.form.telefon.value == '' ) {
    alert( "Bitte geben Sie Ihre Telefonnummer ein!" );
	document.form.name.focus();
    return false;
  }  
  else if ( document.form.name.value == '' ) {
    alert( "Bitte geben Sie Ihren Namen ein!" );
	document.form.name.focus();
    return false;
  } else {
  
    var w = window.open('../dankepopupland.jsp','danke','scrollbars=1,width=420,height=700,left='+Math.round((screen.width-420)/2)+',top='+Math.round((screen.height-700)/2));
    return true;
  }
}

function checkFormLandingSmall() {
  if ( document.form.email.value == '' ) {
    alert( "Bitte geben Sie Ihre E-Mail Adresse ein!" );
	document.form.email.focus();
    return false;
  } 
  else if ( document.form.name.value == '' ) {
    alert( "Bitte geben Sie Ihren Namen ein!" );
	document.form.name.focus();
    return false;
  } else {
  
    var w = window.open('../dankepopupland.jsp','danke','scrollbars=1,width=420,height=700,left='+Math.round((screen.width-420)/2)+',top='+Math.round((screen.height-700)/2));
    return true;
  }
}


function validate(formfield,text){
var result = true;
	
	if (formfield.value == "")
	{
		alert(text);
		formfield.focus();
		result = false;
	}
	
	return result;
}


function checkItBaby(form) {
	if (form =='1') {

		if (!validate(document.form1.name,'Bitte geben Sie Ihren Namen ein.')) {
		    return false;
		    }
		if (!validate(document.form1.firma,'Bitte geben Sie den Namen Ihrer(s) Firma, Verbandes, Vereines, etc. ein.')) {
		    return false;
		    }
		if (!validate(document.form1.strasse,'Bitte geben Sie den Namen der Strasse Ihres Firmensitzes ein.')) {
		    return false;
		    }
		if (!validate(document.form1.ort,'Bitte geben Sie den Ort Ihres Firmensitzes ein.')) {
		    return false;
		    }
		if (!validate(document.form1.telefon,'Bitte geben Sie Ihre Telefonnummer ein.')) {
		    return false;
		    }
		if (!validate(document.form1.absender,'Bitte geben Sie Ihre E-Mailadresse ein.')) {
		    return false;
		    }
	

		return true;
	}

		if (form =='2') {

		if (!validate(document.form1.name,'Bitte geben Sie Ihren Namen ein.')) {
		    return false;
		    }
		if (!validate(document.form1.telefon,'Bitte geben Sie Ihre Telefonnummer ein.')) {
		    return false;
		    }
		if (!validate(document.form1.absender,'Bitte geben Sie Ihre E-Mailadresse ein.')) {
		    return false;
		    }
	

		return true;
	}
	
	
	if (form =='3') {

		if (!validate(document.form1.name,'Bitte geben Sie Ihren Namen ein.')) {
		    return false;
		    }
		if (!validate(document.form1.adresse1,'Bitte geben Sie Ihre Strasse und Hausnummer an.')) {
		    return false;
		    }
		if (!validate(document.form1.adresse2,'Bitte geben Sie Ihren Ort und die Postleitzahl an.')) {
		    return false;
		    }
		if (!validate(document.form1.telefon,'Bitte geben Sie Ihre Telefonnummer ein.')) {
		    return false;
		    }
		if (!validate(document.form1.absender,'Bitte geben Sie Ihre E-Mailadresse ein.')) {
		    return false;
		    }
	

		return true;
	}


		if (form =='4') {

		if (!validate(document.form1.name,'Bitte geben Sie Ihren Namen ein.')) {
		    return false;
		    }
		if (!validate(document.form1.absender,'Bitte geben Sie Ihre E-Mailadresse ein.')) {
		    return false;
		    }
	

		return true;
	}

}

	function chkFormular()
	{
	 if(document.Formular.message.value == "") {
	   alert("Bitte geben Sie einen Meldetext ein !");
	   document.Formular.message.focus();
	   return false;
	  }
	 if(document.Formular.name.value == "")  {
	   alert("Bitte geben Sie Ihren Namen ein!");
	   document.Formular.name.focus();
	   return false;
	  }
	 if(document.Formular.email.value == "")  {
	 for (var i=0; i < document.Formular.status.length; i++)
  		 {
  			 if (document.Formular.status[i].checked)
    		  {
    		  var statusvalue = document.Formular.status[i].value;
  	  		  }
   		}
	 
	 
	   var w = window.open('/live-testen/aktionpopup.jsp?'+document.Formular.message.value+'&'+document.Formular.name.value+'&'+statusvalue+'&'+document.Formular.imMeetingBis.value+'&'+document.Formular.imUrlaubBis.value+'&'+document.Formular.ausserHausBis.value+'&'+document.Formular.sonstigesText.value,'danke','scrollbars=1,width=490,height=570,left='+Math.round((screen.width-490)/2)+',top='+Math.round((screen.height-570)/2));
	 	
	   //document.Formular.E-Mail.focus();
	   return false;
	  }
	 if(document.Formular.vorwahl.value == "") {
	   alert("Bitte geben Sie die Vorwahl ihrer Handynummer ein !");
	   document.Formular.vorwahl.focus();
	   return false;
	  }
	 if(document.Formular.handy.value == "") {
	 
 	 for (var i=0; i < document.Formular.status.length; i++)
  		 {
  			 if (document.Formular.status[i].checked)
    		  {
    		  var statusvalue = document.Formular.status[i].value;
  	  		  }
   		}
	 
	 
	   var w = window.open('aktionpopup.jsp?'+document.Formular.message.value+'&'+document.Formular.name.value+'&'+statusvalue+'&'+document.Formular.imMeetingBis.value+'&'+document.Formular.imUrlaubBis.value+'&'+document.Formular.ausserHausBis.value+'&'+document.Formular.sonstigesText.value,'danke','scrollbars=1,width=490,height=570,left='+Math.round((screen.width-490)/2)+',top='+Math.round((screen.height-570)/2));
	 	
	   return false;
	  }
	 var chkZ = 1;
	 for(i=0;i<document.Formular.handy.value.length;++i)
	   if(document.Formular.handy.value.charAt(i) < "0"
	   || document.Formular.handy.value.charAt(i) > "9")
	     chkZ = -1;
	 if(chkZ == -1) {
	   alert("Als Handynummer bitte nur Zahlen eingeben !");
	   document.Formular.handy.focus();
	   return false;
	  }
	 if(document.Formular.status.value == "") {
	   alert("Bitte wählen Sie einen Status aus");
	   document.Formular.status.focus();
	   return false;
	  }
	}
	

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
//-->
// Start Generic Popup
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=583,height=800,screenX=10,screenY=10');");
}
// End Popup
// Start Generic Popup2
function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=583,height=550,screenX=10,screenY=10');");
}
// End Popup
// Start Generic Popup3
function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=800,screenX=10,screenY=10');");
}
// End Popup

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function glossar(){
if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
		}
	}




// code below does not work! <-- Ok, is everything changed to use the code above? Or is it still using code below?


function Trim(iStr)
{
	while (iStr.charCodeAt(0) <= 32)
	{
		iStr=iStr.substr(1);
	}

	while (iStr.charCodeAt(iStr.length - 1) <= 32)
	{
		iStr=iStr.substr(0, iStr.length - 1);
	}

	return iStr;
}

function CheckEmailAddress(Email)
{
	Email = Trim(Email);

	while (Email != '')
	{
		c = Email.charAt(0);	
		if (c==' ' || c=='<' || c==39 || c==':' || c=='.')
		{
			Email = Email.substr(1);
		}
		else
		{
			break;
		}
	}

	i = Email.indexOf('>');
	if (i==-1)
	{
		while (Email != '')
		{
			c = Email.charAt(Email.length - 1);
			if (c==' ' || c==39 || c=='.')
			{
				Email = Email.substr(0, Email.length - 1);
			}
			else
			{
				break;
			}
		}
	}
	else
	{
		Email = Email.substr(0, i);
	}

	if (Email.length > 96)
		return '';

	i = Email.lastIndexOf('@');
	j = Email.lastIndexOf('.');
	if (i < j)
		i = j;

	switch (Email.length - i - 1)
	{
	case 2:
		break;
	case 3:
		switch (Email.substr(i))
		{
		case '.com':
		case '.net':
		case '.org':
		case '.edu':
		case '.mil':
		case '.gov':
		case '.biz':
		case '.pro':
		case '.int':
			break;
		default:
			return '';
		}
		break;
	default:
		switch (Email.substr(i))
		{
		case '.name':
		case '.info':
			break;
		default:
			return '';
		}
		break;
	}

	Email = Email.toLowerCase();

	if (Email == '')
		return '';

	if (Email.indexOf(' ') != -1)
		return '';

	if (Email.indexOf('..') != -1)
		return '';

	if (Email.indexOf('.@') != -1)
		return '';

	if (Email.indexOf('@.') != -1)
		return '';

	if (Email.indexOf(':') != -1)
		return '';

	for (i=0; i < Email.length; i++)
	{
		c = Email.charAt(i);

		if (c >= '0' && c <= '9')
			continue;
		
		if (c >= 'a' && c <= 'z')
			continue;
		
		if ('`~!#$%^&*-_+=?/\\|@.'.indexOf(c) != -1)
			continue;

		return '';
	}

	if ((i=Email.indexOf('@'))==-1)
		return '';

	if (Email.substr(i + 1).indexOf('@')!=-1)
		return '';

	if (Email.charAt(0)=='.' || Email.charAt(Email.length - 1)=='.')
		return '';

	return Email;
}


function CheckKurzinfoForm()
{
	if (CheckEmailAddress(document.kurzinfoform.absender.value) == '')
	{
		alert('Bitte tragen Sie Ihre E-Mail Adresse ein!');
		document.kurzinfoform.absender.focus();
		return;
	}



	document.kurzinfoform.action="/scripts/unterlagen_fast.jsp";
	document.kurzinfoform.submit();

}

function CheckKurzinfoForm1()
{
	if (CheckEmailAddress(document.kurzinfoform.absender.value) == '')
	{
		alert('Bitte tragen Sie Ihre E-Mail Adresse ein!');
		document.kurzinfoform.absendertemp.focus();
		return;
	}

	if ((document.kurzinfoform.absendername.value) == '')
	{
		alert('Bitte tragen Sie Ihren Namen ein!');
		document.kurzinfoform.absendernametemp.focus();
		return;
	}

	document.kurzinfoform.action="/scripts/unterlagen_fast1.jsp";
	document.kurzinfoform.submit();

}



function OpenWithReference(towhere,name,path,tarif,foreign) {
window.location.href('http://www.ebuero.de/partnerseiten/'+towhere+'?'+name+'§'+path+'§'+tarif+'§'+foreign);
}

function OpenWithReferenceStart(towhere) {
window.location.href(towhere);
}

function OpenWithReferenceGut(towhere,name,path,tarif) {
window.open('http://www.ebuero.de/partnerseiten/'+towhere+'?'+name+'§'+path+'§'+tarif);
}


function form_submit_check(formname) {
	
	if (formname=='lt') {
	
		if ((document.testen.name.value) == '')
		{
			alert('Bitte tragen Sie Ihren Namen ein!');
			document.testen.name.focus();
			return false;
		}
		if ((document.testen.message.value) == '')
		{
			alert('Bitte geben Sie einen Meldetext an!');
			document.testen.message.focus();
			return false;
		}

		if ((document.testen.handy.value) == '')
		{
			if ((document.testen.times.value) == '')
			{		
				alert('Wir empfehlen, daß Sie eine Handynummer angeben, damit Sie für den Test eine Beispiel-SMS von uns erhalten.');
				document.testen.handy.focus();
				document.testen.times.value='1';
				return false;
			}
		
		}

	}
	
	if (formname=='ltzs') {
	
		if ((document.testen.name.value) == '')
		{
			alert('Bitte tragen Sie Ihren Namen ein!');
			show(1);
			document.testen.name.focus();
			return false;
		}
		if ((document.testen.message.value) == '')
		{
			alert('Bitte geben Sie einen Meldetext an!');
			show(2);
			document.testen.message.focus();
			return false;
		}
		if ((document.testen.handy.value) == '')
		{
			if ((document.testen.times.value) == '')
			{		
				alert('Wir empfehlen, daß Sie eine Handynummer angeben, damit Sie für den Test eine Beispiel-SMS von uns erhalten.');
				document.testen.handy.focus();
				document.testen.times.value='1';
				return false;
			}
		}

	}
	
	
		
	
	return true;
}





	
	function form_submit_test(formname) {
	
		
		
		if (form_submit_check(formname) == true) {
			if (formname=='lt') {
				document.testen.submit();
				}
			if (formname=='ltzs') {
				document.testen.submit();
				}				
			}
	}
	
	
	
	
	
	
var breite = 150;
var mausabstand = 15;
var ToolTippShow = false;
var ToolTipp = null;
var breite, dir, b_Breite, b_Dir, b_VDir;

function setToolTipp (breite){
	document.onmousemove = cursorMove;
	if (breite && breite>20) b_Breite = breite;
	ToolTipp = crossGetObject('ToolTipp');
	ToolTippShow = false;
}

function showToolTipp(title,msg,rahmenfarbe,cellpadding,cellspacing,schriftartoben,schriftartunten,textrichtungoben,textrichtungunten,textfarbeoben,textfarbeunten,rahmenstaerke,bgcoloroben,bgcolorunten,rechtslinks,untenoben,schriftgroesseoben,schriftgroesseunten,fettoben,fettunten,rahmenart,breite){
	var b_Back;
	var relWidth, relHeight;
	if (ToolTipp == null) return;
	if (breite && breite>20) b_Breite = breite;
	else b_Breite=150;
	msg = '<table width="' + b_Breite + '" cellpadding="'+cellpadding+'" cellspacing="'+cellspacing+'" style="border:'+rahmenstaerke+' '+rahmenfarbe+' '+rahmenart+';"><tr><td style="border-bottom:'+rahmenstaerke+' solid '+rahmenfarbe+'; border-top:'+rahmenstaerke+' solid '+rahmenfarbe+'; border-left:'+rahmenstaerke+' solid '+rahmenfarbe+'; border-right:'+rahmenstaerke+' solid '+rahmenfarbe+'; padding:1px; "><table width="100%" border="0" cellpadding="'+cellpadding+'" cellspacing="'+cellspacing+'"><tr><td bgcolor="'+bgcoloroben+'" align="'+textrichtungoben+'"><span style="font-family:'+schriftartoben+'; font-size: '+schriftgroesseoben+'; font-weight: '+fettoben+'; color:'+textfarbeoben+'; "><b>'+title+'</b></span></th></tr></table><table width="100%" border="0" cellpadding="'+cellpadding+'" cellspacing="'+cellspacing+'"><tr><td bgcolor="'+bgcolorunten+'" align="'+textrichtungunten+'"><span style="font-family:'+schriftartunten+'; font-size: '+schriftgroesseunten+'; font-weight:'+fettunten+'; color:'+textfarbeunten+';">' + msg + '</span></td></tr></table></td></tr></table>'
	if (!dir) b_Dir = rechtslinks;
	else b_Dir = dir;
	relWidth = crossInnerWindowWidth() + crossGetScroll("x");
	relHeight = crossInnerWindowHeight() + crossGetScroll("y");
	if (crossMouseX + b_Breite + mausabstand > relWidth) 
		{b_Dir = 1;}
	else if (crossMouseX < b_Breite + mausabstand) b_Dir = 0;
	b_VDir = untenoben;
	if (crossMouseY + 65 > relHeight) b_VDir = 1;
	else if (crossMouseY - 65 < 0) b_VDir = 0;
	crossWrite(ToolTipp, msg);
	ToolTippShow = true;
	crossShowObject(ToolTipp);
}

function hideToolTipp(breite) {
	if (ToolTipp == null) return;
	crossHideObject(ToolTipp);
	ToolTippShow=false;
	crossMoveTo(ToolTipp, -150, 0);
}

function cursorMove(e) {
	var posX, posY;
	crossMousePosition(e);

	if(ToolTippShow){
		if(b_Dir==0){
			posX = crossMouseX + mausabstand; 
			if (b_VDir==0) {posY = crossMouseY + mausabstand;}
			else {posY = crossMouseY - 65;}
		}else{
			posX = crossMouseX-b_Breite-mausabstand;
			if (b_VDir==0) {posY = crossMouseY + mausabstand;}
			else {posY = crossMouseY - 65;}
		}
		crossMoveTo(ToolTipp, posX, posY)
	}
}


var B_Type = new crossBrowserType();
function crossBrowserType() {
	this.IE = false;
	this.NS4 = false;
	this.NS6 = false;
	this.id = "";

	if (document.all) {this.IE = true; this.id = "IE";}
	else if (document.getElementById) {this.NS6 = true; this.id = "NS6";}
	else if (document.layers) {this.NS4 = true; this.id = "NS4";}
}

var crossMouseX, crossMouseY;
if (B_Type.NS4) document.captureEvents(Event.MOUSEMOVE);

function crossMousePosition(e) {
	if (B_Type.IE) {
		crossMouseX=event.x + document.body.scrollLeft; 
		crossMouseY=event.y + document.body.scrollTop;
	}
	else {crossMouseX=e.pageX; crossMouseY=e.pageY;}
}


function crossGetObject(id) {
	var obj = null;
	if (B_Type.IE) obj=document.all[id];
	else if (B_Type.NS6) obj=document.getElementById(id);
	else if (B_Type.NS4) obj=document.layers[id];
	return obj;
}

function crossWrite(obj, text) {
	if (B_Type.IE) obj.innerHTML = text;
	else if (B_Type.NS6) obj.innerHTML = text;
	else if (B_Type.NS4){
		obj.document.open();
		obj.document.write(text);
		obj.document.close();
	}
}

function crossInnerWindowWidth() {
	var val;
	if (B_Type.IE) val=document.body.clientWidth;
	else if (B_Type.NS6) val=window.innerWidth;
	else if (B_Type.NS4) val=window.innerWidth;
	return val;
}

function crossOuterWindowWidth() {
	var val;
	if (B_Type.IE) val=document.body.offsetWidth;
	else if (B_Type.NS6) val=window.outerWidth;
	else if (B_Type.NS4) val=window.outerWidth;
	return val;
}

function crossInnerWindowHeight() {
	var val;
	if (B_Type.IE) val=document.body.clientHeight;
	else if (B_Type.NS6) val=window.innerHeight;
	else if (B_Type.NS4) val=window.innerHeight;
	return val;
}

function crossGetScroll(achse) {
	var val;
	if(!achse || achse == "y"){
		if (B_Type.IE) val=document.body.scrollTop;
		else if (B_Type.NS6) val=window.pageYOffset;
		else if (B_Type.NS4) val=window.pageYOffset;
	}else{
		if (B_Type.IE) val=document.body.scrollLeft;
		else if (B_Type.NS6) val=window.pageXOffset;
		else if (B_Type.NS4) val=window.pageXOffset;
	}
	return val;
}

function crossMoveTo(obj, x, y) {
	if (B_Type.IE) {obj.style.pixelLeft=x; obj.style.pixelTop=y;}
	else if (B_Type.NS4) {obj.left=x; obj.top=y;}
	else if (B_Type.NS6) {obj.style.left=x+"px"; obj.style.top=y+"px";}
}

function crossShowObject(obj) {
	if (B_Type.IE || B_Type.NS6) {obj.style.visibility="visible";}
	else if (B_Type.NS4) {obj.visibility="show";}
}

function crossHideObject(obj) {
	if (B_Type.IE || B_Type.NS6) {obj.style.visibility="hidden";}
	else if (B_Type.NS4) {obj.visibility="hide";}
}	

