
/*
Copyright © 1999 - 2010
STEFAN GEORGI TECHNOLOGY
XgeoTec-systems
contact@xgeotec.com
www.xgeotec.com
*/





function JS15f5b3b7297984ed(t)
{
				var df = document.forms[0];
		if( t==1 )
		{
			df.SideSubmit.value="1";
			df.submit();
		}
		else
		{
			JS34b6a5c5(98,0,null,null);
			return false;
		}
		}


function JS02bfcb5af6db8b41(ob,t,v)
{
	if( t==1 )
	{
		if(ob.value==v)
			ob.value='';
	}
	else
	{
		if(ob.value=='')
			ob.value=v;
	}

}


function JS080b34b7e7e04f88(sFL,w,h,m)
{
	try
	{
		var bF=false;
		if(typeof(navigator.plugins["Shockwave Flash"]) == "object")
			bF = true;
		else if(typeof(ActiveXObject) == "function")
			if(typeof(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) == "object") 
				bF = true;
		
		if(bF)
		{
			//m = decodeURIComponent(m);
			document.getElementById(sFL).innerHTML = '<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w+'" height="'+h+'" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ><param name="movie" value="'+m+'" ><param name="quality" value="high"><param name="scale" value="exactfit"><param name="menu" value="true"><param name="bgcolor" value="#004573"><embed src="'+m+'" quality="high" scale="exactfit" menu="false" bgcolor="#004573" width="'+w+'" height="'+h+'" swLiveConnect="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>';
		}
	}
	catch(e){}
}



function JS73057721A(pID,pXSID)
{
	NewURL = "/events/mainB.php?v1=1&Xsid=" + pXSID + "&v2=" + pID;
	WinName ="THEMA";

	var WidthWindow = 400;
	var HeigtWindow = 375;

    NewFenster = window.open( NewURL , WinName, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0"+",width="+WidthWindow+",height="+HeigtWindow);
	NewFenster.focus();
}


function JS1S7881AD3(pT,pT2,pV,pV2,pRT,pN)
{
		var r = null;
	var d = null;
	if( pT2==2 )
	{
		if(document.getElementsByName(pV)[0])
			d = document.getElementsByName(pV)[0];
	}
	else
	{
		if(document.getElementById(pV))
			d = document.getElementById(pV);
	}
	
	if( d!=null )
	{	
		if( pT==2 )
		{
			if( pT2==2 )
				d.value = pV2;
			else
				d.innerHTML = pV2;
			
		}
		else
		{
			if( pT2==2 )
				r = d.value;
			else
				r = d.innerHTML;	
		}
	}
	
	if( pT!=2 )
	{
		if( r==null  &&  pN==1 )
			return null;
		else
		{
			if( pRT==3 )
			{
				if( !parseFloat(r) )
				{
					if( pN==1 )
						return null;
					else
						return 0;
				}
				else
					return parseFloat(r);
			}
			else if( pRT==2 )
			{
				if( !parseInt(r) )
				{
					if( pN==1 )
						return null;
					else
						return 0;
				}
				else
					return parseInt(r);
			}
			else
			{
				if( r==null )
					return "";
				else
					return r;
			}
		}
	}
}

function JS0d455a9f3592(pT,pT2,pV,pV2)
{
	var d = null;
	if( pT2==2 )
	{
		if(document.getElementsByName(pV)[0])
			d = document.getElementsByName(pV)[0];
	}
	else
	{
		if(document.getElementById(pV))
			d = document.getElementById(pV);
	}
	
	if( d!=null )
	{
		if( pT==2 )
			d.src = pV2;
		else
			d.innerHTML = pV2;
	}
}

function JSb1046b73fede(pT,pRT,pArr,pID,pN)
{
		var r = null;
	if( pArr!=null  &&  pID!=null )
	{
		if( pArr[pID] )
		{
			r = pArr[pID];
		}
	}
	
	
	if( pRT==3 )
	{
		
		if( !parseFloat(r) )
		{
			if( pN==1 )
				return null;
			else
				return 0;
		}
		else
			return parseFloat(r);
	}
	else if( pRT==2 )
	{
		if( !parseInt(r) )
		{
			if( pN==1 )
				return null;
			else
				return 0;
		}
		else
			return parseInt(r);
	}
	else
	{
		if( r==null )
			return "";
		else
			return r;
	}
}


function X_number_format(p_f__V)
{
	p_f__V += '';
	var x = p_f__V.replace(".", ",").split(',');
	var x1 = isNaN(x[0]) ? '0' : x[0];
	
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1))
		x1 = x1.replace(rgx, '$1' + '.' + '$2');
	
	var x2 = isNaN(x[1]) ? ',' : ','+x[1];
	while( x2.length < 3 )
		x2+='0';

	return 	x1 + x2;
}


function X_round(v,dez)
{
	v = String(v).length==0 ? "0" : String(v).replace(',','.');
	if( !isNaN(v) )
	{
		if(dez==-1)
			return parseFloat(v);
		else
			return (Math.round(parseFloat(v)*Math.pow(10,(dez)))/Math.pow(10,(dez)));
	}
	else
		return 0.00;
}


function X_check(w , t)
{
	if( t==2 )
    {
    	w.checked=true;
    }
    else
    {
		if(w.checked==true)
			w.checked=false;
		else
			w.checked=true;
    }
}


function XchkTextEmail(formular,feld,fehler,is_null,emaildefault)
{
	d=document;
	for(i=0;i<d.forms.length;++i)if(d.forms[i].name == formular) f1 = d.forms[i];
	for(i=0;i<f1.length;++i)if(f1.elements[i].name == feld)t1 = f1.elements[i];
	prw=t1.value.toLowerCase();
	if(is_null==1&&t1.value==""){t1.value=emaildefault;return true};
	for (i=0;i<prw.length;++i){if(  (  ( prw.substr(i,1)==prw.substr(i+1,1) ) &&  ( (prw.substr(i,1)=='-') || (prw.substr(i,1)=='.') || (prw.substr(i,1)=='_')) || (((prw.substr(i,1)=='_')||(prw.substr(i,1)=='.')||(prw.substr(i,1)=='-')||(prw.substr(i,1)=='@') ) && ((prw.substr(i+1,1)=='_')||(prw.substr(i+1,1)=='.')||(prw.substr(i+1,1)=='-')||(prw.substr(i+1,1)=='@') ))   ) || (((prw.substr(i,1)<'a') || (prw.substr(i,1)>'z')) && ((prw.substr(i,1)>'9') || (prw.substr(i,1)<'0')) && (prw.substr(i,1)!='@') && (prw.substr(i,1)!='.') && (prw.substr(i,1)!='-') && (prw.substr(i,1)!='_')) ){alert(fehler);t1.focus();return false;};}
	if ((prw.length<6) || (((prw.split('.')).length)<=1) || (((prw.split('@')).length)>2) || (((prw.split('@')).length)<=1) || (prw.substr(0,1)=='@')  || (prw.substr(0,1)=='.')  || (prw.substr(0,1)=='_') || ( prw.length-prw.lastIndexOf('.')  < 3 ) || ( prw.length-prw.lastIndexOf('.')  > 10 ) || (prw.lastIndexOf('.')-prw.lastIndexOf('@')<3) || ( prw.substr(prw.lastIndexOf('@'),prw.lastIndexOf('.')).lastIndexOf('_') != -1) || ( prw.substr(prw.lastIndexOf('.'),prw.length).lastIndexOf('-') != -1)  ){alert(fehler);t1.focus();return false;}
}	


function FormatString(pSt,pTy)
{
	                                    return pSt.replace(/\&/g,"%26").replace(/\+/g,"%2B").replace(/\€/g,"%u20AC").replace(/\\/g ,"%5C");    
}


function X_copyA(p_V)
{
	try
    {
    	alert( "Wir kopieren die Verlinkung für diese Suchanfrage in Ihre Zwischenablage oder geben Ihnen die Verlinkung aus." );
		window.clipboardData.setData("Text", p_V );        
    }
    catch (e)
    {
    	prompt( "Verlinkung für diese Suchanfrage" , p_V );
    }
}
	

function JS04e019be2771(p_Type,p_ArrOrData,p_Val)
{
	if( p_ArrOrData!=null  ||  p_Val!=null )
	{
		if( p_Val.length>0 )
		{
			var b_IsNode = false;
			var i_start = p_Val.indexOf('<');
			if( i_start > -1 )
			{
				var i_end = p_Val.indexOf(">");
				if( i_end > -1 )
				{
					var s_Node = p_Val.substring( i_start+1 , i_end );
					var i_NodeStart = p_Val.indexOf("<"+s_Node+">");
					var i_NodeEnd = p_Val.indexOf("</"+s_Node+">");
					if( i_NodeStart > -1  &&  i_NodeEnd > - 1 )
					{
						b_IsNode = true;
								
						var s_Nodedata = p_Val.substring( i_NodeStart+s_Node.length+2 , i_NodeEnd );
												
							
												if( p_Type==2 )
						{
							if( p_ArrOrData==null )
								p_ArrOrData = new Array();
								
							var i_ArrIndex = p_ArrOrData.length;
							p_ArrOrData[i_ArrIndex] = new Object();
							p_ArrOrData[i_ArrIndex][s_Node] = s_Nodedata;
						}
						else
						{
														var ob_val = JS04e019be2771(p_Type,null,s_Nodedata);
							
							if( ob_val!=null )
							{
																	
								if( p_ArrOrData==null )
									p_ArrOrData = new Array();
								
								var i_ArrIndex = p_ArrOrData.length;
								p_ArrOrData[i_ArrIndex] = new Object();
								p_ArrOrData[i_ArrIndex][s_Node] = ob_val;
							}
						}
														
						
						
													
						var s_NextString = p_Val.substring( i_NodeEnd+s_Node.length+3 );
						if( s_NextString.length>0 )
						{
														JS04e019be2771(p_Type,p_ArrOrData,s_NextString);
						}
													
							
					}
				}
			}
				
			if( p_ArrOrData==null  &&  b_IsNode==false )
			{
												p_ArrOrData = p_Val;
							}
				
		}
	}
	return p_ArrOrData;
}

function JS98d76fca0cde( iType , obContResponse , bMakeAllInClass , sOpenURL , sOpenMethod , bOpenAsynchron , sSendContent , iTimeOut )
{
	var obHttpRequest = null;
	var iType = iType;
	var bMakeAllInClass = bMakeAllInClass==true ? true : false;
	var obContResponse = obContResponse!=null ? obContResponse : null;
	
	if( bMakeAllInClass )
	{
		var sOpenMethod = sOpenMethod=="post" ? "post" : "get";
		var sOpenURL = sOpenURL!=null ? sOpenURL : null;
		var bOpenAsynchron = bOpenAsynchron==false ? false : true;
		var sSendContent = sSendContent!=null && sOpenMethod!="get" ? sSendContent : null;
		
		funct_NewHttpRequestObject();
        
		if( obHttpRequest!=null  &&  sOpenURL!=null )
		{
        
			obHttpRequest.open( sOpenMethod , sOpenURL , bOpenAsynchron );
            
			obHttpRequest.onreadystatechange = funct_HandleResponse; 
            
			if( sOpenMethod=="post" )
			{
								                
                
				obHttpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
				obHttpRequest.setRequestHeader("Content-length", sSendContent.length); 				obHttpRequest.setRequestHeader("Connection", "close");                     
				
				obHttpRequest.send( sSendContent );
			}
			else
				obHttpRequest.send(null);           
            
                    	window.setTimeout( function(){funct_abort()} , iTimeOut );
                    	
		}
	}


	    var b_aborted = false;
    this.IsAborted = function()
    {
    	return b_aborted;
    }
    
	function funct_abort()
    {    	
   	 	if( obHttpRequest!=null )
        {
        	if( obHttpRequest.readyState != 4 && obHttpRequest.readyState != 0 )
            {
            	obHttpRequest.onreadystatechange = function() { };
                b_aborted = true;
		    	obHttpRequest.abort();                
    		    alert("Zeitüberschreitung. Ihre Anforderung wurde abgebrochen! \nBitte versuchen Sie es jetzt noch einmal!");
            }
        }
    }
    


		function funct_NewHttpRequestObject()
	{
    	if (typeof XMLHttpRequest == "undefined")
  			XMLHttpRequest = function () {
			    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
			      catch (e) {}
			    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
			      catch (e) {}
			    try { return new ActiveXObject("Msxml2.XMLHTTP"); }
			      catch (e) {}
			    // Microsoft.XMLHTTP points to Msxml2.XMLHTTP.3.0 and is redundant
			    throw new Error("Dieser Browser unterstützt die Minimalanforderungen nicht!");
		 };
         

		obHttpRequest = new XMLHttpRequest(); 
    }
    
    
    
    
    
    

	this.getHttpRequestObject = function() 
	{
		if( bMakeAllInClass==true )
		{
			alert('getHttpRequestObject');
			return null;
		}
		else
		{
			funct_NewHttpRequestObject();
			return obHttpRequest;
		}
	}
	
	
	
	function funct_HandleResponse()
	{
		if( obHttpRequest!=null )
		{   
			if( obHttpRequest.readyState==4 )
			{
				if( obHttpRequest.status == 200 )
				{                	
					if( iType==8 ) 
					{
											}
					else if( iType==9 )
					{
						// nicht ausreichend browserübergreifend zuverlässig !
						// var xmlDoc = obHttpRequest.responseXML;
					}
					else if( obContResponse!=null )
					{
						if( iType==1 )				
							obContResponse.innerHTML = obContResponse.innerHTML + "<br>" + obHttpRequest.responseText;	
						else
							obContResponse.innerHTML = obHttpRequest.responseText;	
					}
				}
			}
            
		}
	}
    
	this.handleResponse = function()
	{
		return funct_HandleResponse();
	}

	
	this.GetResponse = function()
	{
		        var returnResponse = null;
		if( obHttpRequest!=null )
		{
        
        
			if( obHttpRequest.readyState==4 )
            {
            	if( obHttpRequest.status == 200 )
                {
            
                
					if( iType==9 )
						returnResponse = obHttpRequest.responseXML;
					else
            		{
							                		    	            returnResponse = obHttpRequest.responseText;
    	    	    }
            
                    
        		}                        
         	}
            
            
		}
        return returnResponse;
	}
	
}												


function GetResponse____JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  , ob2,s_Response );
    }
}


function JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  )
{	
	    

	var d = document.forms[0];
	var b_Go2 = false;
	
    var s_EX1 = "&Xsid="+d.Xsid.value;
	
	if( pT1==1  ||  pT1==14  ||  pT1==2 ) 
		b_Go2 = true;
	else if( pT1==3 )
	{
				if( pT2==0 )
		{
			d.is_vermittler.checked = true;
			if( confirm("Wollen Sie sich als Vermittler anmelden?") == true )
				b_Go2 = true;
			else
				d.is_vermittler.checked = false;
		}
		else if( pT2==1 )
		{
			if( confirm("Sie wollen sich nicht als Vermittler anmelden? ") == true )
				b_Go2 = true;
		}
	}
	else if( pT1==4 )
	{
		if( d.is_kunde.checked == true )
		{
			if( pT2!=1 )
				d.is_kunde.checked = false;
		}
		else
		{
			if( pT2!=1 )
				d.is_kunde.checked = true;
		}		
	}
	else if( pT1==5 )
	{
	
		if( d.agb_ok.type == "checkbox")
		{
			if( d.agb_ok.checked==false )
			{
				alert("Akzeptieren Sie die Bedingungen ?");
				location.href="#aNameAgb";
				return;
			}
		}
			
		
		var checked_is_kunde=1;
		if( d.is_kunde.type == "checkbox")
		{
			if(d.is_kunde.checked==false)
			{
				checked_is_kunde=0;
			}
		}
		else
		{
			if(d.is_kunde.value=="0")
			{
				checked_is_kunde=0;
			}
		}
		
		var checked_is_anbieter=1;
		if( d.is_anbieter.type == "checkbox")
		{
			if(d.is_anbieter.checked==false)
			{
				checked_is_anbieter=0;
			}
		}
		else
		{
			if(d.is_anbieter.value=="0")
			{
				checked_is_anbieter=0;
			}
		}
			
		var checked_is_vermittler=1;
		if( d.is_vermittler.type == "checkbox")
		{
			if(d.is_vermittler.checked==false)
			{
				checked_is_vermittler=0;
			}
		}
		else
		{
			if(d.is_vermittler.value=="0")
			{
				checked_is_vermittler=0;
			}
		}
		
		if(checked_is_kunde==0 && checked_is_anbieter==0 && checked_is_vermittler==0 )
		{
			alert("Als was möchten Sie sich anmelden?");
			location.href="#aNameWas";
			return;			
		}
		
        
               
		if( checked_is_anbieter == 1 || checked_is_vermittler == 1 )
		{
			if(d.firma.value=="")
			{
				alert("Bitte geben Sie Ihren Firmen/Organisations - Namen ein!");
				d.firma.focus();
				return;
			}
		}
		
		
		for(i=0;i < d.anrede.length;++i)
		{
			if(d.anrede.options[i].selected == true && d.anrede.options[i].value==0)
			{
				alert("Bitte geben Sie Ihre Anrede an!");
				d.anrede.focus();
				return;
			}
		}
		if(d.vorname.value=="")
		{
			alert("Bitte geben Sie Ihren Vorname ein!");
			d.vorname.focus();
			return;
		}
		if(d.nachname.value=="")
		{
			alert("Bitte geben Sie Ihren Nachname ein!");
			d.nachname.focus();
			return;
		}
			
		if(d.plz.value=="")
		{
			alert("Bitte geben Sie Ihre Postleitzahl ein!");
			d.plz.focus();
			return;
		}
		if(d.ort.value=="")
		{
			alert("Bitte geben Sie Ihren Ort ein!");
			d.ort.focus();
			return;
		}
		if(d.strasse.value=="")
		{
			alert("Bitte geben Sie Ihre Straße ein!");
			d.strasse.focus();
			return;
		}
			
		if(d.telefon_vor.value=="")
		{
			alert("Bitte geben Sie die Vorwahl Ihrer Telefonnummer ein!");
			d.telefon_vor.focus();
			return;
		}
		if(d.telefon.value=="")
		{
			alert("Bitte geben Sie Ihre Telefonnummer ein!");
			d.telefon.focus();
			return;
		}
			
		if(pT2==0)
		{
			if(XchkTextEmail('startpage','email','Ungültige Email',0,'')=="0") return;
			if( d.email_check.value!=d.email.value )
			{
				alert("Bitte überprüfen Sie die wiederholte Eingabe Ihrer Email!");
				d.email_check.focus();
				return;
			}
		}
			
		if(d.a_benutzername.value=="")
		{
			alert("Bitte geben Sie einen Benutzername ein!");
			d.a_benutzername.focus();
			return;
		}
		if(d.a_password.value=="")
		{
			alert("Bitte geben Sie ein Passwort ein!");
			d.a_password.focus();
			return;
		}
			
		
		
			
				b_Go2 = true;
        
        
		s_EX1 += "&email="+FormatString(d.email.value , 0)  +"&benutzername="+FormatString(d.a_benutzername.value , 0);
        

	}
	else if( pT1==6 )
    {
    	//alert('wie CNA_imgwahl');
        document.forms[0].bildType.value = pV1.value.substring( pV1.value.lastIndexOf(".")+1, pV1.value.length).toLowerCase();
		document.forms[0].bildName.value = pV1.value;
	
		if( document.forms[0].bildType.value=="gif" || document.forms[0].bildType.value=="jpg" || document.forms[0].bildType.value=="jpeg"  )
		{
		}
		else
		{
			alert("Falscher Dokumenten-Typ !");
			document.forms[0].bildType.value = "";
			document.forms[0].bildName.value = "";
			return false;
		}
    }
    else if( pT1==7 )
    {
    	//alert('wie CNA_imgvorschau');
        /*
		if( document.forms[0].bildFile.value=="" )
		{
			alert('Bitte Firmenlogo auf ihrem Rechner auswählen !');
		}
		else
		{
			window.open( "file://" + document.forms[0].bildFile.value , "Vorschau" , "locationbar=no,menubar=no,status=no" );
		}
        */
    }
    else if( pT1==8 )
    {
    	//alert('wie CNA_imgdele');
        if( confirm("Wollen Sie Ihr bisheriges Firmenlogo löschen? ") == true )
		{
        	b_Go2 = true;
		}
    }
    else if( pT1==9 )
    {
        document.forms[0].bildType__2.value = pV1.value.substring( pV1.value.lastIndexOf(".")+1, pV1.value.length).toLowerCase();
		document.forms[0].bildName__2.value = pV1.value;
	
		if( document.forms[0].bildType__2.value=="gif" || document.forms[0].bildType__2.value=="jpg" || document.forms[0].bildType__2.value=="jpeg"  )
		{
		}
		else
		{
			alert("Falscher Dokumenten-Typ !");
			document.forms[0].bildType__2.value = "";
			document.forms[0].bildName__2.value = "";
			return false;
		}
    }
    else if( pT1==10 )
    {
    	
    }
    else if( pT1==11 )
    {
        if( confirm("Wollen Sie Ihr bisheriges Passfoto des Ansprechpartners löschen? ") == true )
		{
        	b_Go2 = true;
		}
    }
    else if( pT1==12 )
    {
    	d.SideSubmit.value = "1";
    	d.SideSubmitTarget.value = "100001";
    	d.submit();
    }
    else if( pT1==13 )
    {
    	if(XchkTextEmail('startpage','newsemail','Ungültige Email',0,'')=="0") return;
		var newstyp;
		for(i=0;i < document.startpage.newstyp.length;++i)
		{
			if(document.startpage.newstyp[i].checked == true)
			{
				newstyp = document.startpage.newstyp[i].value;
			}
		}
		s_EX1 += "&newstyp="+FormatString(newstyp , 0)  +"&newsemail="+FormatString(document.startpage.newsemail.value , 0);
        
        b_Go2 = true;
    }
    else if( pT1==15 )
    {
    	if( pT2==2 )
        {
        	if(XchkTextEmail('startpage','cPV_email','ungültige Email',1,'')=="0") return;
		
        	if( d.cPV_email.value.length > 0 )
        		s_EX1 += "&cPV_email="+FormatString(d.cPV_email.value , 0);
                
        }
        
    	b_Go2 = true;
    }


	if( b_Go2 ) 
	{
			
		
		
		
		
		if( pT1==1 )
		{
        	            s_EX1 += "&v6="+FormatString(d.log_loginname.value,0)  +"&v7="+FormatString(d.log_password.value,0);
                     
			if(d.log_loginname.value=="")
			{
					alert("Bitte Benutzername eingeben!");
					d.log_loginname.focus();
					return;
			}
			if(document.startpage.log_password.value=="")
			{
					alert("Bitte Passwort eingeben!");
					d.log_password.focus();
					return;
			}
            
		}
        else if( pT1==14 )
		{
			s_EX1 += "&v6="+FormatString(d.log_loginname2.value , 0)  +"&v7="+FormatString(d.log_password2.value , 0);
			if(d.log_loginname2.value=="")
			{
					alert("Bitte Benutzername eingeben!");
					d.log_loginname2.focus();
					return;
			}
			if(document.startpage.log_password2.value=="")
			{
					alert("Bitte Passwort eingeben!");
					d.log_password2.focus();
					return;
			}
		}
		
        
						
		
		        
        var b__OpenAsynchron = true;
        var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v0="+pT0+"&v1=4&v2="+pT1+"&v3="+pT2+"&v4="+pV1+"&v5="+pV2 + s_EX1   , 15000 );
		
        
        GetResponse____JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  , ob2,0  );
        
			
 	}  
}


function SetResponse____JS00459f4975b1(pT0,pT1,pT2,pV1,pV2  , ob2,s_Response )
{
    if( s_Response!=null )
    {
    	var d = document.forms[0];
        
        
 		var arrXgeoArray = new Array();
		

		
			
		s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 		arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
			
		var i_re = 0;
		var i_sub = 0;
		var i_va = 0;
		var i_userok = 0;
		var i_emailok = 0;
		
		var s_PART1 = null;
		var s_blflogo1 = null;
        var s_blflogo2 = null;
		var s_blawas1 = null;
        
        var s_NEWXSID = null;
		
		for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
		{	
			if( typeof arrXgeoArray[i1]  ==  "object" )
			{
				if( !arrXgeoArray[i1].length )
				{
					var ob_Property1 = arrXgeoArray[i1];
					for( var property1 in ob_Property1 )
					{
						if( typeof ob_Property1[property1]  !=  "object" )
						{
														if( property1=="va" )
								i_va = parseInt(ob_Property1[property1]);
							else if( property1=="re" )
								i_re = parseInt(ob_Property1[property1]);
							else if( property1=="sub" )
								i_sub = parseInt(ob_Property1[property1]);
							else if( property1=="userok" )
								i_userok = parseInt(ob_Property1[property1]);
							else if( property1=="emailok" )
								i_emailok = parseInt(ob_Property1[property1]);								
								
							else if( property1=="PART1" )
								s_PART1 = ob_Property1[property1];
							else if( property1=="blawas1" )
								s_blawas1 = ob_Property1[property1];
							else if( property1=="blflogo1" )
								s_blflogo1 = ob_Property1[property1];
                            else if( property1=="blflogo2" )
								s_blflogo2 = ob_Property1[property1];
                            else if( property1=="NEWXSID" )
								s_NEWXSID = ob_Property1[property1];							
						}
					}
				}
			}
		}
        

        
		if( i_re>0 )
		{
        	if( pT1==15 )
            {
            	if( s_PART1!=null  &&  pV1!=null )
				{			
					if( s_PART1.length>0  &&  pV1.length>0 )
                    {
                    	if( document.getElementById( pV1 ) )
                       		document.getElementById( pV1 ).innerHTML = s_PART1;
            			
                    }
                }
            }
			else if( pT1==13 )
            {
            	if( s_PART1!=null )
                {
                	if( document.getElementById("ID9aa6d6f8ead34250a610e62a2eaeb121") )
						document.getElementById("ID9aa6d6f8ead34250a610e62a2eaeb121").innerHTML = s_PART1;
                }
            }
            else
            {
            
				if( pT1==1  ||  pT1==14 )
				{
                
                    
					if( i_va>0 )
					{
                		                    
                    	if( s_NEWXSID!=null )
                        	if( s_NEWXSID.length==32 )
                            	d.Xsid.value = s_NEWXSID;
                        
                    
                		if( pT0==1 )
							alert('weiter machen Pakete mit i_va:' + i_va);
						else if( pT0==4 || pT0==5 || pT0==6 )
    	                {
							i_sub = 1;
            	        }
					}
					else if( pT1==1 )
					{
						alert('Die eingegebenen Zugangsdaten sind ungültig!');
						d.log_loginname.focus();
						return;
					}
                    else if( pT1==14 )
					{
						alert('Die eingegebenen Zugangsdaten sind ungültig!');
						d.log_loginname2.focus();
						return;
					}
				} 				else if( pT1==2 )
				{
			
				}
			
			
				if( s_PART1!=null )
				{			
					if( s_PART1.length>0 )
					{
                	
						if( pT0==1 )
						{
							if( document.getElementById("bl7") )
								document.getElementById("bl7").innerHTML = s_PART1;
						}
						else if( pT0==4 || pT0==5 || pT0==6 || pT0==11 )
						{                        	
							if( document.getElementById("bl7") )
								document.getElementById("bl7").innerHTML = s_PART1;
						}
                        else if( pT0==12 )
                        {
                        	if( document.getElementById("IDCPMAIN") )
								document.getElementById("IDCPMAIN").innerHTML = "<div style='margin-left:190px'>"+s_PART1+"</div>";
                        }
					}
				}
			
				if( s_blawas1!=null )
				{			
					if( s_blawas1.length>0 )
					{
						if( document.getElementById("blawas1") )
							document.getElementById("blawas1").innerHTML = s_blawas1;
					}
				}
			
				if( s_blflogo1!=null )
				{			
					if( s_blflogo1.length>0 )
					{
						if( document.getElementById("blflogo1") )
							document.getElementById("blflogo1").innerHTML = s_blflogo1;
					}
				}
            
        	    if( s_blflogo2!=null )
				{			
					if( s_blflogo2.length>0 )
					{
						if( document.getElementById("blflogo2") )
							document.getElementById("blflogo2").innerHTML = s_blflogo2;
					}
				}
			
			
				if( pT1==5 )
				{
					//var i_userok = 0;
					//var i_emailok = 0;
				
                	
                    
					if( i_userok!=1  &&  i_emailok!=1 )
					{
						alert('Die von Ihnen gewählte Email-Adresse und der von Ihnen gewählte Benutzername sind bereits vergeben!');
                	    
                    	if(pT2==0)
							d.email.focus();
                        
						return;
					}
					else if( i_userok!=1 )
					{
						alert('Der von Ihnen gewählte Benutzername ist bereits vergeben!');
						d.a_benutzername.focus();
						return;
					}
					else if( i_emailok!=1 )
					{
						alert('Die von Ihnen gewählte Email-Adresse ist bereits vergeben!');
                    
    	                if(pT2==0)
							d.email.focus();
                        
						return;
					}
				
					if( pT2>0 )
						d.SideSubmitTarget.value="3"; 					else
						d.SideSubmitTarget.value="2"; 				}
			
			
				if( i_sub==1 )
				{
					 
				
                	if( pT1==5 )
                		d.encoding = "multipart/form-data";
               	
					d.submit();
						
				}		
        	}
            	
		}           
    
    }
}    




function GetResponse____JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  , ob2,s_Response );
    }
}


function JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  )
{
	
    	
    var d = document.forms[0];
	var b_Go2 = false;
    var s_EX1 = "&Xsid="+d.Xsid.value;
    
    if(pT1==1)
    {
    	b_Go2 = true;
    }
    
    
    if( b_Go2 ) 
    {
    
    	var b__OpenAsynchron = true;
    	var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=6&v2="+pT1+"&v3="+pT2+"&v4="+pV1+"&v5="+pV2 + s_EX1   , 15000 );
		
        
        GetResponse____JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  , ob2,0  );
        
        
    }    
    
}


function SetResponse____JSd9adcfcf3777dbbb63d5(pT1,pT2,pV1,pV2  , ob2,s_Response )
{
    if( s_Response!=null )
    {
 		var d = document.forms[0];
        
 
 		var arrXgeoArray = new Array();
        
        
        		
		s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 		arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
        
        
        var i_va = 0;
        var i_re = 0;
        var s_PART1 = null;
        
        for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
		{	
			if( typeof arrXgeoArray[i1]  ==  "object" )
			{
				if( !arrXgeoArray[i1].length )
				{
					var ob_Property1 = arrXgeoArray[i1];
					for( var property1 in ob_Property1 )
					{
						if( typeof ob_Property1[property1]  !=  "object" )
						{
														if( property1=="va" )
								i_va = parseInt(ob_Property1[property1]);
							else if( property1=="re" )
								i_re = parseInt(ob_Property1[property1]);
							else if( property1=="PART1" )
								s_PART1 = ob_Property1[property1];
						}
					}
				}
			}
		}
        
        if( i_re>0 )
        {
        	if(pT1==1)
            {
	            window.setTimeout("JSd9adcfcf3777dbbb63d5("+pT1+","+pT2+","+pV1+","+pV2+")",60000);
    		}        
        }
 
    
    }
}    

function JSxd59e8b7b2dbd2(pT1,pT2,pV1,pV2)
{
    
    var d = document.forms[0];
    
    
    if( pT2==1 )
    {
	    if( d.Xsid.value.length>0 )
    	{
        	/*
    		var w = parseInt( screen.availWidth ) -75;
			var h = parseInt( screen.availHeight ) -100;
			*/
            var w = parseInt( screen.availWidth );
            if( w > 860 )
            	w = 860;
                
			var h = parseInt( screen.availHeight );
            if( h > 860 )
            	h = 860;
                        
			var oS = "width=" + w + ",height=" + h + ",locationbar=0,menubar=0,status=0,resizable=yes,scrollbars=yes";
			var WN = "WN"+String(pT1);
			WO1 = window.open( "/internet/main.php4?xd59e8b7b2dbd2=" + pT1 + "&xd59e8b7b2dbd2xsid=" + d.Xsid.value , WN , oS );
			WO1.focus()
		}        
	}
    
}

function GetResponse____JS34b6a5c5(pT1,pT2,pV1,pV2  , b_calc , ob_ID1 , i_OldID1 , ob_PRVAR_HttpRequest , i_OnlyBlock1  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JS34b6a5c5(pT1,pT2,pV1,pV2  , b_calc , ob_ID1 , i_OldID1 , ob_PRVAR_HttpRequest , i_OnlyBlock1  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JS34b6a5c5(pT1,pT2,pV1,pV2  , b_calc , ob_ID1 , i_OldID1 , ob_PRVAR_HttpRequest , i_OnlyBlock1  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JS34b6a5c5(pT1,pT2,pV1,pV2  , b_calc , ob_ID1 , i_OldID1 , ob_PRVAR_HttpRequest , i_OnlyBlock1  , ob2,s_Response );
    }
}



function JS34b6a5c5(pT1,pT2,pV1,pV2  )
{
	//try
	//{
    
    
		var b_calc = false;
	
        
        
		if( pT1==98  ||  pT1==99  ||  pT1==3 )
		{
        
			if( document.getElementsByName("PRVAR_PERS_1")[0]  &&   document.getElementsByName("PRVAR_PERS_2")[0] )
			{
				if( !(parseInt(document.getElementsByName("PRVAR_PERS_1")[0].value)>0)  &&  !(parseInt(document.getElementsByName("PRVAR_PERS_2")[0].value)>0)  )
				{
					alert("Bitte geben Sie eine ungefähre Teilnehmerzahl an!");
					document.forms[0].PRVAR_PERS_1.focus();
					if( pT1==98 )
						return false;
					else
						return;
				}
				else
					b_calc = true;
			}
			else if( document.getElementsByName("PRVAR_PERS_1")[0] )
			{
				if( !(parseInt(document.getElementsByName("PRVAR_PERS_1")[0].value)>0)  )
				{
					alert("Bitte geben Sie eine ungefähre Teilnehmerzahl an!");
					document.forms[0].PRVAR_PERS_1.focus();
					if( pT1==98 )
						return false;
					else
						return;
				}
				else
					b_calc = true;
			}
			else if( document.getElementsByName("PRVAR_PERS_2")[0] )
			{
				if( !(parseInt(document.getElementsByName("PRVAR_PERS_2")[0].value)>0)  )
				{
					alert("Bitte geben Sie eine ungefähre Teilnehmerzahl an!");
					document.forms[0].PRVAR_PERS_2.focus();
					if( pT1==98 )
						return false;
					else
						return;
				}
				else
					b_calc = true;
			}			
			
		}
        
        
		
		
		if( pT1==0 )
		{
			b_calc = true;
		}
        
        
        
		
		if( pT1==1 )
		{
					}
		
        
        
        
        
        
        if( pT1==2  ||  pT1==3 ||  pT1==80 )
		{
			
			var ob_ID1 = document.forms[0].ID1;
			var i_OldID1 = ob_ID1.value;
			
			var ob_PRVAR_HttpRequest = document.forms[0].PRVAR_HttpRequest;
			
			if( pV1>0 )
				ob_ID1.value = pV1;
				
			
			
			
			var i_OnlyBlock1 = 0;
			if( pT1==2  &&  ob_PRVAR_HttpRequest.value=="3" )
			{
				if( pT2==1  ||  pT2==2  ||  pT2==3 )
					i_OnlyBlock1 = 2;				else
					i_OnlyBlock1 = 1;			}
			else
				ob_PRVAR_HttpRequest.value = pT1;
			
			
			if( i_OnlyBlock1!=1 )
				b_calc = true;
			
			
			var s_EXVAR = "";
			if( pT1==3 )
			{
				if( document.getElementsByName("EXVAR_"+pV2)[0] )
					s_EXVAR += "&v6=" + FormatString(document.getElementsByName("EXVAR_"+pV2)[0].value , 0);
					
				if( document.getElementsByName("EXVAR_TXT_"+pV2)[0] )
					s_EXVAR += "&v7=" + FormatString(document.getElementsByName("EXVAR_TXT_"+pV2)[0].value , 0);
					
				if( document.getElementsByName("EXVAR_PERS_"+pV2)[0] )
					s_EXVAR += "&v8=" + FormatString(document.getElementsByName("EXVAR_PERS_"+pV2)[0].value , 0);
			}
			else if( pT1==2 && (pT2==1) )
			{
				if( document.getElementsByName("EXVAR_"+pV2)[0] )
					document.getElementsByName("EXVAR_"+pV2)[0].value = 1;
				
				if( document.getElementsByName("EXVAR_TXT_E")[0]  &&  document.getElementsByName("EXVAR_TXT_"+pV2)[0] )
					document.getElementsByName("EXVAR_TXT_"+pV2)[0].value = document.getElementsByName("EXVAR_TXT_E")[0].value;
				
				if( document.getElementsByName("EXVAR_PERS_E")[0]  &&  document.getElementsByName("EXVAR_PERS_"+pV2)[0] )
					document.getElementsByName("EXVAR_PERS_"+pV2)[0].value = document.getElementsByName("EXVAR_PERS_E")[0].value;
			}
			else if( pT1==2 && (pT2==3) )
			{
				if( document.getElementsByName("EXVAR_"+pV2)[0] )
					document.getElementsByName("EXVAR_"+pV2)[0].value = 0;
					
				if( document.getElementsByName("EXVAR_TXT_E")[0]  &&  document.getElementsByName("EXVAR_TXT_"+pV2)[0] )
					document.getElementsByName("EXVAR_TXT_"+pV2)[0].value = document.getElementsByName("EXVAR_TXT_E")[0].value;
				
				if( document.getElementsByName("EXVAR_PERS_E")[0]  &&  document.getElementsByName("EXVAR_PERS_"+pV2)[0] )
					document.getElementsByName("EXVAR_PERS_"+pV2)[0].value = document.getElementsByName("EXVAR_PERS_E")[0].value;
			}
			
			
			if( document.getElementsByName("PRVAR_PERS_1")[0] )
			{
				if( parseInt(document.getElementsByName("PRVAR_PERS_1")[0].value) )
					s_EXVAR += "&v9=" + parseInt(document.getElementsByName("PRVAR_PERS_1")[0].value);
			}
			
			if( document.getElementsByName("PRVAR_PERS_2")[0] )
			{
				if( parseInt(document.getElementsByName("PRVAR_PERS_2")[0].value) )
					s_EXVAR += "&v10=" + parseInt(document.getElementsByName("PRVAR_PERS_2")[0].value);
			}
					
			
			
						
			
			
						        	
            var b__OpenAsynchron = true;
			var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=1&v2="+FormatString(ob_ID1.value , 0) +"&v3="+pT1+"&v4="+pV2+"&v5="+String(i_OnlyBlock1)+s_EXVAR   , 15000 );
			

				
            GetResponse____JS34b6a5c5(pT1,pT2,pV1,pV2  , b_calc , ob_ID1 , i_OldID1 , ob_PRVAR_HttpRequest , i_OnlyBlock1  , ob2,0  );
            
           
			
		}
        else
        {
        	if( b_calc )
			{			
            	
				JS34b6a5c5__calc( pT1,pT2,pV1,pV2 );
		
        	} 
        }
			
		
	//}
	//catch(e)
	//{
	//}	
}


function SetResponse____JS34b6a5c5(pT1,pT2,pV1,pV2  , b_calc , ob_ID1 , i_OldID1 , ob_PRVAR_HttpRequest , i_OnlyBlock1  , ob2,s_Response )
{
    if( s_Response!=null )
    {
    
 
            
            var arrXgeoArray = new Array();
			
						
			s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 			arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
			
			var i_packageid = 0;
			var s_block1 = null;
			var s_block2 = null;
			var s_block3 = null;
			var s_block4 = null;
			var s_block5 = null;
			var s_block6 = null;
			var s_block7 = null;
			for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
			{	
				if( typeof arrXgeoArray[i1]  ==  "object" )
				{
					if( !arrXgeoArray[i1].length )
					{
						var ob_Property1 = arrXgeoArray[i1];
						for( var property1 in ob_Property1 )
						{
							if( typeof ob_Property1[property1]  !=  "object" )
							{
																if( property1=="packageid" )
									i_packageid = parseInt(ob_Property1[property1]);
								else if( property1=="block1" )
									s_block1 = ob_Property1[property1];
								else if( property1=="block2" )
									s_block2 = ob_Property1[property1];
								else if( property1=="block3" )
									s_block3 = ob_Property1[property1];
								else if( property1=="block4" )
									s_block4 = ob_Property1[property1];
								else if( property1=="block5" )
									s_block5 = ob_Property1[property1];
								else if( property1=="block6" )
									s_block6 = ob_Property1[property1];
								else if( property1=="block7" )
									s_block7 = ob_Property1[property1];
							}
						}
					}
				}
			}
			
			if( parseInt(i_packageid)>0 )
			{
				if( pT1==3 )
				{
					if( s_block3!=null )
						if( s_block3.length>0 )
							document.getElementById("bl3").innerHTML = s_block3;
							
					document.getElementById("bl2").innerHTML = "";
					document.getElementById("bl4").innerHTML = "";	
				}
				else
				{
					if( s_block1!=null )
						if( s_block1.length>0 )
							document.getElementById("bl1").innerHTML = s_block1;
		
					if( s_block2!=null )			
						if( s_block2.length>0 )
							document.getElementById("bl2").innerHTML = s_block2;
							
					if( s_block3!=null )			
						if( s_block3.length>0 )
							document.getElementById("bl3").innerHTML = s_block3;
							
					if( s_block4!=null )			
						if( s_block4.length>0 )
							document.getElementById("bl4").innerHTML = s_block4;
							
					if( s_block5!=null )
					{			
						if( s_block5.length>0 )
						{
							if( document.getElementById("bl5") )
								document.getElementById("bl5").innerHTML = s_block5;
						}
					}
							
					if( s_block6!=null )
					{			
						if( s_block5.length>0 )
						{
							document.getElementById("bl6").style.visibility = "visible";
							document.getElementById("bl6").innerHTML = s_block6;
						}
					}
					
					if( s_block7!=null )			
						if( s_block7.length>0 )
							document.getElementById("bl7").innerHTML = s_block7;
							
							
					if( document.getElementById("imp"+i_OldID1) )
						document.getElementById("imp"+i_OldID1).src = "/i/chk1.gif";
								
					if( document.getElementById("imp"+ob_ID1.value) )
						document.getElementById("imp"+ob_ID1.value).src = "/i/chk1ok.gif";
				}
			}
			
			
			if( pT1==3 )
				b_calc = false;
				
			
			
			            
            
            if( b_calc )
			{
			
				JS34b6a5c5__calc( pT1,pT2,pV1,pV2 );
		
        	} 
    
    
    }
}    





function JS34b6a5c5__calc( pT1,pT2,pV1,pV2 )
{
			var b_c_NotUpdate = false;
			var f_c_sum = 0;
			
			var f_c_PERS_1 = JS1S7881AD3(0,2,"PRVAR_PERS_1",null,3,0 );
			if( !(f_c_PERS_1 > 0) ) f_c_PERS_1=0;
			var f_c_PERS_2 = JS1S7881AD3(0,2,"PRVAR_PERS_2",null,3,0 );
			if( !(f_c_PERS_2 > 0) ) f_c_PERS_2=0;
			var f_c_PERS = f_c_PERS_1 + f_c_PERS_2;
			
			
			
			var f_c_pr_1 = 0;
			var f_c_pr_2 = 0;
			for( var i1 = 0; i1 < arr_PRVAR_34b6a5c5.length; i1++ )
			{
				var ob_c_pr = arr_PRVAR_34b6a5c5[i1];
				var i_c_pr_ID = JSb1046b73fede( 0 , 2 , ob_c_pr , "ID" , 0 );
				if( i_c_pr_ID>0  &&  i_c_pr_ID==parseInt(document.forms[0].ID1.value) )
				{
					var f_c_pr_t_min = JSb1046b73fede( 0 , 3 , ob_c_pr , "teilnehmer_min" , 0 );
					var f_c_pr_t_max = JSb1046b73fede( 0 , 3 , ob_c_pr , "teilnehmer_max" , 0 );
					if( pT1!=0 )
					{
						if( f_c_pr_t_min>0 && f_c_PERS<f_c_pr_t_min )
						{
							alert("Bei dieser Paketkombination sind minimal " + f_c_pr_t_min + " Personen nötig! Bitte prüfen Sie, ob weitere Paketkombinationen vorliegen oder verändern Sie Ihre Teilnehmerzahl.");
							if( f_c_PERS_1>0 )
								document.forms[0].PRVAR_PERS_1.focus();
							else if( f_c_PERS_2>0 )
								document.forms[0].PRVAR_PERS_2.focus();
								
							b_c_NotUpdate = true;
						}
						if( f_c_pr_t_max>0 && f_c_PERS>f_c_pr_t_max )
						{
							alert("Bei dieser Paketkombination sind maximal " + f_c_pr_t_max + " Personen möglich! Bitte prüfen Sie, ob weitere Paketkombinationen vorliegen oder verändern Sie Ihre Teilnehmerzahl.");
							if( f_c_PERS_1>0 )
								document.forms[0].PRVAR_PERS_1.focus();
							else if( f_c_PERS_2>0 )
								document.forms[0].PRVAR_PERS_2.focus();
								
							b_c_NotUpdate = true;
						}
					}
			
					if( b_c_NotUpdate==false )
					{
						var i_c_pr_TYP = JSb1046b73fede( 0 , 2 , ob_c_pr , "TYP" , 0 );
						var i_c_pr_PAUSCH = JSb1046b73fede( 0 , 2 , ob_c_pr , "PAUSCH" , 0 );
						
						if( i_c_pr_TYP==2 )
						{
							f_c_pr_1 = JSb1046b73fede( 0 , 3 , ob_c_pr , "ez_vk" , 0 );
							f_c_pr_2 = JSb1046b73fede( 0 , 3 , ob_c_pr , "dz_vk" , 0 );
						}
						else
						{
							var f_c_pr_1 = JSb1046b73fede( 0 , 3 , ob_c_pr , "preis_vk" , 0 );
						}
						
					
						var i_c_pr_kalk_typ = JSb1046b73fede( 0 , 2 , ob_c_pr , "kalk_typ" , 0 );
						var f_c_pr_staffel = 0;
						var f_c_pr_staffel_dz = 0;
						if( i_c_pr_kalk_typ>0 )
						{
							f_c_pr_staffel = JSb1046b73fede( 0 , 3 , ob_c_pr , "staffel" , 0 );
							f_c_pr_staffel_dz = JSb1046b73fede( 0 , 3 , ob_c_pr , "staffel_dz" , 0 );
						}
						
						
						
						
						if( f_c_pr_1>0 )
							f_c_pr_1 = X_CheckPrice( f_c_PERS , f_c_pr_1 , f_c_pr_staffel , f_c_pr_t_min , f_c_pr_t_max );
						else
							f_c_pr_1 = 0;
						
                        
                        
						if( i_c_pr_PAUSCH != 1 )
							JS1S7881AD3( 2 , 0 , "PRVAR1" , " x " + X_number_format(f_c_pr_1) + " &euro;" , 0 , 0 );
						else
							JS1S7881AD3( 2 , 0 , "PRVAR1" , " pausch. " + X_number_format(f_c_pr_1) + " &euro;" , 0 , 0 );
						
                        
                        		
						if( f_c_PERS_1>0 )
						{
							if( i_c_pr_PAUSCH != 1 )
								f_c_pr_1 = X_round( f_c_PERS_1 * f_c_pr_1 , 2 );
						}
						else
							f_c_pr_1 = 0;
							
						
						if( f_c_pr_2>0 )
							f_c_pr_2 = X_CheckPrice( f_c_PERS , f_c_pr_2 , f_c_pr_staffel_dz , f_c_pr_t_min , f_c_pr_t_max );
						else
							f_c_pr_2 = 0;
						
						if( i_c_pr_PAUSCH != 1 )
							JS1S7881AD3( 2 , 0 , "PRVAR2" , " x " + X_number_format(f_c_pr_2) + " &euro;" , 0 , 0 );
						else
							JS1S7881AD3( 2 , 0 , "PRVAR2" , " pausch. " + X_number_format(f_c_pr_2) + " &euro;" , 0 , 0 );
									
						if( f_c_PERS_2>0 )
						{
							if( i_c_pr_PAUSCH != 1 )
								f_c_pr_2 = X_round( f_c_PERS_2 * f_c_pr_2 , 2 );
						}
						else
							f_c_pr_2 = 0;		
						
						
					}
					
					break;
				}
			}
			
			if( b_c_NotUpdate==false )
			{
            	f_c_sum = f_c_pr_1 + f_c_pr_2;
			
				if( f_c_sum > 0 )
				{
					JS1S7881AD3( 2 , 0 , "BASEPRICETXT" , X_number_format(f_c_sum)+" &euro; inkl. MwST" , 0 , 0 );
					JS1S7881AD3( 2 , 2 , "BASEPRICE" , f_c_sum , 0 , 0 );
				}
				else
				{
					JS1S7881AD3( 2 , 0 , "BASEPRICETXT" , "&nbsp;" , 0 , 0 );
					JS1S7881AD3( 2 , 2 , "BASEPRICE" , 0 , 0 , 0 );
				}
			}
			
			
			
			var f_c_z_sum = 0;
			for( var i1 = 0; i1 < arr_EXVAR_34b6a5c5.length; i1++ )
			{				
				var ob_c_z = arr_EXVAR_34b6a5c5[i1];
				if( ob_c_z["ID"] )
				{
					var i_c_z_ID = JS1S7881AD3(0,2,"EXVAR_"+ob_c_z["ID"],null,2,0 );
					if( i_c_z_ID==1 )
					{
						var f_c_z_PERS = JS1S7881AD3(0,2,"EXVAR_PERS_"+ob_c_z["ID"],null,3,0 );
												if( f_c_z_PERS>0 )
						{	
							JS0d455a9f3592(2,0,"icpz"+ob_c_z["ID"],"/i/chk1ok.gif");
							
							if( b_c_NotUpdate==false )
							{
								if( f_c_PERS>0 && f_c_z_PERS>f_c_PERS )
								{
									f_c_z_PERS = f_c_PERS;
									JS1S7881AD3(2,2,"EXVAR_PERS_"+ob_c_z["ID"], f_c_z_PERS ,0,0 );
								}
							
								var f_c_z_PRICE = JSb1046b73fede( 0 , 3 , ob_c_z , "PRICE" , 0 );
								var i_c_z_PAUSCH = JSb1046b73fede( 0 , 2 , ob_c_z , "PAUSCH" , 0 );
								if( i_c_z_PAUSCH == 1 )
									f_c_z_sum += f_c_z_PRICE;
								else
									f_c_z_sum += X_round( f_c_z_PRICE * f_c_z_PERS , 2 );
							}
						}
						else
						{
							JS1S7881AD3(2,2,"EXVAR_"+ob_c_z["ID"],"0",0,0 );
							JS0d455a9f3592(2,0,"icpz"+ob_c_z["ID"],"/i/chk1.gif"); 
						}
					}
					else
						JS0d455a9f3592(2,0,"icpz"+ob_c_z["ID"],"/i/chk1.gif"); 
				}
			}
			
			if( b_c_NotUpdate==false )
			{
				if( f_c_sum > 0  &&  f_c_z_sum > 0 )
				{
					f_c_sum += f_c_z_sum;
					JS1S7881AD3( 2 , 2 , "EXPRICE" , f_c_z_sum , 0 , 0 );
				}
				else
				{
					JS1S7881AD3( 2 , 2 , "EXPRICE" , 0 , 0 , 0 );
				}
			
				if( f_c_sum > 0 )
				{
					JS1S7881AD3( 2 , 0 , "SUMPRICETXT" , X_number_format(f_c_sum)+" &euro; inkl. MwST" , 0 , 0 );
					JS1S7881AD3( 2 , 2 , "SUMPRICE" , f_c_sum , 0 , 0 );
				}
				else
				{
					JS1S7881AD3( 2 , 0 , "SUMPRICETXT" , "&nbsp;" , 0 , 0 );
					JS1S7881AD3( 2 , 2 , "SUMPRICE" , 0 , 0 , 0 );
				}
			}
			
			if( pT1==98 && b_c_NotUpdate==true )
				return false;
}




var  arr_PRVAR_34b6a5c5 = new Array();
function JS34b6a5c5_PRVAR( pV1 , pV2 , pV3 , pV4 , pV5 , pV6 , pV7 , pV8 , pV9 , pV10 , pV11 )
{
	var i = arr_PRVAR_34b6a5c5.length;
	arr_PRVAR_34b6a5c5[i] = new Object();
	arr_PRVAR_34b6a5c5[i]["ID"] = pV1;
	arr_PRVAR_34b6a5c5[i]["TYP"] = pV2;
	arr_PRVAR_34b6a5c5[i]["PAUSCH"] = pV3;
	
	arr_PRVAR_34b6a5c5[i]["teilnehmer_min"] = pV4;
	arr_PRVAR_34b6a5c5[i]["teilnehmer_max"] = pV5;
	
	arr_PRVAR_34b6a5c5[i]["preis_vk"] = pV6;
	arr_PRVAR_34b6a5c5[i]["dz_vk"] = pV7;
	arr_PRVAR_34b6a5c5[i]["ez_vk"] = pV8;
	
	arr_PRVAR_34b6a5c5[i]["kalk_typ"] = pV9;
	arr_PRVAR_34b6a5c5[i]["staffel"] = pV10;
	arr_PRVAR_34b6a5c5[i]["staffel_dz"] = pV11;	
}


var  arr_EXVAR_34b6a5c5 = new Array();
function JS34b6a5c5_EXVAR( pV1 , pV2 , pV3 )
{
	var i = arr_EXVAR_34b6a5c5.length;
	arr_EXVAR_34b6a5c5[i] = new Object();
	arr_EXVAR_34b6a5c5[i]["ID"] = pV1;
	arr_EXVAR_34b6a5c5[i]["PRICE"] = pV2;
	arr_EXVAR_34b6a5c5[i]["PAUSCH"] = pV3;
}



 

function GetResponse____JS3c61efb0a563f(pT1,pT2,pV1,pV2  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JS3c61efb0a563f(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JS3c61efb0a563f(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JS3c61efb0a563f(pT1,pT2,pV1,pV2  , ob2,s_Response );
    }
}


function JS3c61efb0a563f(pT1,pT2,pV1,pV2  )
{
	
	if( pT2==0 )
	{
		var ob_ID1 = document.forms[0].ID1;
		
		        
        var b__OpenAsynchron = true;
		var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=2&v2="+pT1+"&v3="+FormatString(ob_ID1.value , 0) +"&v4="+pV1+"&v5="+pV2   , 10000 );
		
        
        GetResponse____JS3c61efb0a563f(pT1,pT2,pV1,pV2  , ob2,0  );        
		
		
		
	} 	
}

    
function SetResponse____JS3c61efb0a563f(pT1,pT2,pV1,pV2  , ob2,s_Response )
{
    if( s_Response!=null )
    {
		var arrXgeoArray = new Array();
			
		        
        
		s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 		arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
			
		var i_packageid = 0;
		var s_pdbl = null;
		for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
		{	
			if( typeof arrXgeoArray[i1]  ==  "object" )
			{
				if( !arrXgeoArray[i1].length )
				{
					var ob_Property1 = arrXgeoArray[i1];
					for( var property1 in ob_Property1 )
					{
						if( typeof ob_Property1[property1]  !=  "object" )
						{
							if( property1=="packageid" )
								i_packageid = parseInt(ob_Property1[property1]);
							else if( property1=="pdbl" )
								s_pdbl = ob_Property1[property1];
						}
					}
				}
			}
		}
		
		if( parseInt(i_packageid)>0 )
		{
			if( s_pdbl!=null )
			{
				if( s_pdbl.length>0 )
				{
					if( document.getElementById("pdbl1") )
					{
						document.getElementById("pdbl1").innerHTML = s_pdbl;
						
						for( var i1 = 1; i1 <= 6; i1++ )
						{
							if( document.getElementById("pds"+i1) )
								document.getElementById("pds"+i1).className = "TX2";
						}
						
						if( document.getElementById("pds"+pT1) )
							document.getElementById("pds"+pT1).className = "TX1";
					}
				}		
			}			
		}
    }
}



function GetResponse____JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  , ob2,s_Response );
    }
}


function JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  )
{
		if( pT2==0 )
	{
		if( JS34b6a5c5(98,0,null,null)== false )
		{
		
		}
		else if( document.forms[0].Xsid.value.length!=32 )
		{
			document.forms[0].SideSubmitTarget.value="1";
			JS15f5b3b7297984ed(1);
		}
		else
		{
			var d = document.forms[0];
			var s_EX1 = "&Xsid="+d.Xsid.value;

			var ob_ID1 = d.ID1;
		
			        	
            var b__OpenAsynchron = true;
			var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=3&v2="+pT1+"&v3="+FormatString(ob_ID1.value , 0) +"&v4="+pV1+"&v5="+pV2 + s_EX1   , 15000 );
            
            
            GetResponse____JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  , ob2,0  );     
            
		
		}		} 	
}


function SetResponse____JSd5d6af4ca3dc(pT1,pT2,pV1,pV2,pV3,pV4  , ob2,s_Response )
{
    if( s_Response!=null )
    {
    		var d = document.forms[0];
    
 
    	
			var arrXgeoArray = new Array();
			
						
			s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 			arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
			
			var i_packageid = 0;
			var s_block7 = null;
			for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
			{	
				if( typeof arrXgeoArray[i1]  ==  "object" )
				{
					if( !arrXgeoArray[i1].length )
					{
						var ob_Property1 = arrXgeoArray[i1];
						for( var property1 in ob_Property1 )
						{
							if( typeof ob_Property1[property1]  !=  "object" )
							{
								if( property1=="packageid" )
									i_packageid = parseInt(ob_Property1[property1]);
								else if( property1=="block7" )
									s_block7 = ob_Property1[property1];
							}
						}
					}
				}
			}
		
			if( parseInt(i_packageid)>0 )
			{
			
				if( s_block7!=null )
				{
					if( s_block7.length>0 )
					{
						if( document.getElementById("bl7") )
						{
							document.getElementById("bl7").innerHTML = s_block7;
							
							if( document.getElementById("bl5") )
								document.getElementById("bl5").innerHTML = "";	
			
							if( document.getElementById("bl6") )
							{
								document.getElementById("bl6").innerHTML = "";	
								document.getElementById("bl6").style.visibility = "hidden";
							}	
						}
					}		
				}
				
			}
    
    
    }
}    




function GetResponse____JSfd36b582fc84(pT1,pT2,pV1,pV2  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JSfd36b582fc84(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JSfd36b582fc84(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JSfd36b582fc84(pT1,pT2,pV1,pV2  , ob2,s_Response );
    }
}



var var_i_JSfd36b582fc84_11 = 0;
function JSfd36b582fc84(pT1,pT2,pV1,pV2  )
{
	    
    
   
    
    
    var d = document.forms[0];
	var b_Go2 = false;
    var s_EX1 = "&Xsid="+d.Xsid.value+"&ID1="+d.ID1.value;
    
    if(pT1==11)
    {
    	if( var_i_JSfd36b582fc84_11 == 1 )
        {
        	 s_EX1 += "&HidePopup=11";
             var_i_JSfd36b582fc84_11 = 0;
        }
        else
        	var_i_JSfd36b582fc84_11 = 1;
                
    	var b_Go2 = true;
    }
    else if(pT1==1)
    {
    	if( d.cpf1_anrede.value=="0" )
		{
			alert('Bitte geben Sie Ihre Anrede an !');
			d.cpf1_anrede.focus();
			return;
		}
        else
        	s_EX1 += "&cpf1_anrede="+FormatString(d.cpf1_anrede.value , 0);
            
		if( d.cpf1_vname.value=="" )
		{
			alert('Bitte tragen Sie Ihren Vornamen ein !');
			d.cpf1_vname.focus();
			return;
		}
        else
        	s_EX1 += "&cpf1_vname="+FormatString(d.cpf1_vname.value , 0);
         
		if( d.cpf1_nname.value=="" )
		{
			alert('Bitte tragen Sie Ihren Nachname ein !');
			d.cpf1_nname.focus();
			return;
		}
        else
        	s_EX1 += "&cpf1_nname="+FormatString(d.cpf1_nname.value , 0);
            	
                	
		if( d.cpf1_email.value==""  &&  d.cpf1_telefon.value=="" )
		{
			alert('Bitte tragen Sie entweder Ihre Email oder Ihre Telefonnummer ein, damit der Anbieter Ihre Frage beantworten kann !');
			d.cpf1_email.focus();
			return;
		}
            	
		if( d.cpf1_email.value!="" )
		{
			if(XchkTextEmail('startpage','cpf1_email','Ungültige Email',0,'')=="0") return;
		}
        
            
        if( d.cpf1_frage.value=="" )
		{
			alert('Bitte tragen Sie Ihre Frage ein !');
			d.cpf1_frage.focus();
			return;
		}
        else
        	s_EX1 += "&cpf1_frage="+FormatString(d.cpf1_frage.value , 0);

		
		if( d.cpf1_firma.value.length > 0 )
        	s_EX1 += "&cpf1_firma="+FormatString(d.cpf1_firma.value , 0);
            
        if( d.cpf1_titel.value.length > 0 )
        	s_EX1 += "&cpf1_titel="+FormatString(d.cpf1_titel.value , 0);
            
        if( d.cpf1_plz.value.length > 0 )
        	s_EX1 += "&cpf1_plz="+FormatString(d.cpf1_plz.value , 0);
            
        if( d.cpf1_ort.value.length > 0 )
        	s_EX1 += "&cpf1_ort="+FormatString(d.cpf1_ort.value , 0);
            
        if( d.cpf1_strasse.value.length > 0 )
        	s_EX1 += "&cpf1_strasse="+FormatString(d.cpf1_strasse.value , 0);
        	
        if( d.cpf1_telefon.value.length > 0 )
        	s_EX1 += "&cpf1_telefon="+FormatString(d.cpf1_telefon.value , 0);
            
        if( d.cpf1_email.value.length > 0 )
        	s_EX1 += "&cpf1_email="+FormatString(d.cpf1_email.value , 0);
        
        s_EX1 += "&cpf1_PERS_1="+ FormatString(String( JS1S7881AD3(0,2,"PRVAR_PERS_1",null,2,0 ) ) , 0);
        s_EX1 += "&cpf1_PERS_2="+ FormatString(String( JS1S7881AD3(0,2,"PRVAR_PERS_2",null,2,0 ) ) , 0);
        
        
    	b_Go2 = true;
    }
    
    
    if( b_Go2 ) 
    {
    
    	if(pT1==1)
        {
	    	if( document.getElementById("bl6x1") )
				document.getElementById("bl6x1").innerHTML = "<div style='width:380px;height:75px;vertical-align:middle;text-align:center' ><br /><br />Bitte warten Sie Ihre Frage wird an den Anbieter versendet!</div>";
    	}
    
    			        
        var b__OpenAsynchron = true;
		var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=7&v2="+pT1+"&v3="+pT2+"&v4="+pV1+"&v5="+pV2 + s_EX1   , 15000 );
		
        
        GetResponse____JSfd36b582fc84(pT1,pT2,pV1,pV2  , ob2,0  );       
        
        
        
    }   
}


function SetResponse____JSfd36b582fc84(pT1,pT2,pV1,pV2  , ob2,s_Response )
{
    if( s_Response!=null )
    {
    	var d = document.forms[0];
        
    
    
    	var arrXgeoArray = new Array();
     
     			
		s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 		arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
        
        
        var i_va = 0;
        var i_re = 0;
        var s_PART1 = null;
        
        for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
		{	
			if( typeof arrXgeoArray[i1]  ==  "object" )
			{
				if( !arrXgeoArray[i1].length )
				{
					var ob_Property1 = arrXgeoArray[i1];
					for( var property1 in ob_Property1 )
					{
						if( typeof ob_Property1[property1]  !=  "object" )
						{
														if( property1=="va" )
								i_va = parseInt(ob_Property1[property1]);
							else if( property1=="re" )
								i_re = parseInt(ob_Property1[property1]);
							else if( property1=="PART1" )
								s_PART1 = ob_Property1[property1];
						}
					}
				}
			}
		}
        
        if( i_re>0 )
        {
        	if(pT1==11)
            {
            	 if( document.getElementById("bl6x1x2") )
                 {
                 	if( s_PART1!=null )
                    	document.getElementById("bl6x1x2").innerHTML = s_PART1;
                 }
            }
        	else if(pT1==1)
            {
	            if( document.getElementById("bl6x1") )
                {
                	if( i_va==2 )
						document.getElementById("bl6x1").innerHTML = "<div style='width:380px;height:75px;vertical-align:middle;text-align:center' ><br /><br />Es sind Fehler beim Senden Ihrer Frage aufgetreten!</div>";
                    else if( i_va==1 )
                    	document.getElementById("bl6x1").innerHTML = "<div style='width:380px;height:75px;vertical-align:middle;text-align:center' ><br /><br />Ihre Frage wurde an den Anbieter versendet!</div>";
            	}
            
    		}        
        }
    
    
    }
}

    

function GetResponse____JSfd742axe333fe(pT1,pT2,pV1,pV2  , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____JSfd742axe333fe(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____JSfd742axe333fe(pT1,pT2,pV1,pV2  , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____JSfd742axe333fe(pT1,pT2,pV1,pV2  , ob2,s_Response );
    }
}


function JSfd742axe333fe(pT1,pT2,pV1,pV2  )
{
	    
  
    
    
    var d = document.forms[0];
	var b_Go2 = false;
    var s_EX1 = "&Xsid="+d.Xsid.value+"&ID1="+d.ID1.value;
    var sTmp = "";
    var b_with_cont = false;
    
    if(pT1==1)
    {
    	b_Go2 = true;
    }
    else if(pT1==4)
    {
    	if( pT2 == 1 )
        {
        	
            
            sTmp = "";
    		for (var i = 0; i < d.b_isc.length ; i++) 
    		 	if( d.b_isc[i].checked == true )
		    		sTmp = d.b_isc[i].value;
         
    		if( sTmp.length > 0 )
    		{    
        		s_EX1 += "&b_isc="+FormatString(sTmp , 0);
    	    	sTmp = "";
	    	}
            
            
            if( document.getElementsByName("b_PL")[0] )
            {
	            sTmp = "";
    			for (var i = 0; i < d.b_PL.length ; i++) 
    			 	if( d.b_PL[i].checked == true )
			    		sTmp = d.b_PL[i].value;
         
	    		if( sTmp.length > 0 )
    			{    
                	b_with_cont = true;
        			s_EX1 += "&b_PL="+FormatString(sTmp , 0);
    		    	sTmp = "";
		    	}
            }
            
            
            if( document.getElementsByName("b_ZB")[0] )
            {
	            sTmp = "";
    			for (var i = 0; i < d.b_ZB.length ; i++) 
    			 	if( d.b_ZB[i].checked == true )
			    		sTmp = d.b_ZB[i].value;
         
	    		if( sTmp.length > 0 )
    			{    
                	b_with_cont = true;
        			s_EX1 += "&b_ZB="+FormatString(sTmp , 0);
    		    	sTmp = "";
		    	}
            }
            
            
            if( document.getElementsByName("b_VL")[0] )
            {
	            sTmp = "";
    			for (var i = 0; i < d.b_VL.length ; i++) 
    			 	if( d.b_VL[i].checked == true )
			    		sTmp = d.b_VL[i].value;
         
	    		if( sTmp.length > 0 )
    			{    
                	b_with_cont = true;
        			s_EX1 += "&b_VL="+FormatString(sTmp , 0);
    		    	sTmp = "";
		    	}
            }
            
            
            if( document.getElementsByName("b_EE")[0] )
            {
	            sTmp = "";
    			for (var i = 0; i < d.b_EE.length ; i++) 
    			 	if( d.b_EE[i].checked == true )
			    		sTmp = d.b_EE[i].value;
         
	    		if( sTmp.length > 0 )
    			{    
                	b_with_cont = true;
        			s_EX1 += "&b_EE="+FormatString(sTmp , 0);
    		    	sTmp = "";
		    	}
            }
            
            
            if( document.getElementsByName("b_FP")[0] )
            {
	            sTmp = "";
    			for (var i = 0; i < d.b_FP.length ; i++) 
    			 	if( d.b_FP[i].checked == true )
			    		sTmp = d.b_FP[i].value;
         
	    		if( sTmp.length > 0 )
    			{    
                	b_with_cont = true;
        			s_EX1 += "&b_FP="+FormatString(sTmp , 0);
    		    	sTmp = "";
		    	}
            }
            
            
            if( document.getElementsByName("b_PE")[0] )
            {
	            sTmp = "";
    			for (var i = 0; i < d.b_PE.length ; i++) 
    			 	if( d.b_PE[i].checked == true )
			    		sTmp = d.b_PE[i].value;
         
	    		if( sTmp.length > 0 )
    			{    
                	b_with_cont = true;
        			s_EX1 += "&b_PE="+FormatString(sTmp , 0);
    		    	sTmp = "";
		    	}
            }
            
            
            if( d.b_bemerkung.value.length > 0 )
            {
            	b_with_cont = true;
        		s_EX1 += "&b_bemerkung="+FormatString(d.b_bemerkung.value , 0);
            }   
            
            if( b_with_cont==false )
            {
            	alert('Bitte nehmen Sie eine objektive und faire Bewertung vor!');
                return;
            }
            
            if( document.getElementById("bl8x1"))
               	document.getElementById("bl8x1").innerHTML = "<div style='width:380px;height:75px;vertical-align:middle;text-align:center' ><br /><br />Bitte warten Sie Ihre Bewertung wird versendet!</div>";

        }
        
        b_Go2 = true;
    }
    else if(pT1==2 || pT1==3)
    {
    	if( pT2 == 1 )
        {
        	if( d.bl8x1_vorname.value=="" )
			{
				alert('Bitte geben Sie Ihren Vorname ein!');
				d.bl8x1_vorname.focus();
				return;
			}
        	else
        		s_EX1 += "&bl8x1_vorname="+FormatString(d.bl8x1_vorname.value , 0);
                
            if( d.bl8x1_nachname.value=="" )
			{
				alert('Bitte geben Sie Ihren Nachnamen ein!');
				d.bl8x1_nachname.focus();
				return;
			}
        	else
        		s_EX1 += "&bl8x1_nachname="+FormatString(d.bl8x1_nachname.value , 0);
                
            if( d.bl8x1_vorname_empf.value=="" )
			{
				alert('Bitte geben Sie den Vorname Ihres Empfängers ein!');
				d.bl8x1_vorname_empf.focus();
				return;
			}
        	else
        		s_EX1 += "&bl8x1_vorname_empf="+FormatString(d.bl8x1_vorname_empf.value , 0);
                
            if( d.bl8x1_nachname_empf.value=="" )
			{
				alert('Bitte geben Sie den Nachname Ihres Empfängers ein!');
				d.bl8x1_nachname_empf.focus();
				return;
			}
        	else
        		s_EX1 += "&bl8x1_nachname_empf="+FormatString(d.bl8x1_nachname_empf.value , 0);
              
              
            if( d.bl8x1_email_empf.value=="" )
			{
				alert('Bitte geben Sie die e-mail Ihres Empfängers ein!');
				d.bl8x1_email_empf.focus();
				return;
			}
        	
            if(XchkTextEmail('startpage','bl8x1_email_empf','Ungültige Email',0,'')=="0") return;
            
            if( d.bl8x1_email_empf.value.length > 0 )
        		s_EX1 += "&bl8x1_email_empf="+FormatString(d.bl8x1_email_empf.value , 0);
                
            
            if( d.bl8x1_nachricht.value=="" )
			{
				alert('Bitte geben Sie Nachricht an den Empfänger ein!');
				d.bl8x1_nachricht.focus();
				return;
			}
        	else
        		s_EX1 += "&bl8x1_nachricht="+FormatString(d.bl8x1_nachricht.value , 0);
                
                
                
            if( d.bl8x1_firma.value.length > 0 )
        		s_EX1 += "&bl8x1_firma="+FormatString(d.bl8x1_firma.value , 0);
                
            if( d.bl8x1_firma_empf.value.length > 0 )
        		s_EX1 += "&bl8x1_firma_empf="+FormatString(d.bl8x1_firma_empf.value , 0);
                
             
             
             
            if( document.getElementById("bl8x1"))
            {
            	if(pT1==2)
					document.getElementById("bl8x1").innerHTML = "<div style='width:380px;height:75px;vertical-align:middle;text-align:center' ><br /><br />Bitte warten Sie Ihre Weiterleitung wird versendet!</div>";
                else if(pT1==3)
                	document.getElementById("bl8x1").innerHTML = "<div style='width:380px;height:75px;vertical-align:middle;text-align:center' ><br /><br />Bitte warten Sie Ihre Empfehlung wird versendet!</div>";
            }
               
        }
        
    	b_Go2 = true;
    }
    
    
    if( b_Go2 ) 
    {
    
    
    			        
        var b__OpenAsynchron = true;
		var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=11&v2="+pT1+"&v3="+pT2+"&v4="+pV1+"&v5="+pV2 + s_EX1   , 15000 );
		
        
        GetResponse____JSfd742axe333fe(pT1,pT2,pV1,pV2  , ob2,0  );
        
         
    }  

}


function SetResponse____JSfd742axe333fe(pT1,pT2,pV1,pV2  , ob2,s_Response )
{
    if( s_Response!=null )
    {
		var d = document.forms[0];
        
        

		var arrXgeoArray = new Array();
     
     			
		s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 		arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
        
        
        
        var i_va = 0;
        var i_re = 0;
        var s_PART1 = null;
        
        for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
		{	
			if( typeof arrXgeoArray[i1]  ==  "object" )
			{
				if( !arrXgeoArray[i1].length )
				{
					var ob_Property1 = arrXgeoArray[i1];
					for( var property1 in ob_Property1 )
					{
						if( typeof ob_Property1[property1]  !=  "object" )
						{
														if( property1=="va" )
								i_va = parseInt(ob_Property1[property1]);
							else if( property1=="re" )
								i_re = parseInt(ob_Property1[property1]);
							else if( property1=="PART1" )
								s_PART1 = ob_Property1[property1];
						}
					}
				}
			}
		}
        
        if( i_re>0 )
        {
        	if(pT1==1)
            {
            	if( document.getElementById("bl8x1") )
                {
                  	if( s_PART1!=null )
	                   	document.getElementById("bl8x1").innerHTML = s_PART1;
                }
            }
        	else if(pT1==2)
            {
            	if( pT2 == 1 )
                {
                	                    if( document.getElementById("bl8x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1").innerHTML = s_PART1;
                    }		
            	}
                else
                {
                	if( document.getElementById("bl8x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1").innerHTML = s_PART1;
                    }
                }
    		} 
            else if(pT1==3)
            {
            	if( pT2 == 1 )
                {
                	                    if( document.getElementById("bl8x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1").innerHTML = s_PART1;
                    }
            	}
                else
                {
                	if( document.getElementById("bl8x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1").innerHTML = s_PART1;
                    }
                }
    		} 
            else if(pT1==4)
            {
            	if( pT2 == 1 )
                {
                    if( document.getElementById("bl8x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1").innerHTML = s_PART1;
                    }
            	}
                else if( pT2 == 2  ||  pT2 == 3 )
                {
                	if( document.getElementById("bl8x1x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1x1").innerHTML = s_PART1;
                    }
                }
                else
                {
                	if( document.getElementById("bl8x1") )
                    {
                    	if( s_PART1!=null )
	                    	document.getElementById("bl8x1").innerHTML = s_PART1;
                    }
                }
    		} 
                   
        }

    
    }
}
    
	function X_CheckPrice( p_t_check , p_pr_check , p_st_check , p_t_min , p_t_max )
	{
		if(p_st_check>0)
		{
			if( !(p_t_min>0) )
				p_t_min = 1;
			
			if( !(p_t_max>0) )
				p_t_max = 1000;
			
			if( !(p_t_check>0) )
				p_t_check = 9999;
			
			
			if(p_t_check > p_t_max)
			{
				p_t_check = p_t_max;
			}
			
			var price_basis_min = p_t_min * p_pr_check;
			var anteil_fix = X_round( (( price_basis_min * p_st_check )/100) , 2 );
			var anteil_static = price_basis_min - anteil_fix;
			var anteil_static_pro_person = X_round(anteil_static / p_t_min , 2 );
			
			var price_pro_person=0;
			if(p_t_check >= p_t_min )
			{
				price_pro_person = X_round((anteil_fix / p_t_check),2) + (anteil_static_pro_person);
			}
			else
			{
				price_pro_person = X_round((anteil_fix / p_t_min),2) + (anteil_static_pro_person);
			}
			
			return X_round( price_pro_person , 0 );
		}
		else
		{
			return p_pr_check;
		}
	}
	

 	function xImage1(o,o2,v,ot1,ot2,tN,tB)
	{
		if( document.getElementById(o) )
			document.getElementById(o).innerHTML = decodeURIComponent(v);
		
		//if( document.getElementById(o2) )
		//	document.getElementById(o2).innerHTML = "";
			
		if( document.getElementById(ot1) )
			document.getElementById(ot1).innerHTML = tN;
			
		if( document.getElementById(ot2) )
			document.getElementById(ot2).innerHTML = tB;
	}
	
	function xVideo1(o,o2,v,ot1,ot2,tN,tB)
	{
		if( document.getElementById(o) )
		{
			document.getElementById(o).innerHTML = "";
			var w = "225";
			var h =	"250";
			var s = decodeURIComponent(v);
			
			var sTy = "";
			if(document.all && !window.opera)
			{
			}
			else
			{
				if(navigator.mimeTypes["video/quicktime"] &&  navigator.mimeTypes["video/quicktime"].enabledPlugin != null)
					sTy = 'type="video/quicktime" ';
				else if(navigator.mimeTypes["video/x-ms-wmv"] &&  navigator.mimeTypes["video/x-ms-wmv"].enabledPlugin != null)
					sTy = 'type="video/x-ms-wmv" ';
				else if(navigator.mimeTypes["audio/x-pn-realaudio-plugin"] &&  navigator.mimeTypes["audio/x-pn-realaudio-plugin"].enabledPlugin != null)
					sTy = 'type="audio/x-pn-realaudio-plugin" ';
			}	
	
			var sT = '<embed src="' + s + '" console="c1" id="nc1" name="nc1" nojava="true" ' + sTy + ' autostart="true" controls="ImageWindow,ControlPanel"  width="' + w + '" height="' + h + '" backgroundcolor="#0000ff" ></embed>';
			document.getElementById(o).innerHTML = sT;
				
			//if( document.getElementById(o2) )
			//	document.getElementById(o2).innerHTML =  '<img src="/i/mediagr1.gif" width="15" height="14" title="Video in Originalgrösse anzeigen" onclick="xVideo1gr(\''+v+'\')" >';
		}
		
		if( document.getElementById(ot1) )
			document.getElementById(ot1).innerHTML = tN;
			
		if( document.getElementById(ot2) )
			document.getElementById(ot2).innerHTML = tB;
	}
 
 	function xVideo1gr(v)
	{
		window.open("media1.php4?MediaVal="+v, "", "width=800,height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1");
 	}
	
	function xFlash1(o,o2,v,ot1,ot2,tN,tB)
	{
		if( document.getElementById(o) )
		{
			document.getElementById(o).innerHTML = "";
			var w = "225";
			var h =	"250";
			var s = decodeURIComponent(v);
			
			var sT = '<object data="' + s + '" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '" ><param name="movie" value="' + s + '"><param name="quality" value="high"><param name="bgcolor" value="#000000"></object>';
			document.getElementById(o).innerHTML = sT;
	    }		
		
		//if( document.getElementById(o2) )
		//	document.getElementById(o2).innerHTML = "";
			
		if( document.getElementById(ot1) )
			document.getElementById(ot1).innerHTML = tN;
			
		if( document.getElementById(ot2) )
			document.getElementById(ot2).innerHTML = tB;
	}
	
    
    
function xYouT1(pT,pV)
{
	var b__OpenAsynchron = true;
    var ob2 = new JS98d76fca0cde( 8 , null , true , "/events/HttpRequest.php" , "post" , b__OpenAsynchron , "v1=13&v2="+pV+"&v3="+pT+"&v4="+parseInt(document.forms[0].ID1.value) , 12000 );
    GetResponse____xYouT1( pT,pV , ob2,0  );
}
    
function GetResponse____xYouT1( pT,pV , ob2,ob2Counter )
{
    if( ob2!=null )
    {
		var s_Response = ob2.GetResponse();        
	    if( s_Response==null && ob2.IsAborted()==false )
    	{
    		ob2Counter++;
            if( ob2Counter>10 )
            	window.setTimeout( function(){ GetResponse____xYouT1( pT,pV , ob2,ob2Counter ); } , 200 );
            else
	    		window.setTimeout( function(){ GetResponse____xYouT1( pT,pV , ob2,ob2Counter ); } , 100 );
	    }
    	else
    		SetResponse____xYouT1( pT,pV , ob2,s_Response );
    }
}


function SetResponse____xYouT1( pT,pV , ob2,s_Response )
{
    if( s_Response!=null )
    {
    		var arrXgeoArray = new Array();
			
						
			s_Response = s_Response.replace (/^\s+/, '').replace (/\s+$/, ''); 			arrXgeoArray = JS04e019be2771( 2 , arrXgeoArray , s_Response );
            
            var i_re = 0;
        	var s_PART1 = null;
            for( var i1 = 0; i1 < arrXgeoArray.length; i1++ )
			{	
				if( typeof arrXgeoArray[i1]  ==  "object" )
				{
					if( !arrXgeoArray[i1].length )
					{
						var ob_Property1 = arrXgeoArray[i1];
						for( var property1 in ob_Property1 )
						{
							if( typeof ob_Property1[property1]  !=  "object" )
							{
																if( property1=="re" )
									i_re = parseInt(ob_Property1[property1]);
								else if( property1=="PART1" )
									s_PART1 = ob_Property1[property1];
							}
						}
					}
				}
			}
            
            if( i_re==1 )
        	{
            	if( s_PART1!=null )
                {
                	document.getElementById("tdMedia1").innerHTML = s_PART1;
                }
            }
            
    }
}    

    


