formsub=false;
function set(){
formsub=true;
if(document.getElementById("error")!=undefined){
document.getElementById("error").style.visibility="hidden";
if (top.document.getElementById("formid")!=undefined){top.document.getElementById("formid").height='560px';}
document.getElementById("error").innerHTML='';
}
hidehint();
return true;
};
var bustcachevar;
var loadedobjects;
var rootdomain;
var bustcacheparameter;
window.onbeforeunload=function(){
if(formsub){
//   console.log(getBrowserSize());
}
if(formsub){
return "Sie haben begonnen das Formular auszuf"+String.fromCharCode(252)+"llen. Wenn Sie fortfahren, werden die Felder die ausgef"+String.fromCharCode(252)+"llt wurden, NICHT gespeichert.";
}
};

var kranken1arr = new Array();
var krankenhaustarr = new Array();
var berufarr = new Array();
var derzeitigearr =  new Array();
var selbstbeteiligungarr = new Array();
var fVerwendungarr = new Array();
var fObjektartarr = new Array();
var fObjektortarr = new Array();


function unescapeHTML(unescaped_string) {

    var div = document.createElement('div'); div.innerHTML = unescaped_string; 
    return div.childNodes[0] ? div.childNodes[0].nodeValue : '-' ;

} 

function ajaxpage(_1,_2){
var _3=false;
if(window.XMLHttpRequest){
_3=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
try{
_3=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
_3=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
}
}
}else{
return false;
}
}
_3.onreadystatechange=function(){
loadpage(_3,_2);
};
if(bustcachevar){
bustcacheparameter=(_1.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime();
}
_3.open("GET",_1+bustcacheparameter,true);
_3.send(null);
return true;
};
function loadpage(_4,_5){
if(_4.readyState==4&&(_4.status==200||window.location.href.indexOf("http")==-1)){
// console.log("response:"+_4.responseText+":");
}
return true;
};
function loadobjs(){
if(!document.getElementById){
return;
}
for(i=0;i<arguments.length;i++){
var _6=arguments[i];
var _7="";
if(loadedobjects.indexOf(_6)==-1){
if(_6.indexOf(".js")!=-1){
_7=document.createElement("script");
_7.setAttribute("type","text/javascript");
_7.setAttribute("src",_6);
}else{
if(_6.indexOf(".css")!=-1){
_7=document.createElement("link");
_7.setAttribute("rel","stylesheet");
_7.setAttribute("type","text/css");
_7.setAttribute("href",_6);
}
}
}
if(_7!=""){
document.getElementsByTagName("head").item(0).appendChild(_7);
loadedobjects+=_6+" ";
}
}
return true;
};
function savefields(_8,btn_name){
bustcachevar=1;
loadedobjects="";
rootdomain="http://"+window.location.hostname;
bustcacheparameter="";
if (btn_name == undefined ){
  btn_name = '-';
}
if (document.getElementById("beruf")!=undefined){
if (document.getElementById("beruf").type=='text' || document.getElementById("beruf").type=='hidden'){
 var beruf = unescapeHTML(berufarr[document.getElementById("beruf").value]);
}else{
 var beruf = document.getElementById("beruf").options[document.getElementById("beruf").selectedIndex].text;
}
}else{var beruf ='';}
if(document.getElementById("krankenhaust")!= undefined){
if (document.getElementById("krankenhaust").type=='text' || document.getElementById("krankenhaust").type=='hidden'){
 var krankenhaust = unescapeHTML(krankenhaustarr[document.getElementById("krankenhaust").value]);
}else{
  var krankenhaust = document.getElementById("krankenhaust").options[document.getElementById("krankenhaust").selectedIndex].text;
}
}else{var krankenhaust ='';}
if (document.getElementById("kranken1")!=undefined){
if (document.getElementById("kranken1").type=='text' || document.getElementById("kranken1").type=='hidden'){
 var kranken1 = unescapeHTML(kranken1arr[document.getElementById("kranken1").value]);
}else{
  var kranken1 = document.getElementById("kranken1").options[document.getElementById("kranken1").selectedIndex].text;
}
}else{var kranken1 ='';}

if (document.getElementById("laufzeit")!=undefined){
if (document.getElementById("laufzeit").type=='text' || document.getElementById("laufzeit").type=='hidden'){
 var laufzeit = document.getElementById("laufzeit").value;
}else{
  var laufzeit = document.getElementById("laufzeit").options[document.getElementById("laufzeit").selectedIndex].text;
}
}else{ var laufzeit = '';}
if (document.getElementById('gender1')!=undefined){
if (document.getElementById('gender1').checked == true){
  var gender = 'Herr';
}else{
  var gender = 'Frau';
}
}else{
  var gender = '';
}
if(btn_name=='pkv1submit'/* || btn_name=='pkv2load'*/){
ajaxpage("redir.php?trck=trck"+"&form_type="+_8+
 "&btype="+btn_name+
 "&beruf="+beruf+
 "&krankenhaust="+krankenhaust+
 "&kranken="+kranken1+
 "&referrer="+ document.getElementById("referrer").value,"contentarea");
}else{
ajaxpage("redir.php?trck=trck"+"&form_type="+_8+
 "&btype="+btn_name+
 "&day="+document.getElementById("day").value+
 "&month="+document.getElementById("month").value+
 "&year="+document.getElementById("year").value+
 "&name="+document.getElementById("name").value+
 "&vorname="+document.getElementById("vorname").value+
 "&gender="+gender+
 "&telefon="+document.getElementById("telefon").value+
 "&strasse="+document.getElementById("strasse").value+
 "&plz="+document.getElementById("plz").value+
 "&ort="+document.getElementById("ort").value+
 "&beruf="+beruf+
 "&krankenhaust="+krankenhaust+
 "&kranken="+kranken1+
 "&laufzeit="+laufzeit+
 "&datenschutz="+document.getElementById("datenschutz").checked+
 "&referrer="+ document.getElementById("referrer").value,"contentarea");
}
//"&derzeitige="+document.getElementById("derzeitige").options[document.getElementById("derzeitige").selectedIndex].text+
return true;
};
function gender(id){
var g1 ='gender'+id;
var g2 = 'gender'+(3-id);
  if (document.getElementById(g1).checked==false ){
    document.getElementById(g2).checked=false;
  }else{
    if (document.getElementById(g1).checked==true ){
      document.getElementById(g2).checked=true;
    }
  }
}
function genderl(id){
var g1 ='gender'+id;
var g2 = 'gender'+(3-id);
  if (document.getElementById(g1).checked==false ){
    document.getElementById(g1).checked=true;
    document.getElementById(g2).checked=false;
  }else{
    if (document.getElementById(g1).checked==true ){
      document.getElementById(g1).checked=false;
      document.getElementById(g2).checked=true;
    }
  }
}
function myposx(who){
var L=0 ;
var pa=who;
while(pa.parentNode){
L+= ( pa.offsetLeft)? pa.offsetLeft: 0;
if(pa==document.body )break;
pa= pa.parentNode;
}
return L;
}
function myposy(who){
var  R=0;
var pa=who;
while(pa.parentNode){
R+= (pa.offsetTop)? pa.offsetTop: 0;
if(pa==document.body )break;
pa= pa.parentNode;
}
return R;
}

function showhint(id,myx,x1,y1,ftype){
  if (id=='day' || id=='month' || id=='year'){document.getElementById('htext').innerHTML='Ihr Geburtsdatum ist entscheidend f&uuml;r Ihre Beitr&auml;ge.';}
  if (id=='telefon'){document.getElementById('htext').innerHTML='Auf welcher Nummer m&ouml;chten Sie angerufen werden?';}
  if (id=='ort'){document.getElementById('htext').innerHTML='Anhand des Ortes k&ouml;nnen wir schneller einen Vertreter bestimmen.';}
  if (id=='laufzeit'){
    if (ftype=='beruf'){
      document.getElementById('htext').innerHTML='Hiermit k&ouml;nnen Sie bestimmen bis zu welchem Alter Sie Ihre Rente ausbezahlt bekommen.';
    }else{
      document.getElementById('htext').innerHTML='Um Ihre Rendite berechnen zu k&ouml;nnen, bedarf es einer Laufzeitangabe.';
    }
  }
  if (id=='rente'){
    if (ftype=='beruf'){
      document.getElementById('htext').innerHTML='Bestimmen Sie wie hoch Ihre monatliche Rente angelegt werden soll.';
    }else{
      document.getElementById('htext').innerHTML='Ihr monatlicher Beitrag beeinflusst grundlegend die Endsumme Ihrer Lebensversicherung.';
    }
  }
  if (id=='beruf'){document.getElementById('htext').innerHTML='Je nach Einkommensquelle, k&ouml;nnen Beitr&auml;ge unterschiedlich ausfallen.';}
  if (id=='email'){document.getElementById('htext').innerHTML='Diese ben&ouml;tigen wir, um Ihnen eine Best&auml;tigung f&uuml;r Ihren Antrag senden zu k&ouml;nnen.';}
  if (id=='sb'){document.getElementById('htext').innerHTML='Soviel betr&auml;gt im Ernstfall die von Ihnen zu zahlende Summe.';}
  if (id=='sonstiges'){document.getElementById('htext').innerHTML='Andere Rechtsschutzarten, Ihren Bed&uuml;rfnissen entsprechend.';}
  
// console.log(myposy(document.getElementById(id))-myposy(document.getElementById('hbase')));
 document.getElementById('hi1').style.marginTop = "38px";
if ((x1 >0) && ( y1>0)){  // if x,y specified
      document.getElementById('hint').style.marginTop = y1+'px';
if (myx >0) {
      document.getElementById('hi1').style.marginLeft = x1 + "px";
    }else{
      document.getElementById('hi1').style.marginLeft='80px'; 
    }      
}else{
  var myh =  myposy(document.getElementById(id))-myposy(document.getElementById('hbase'));
  myh = Math.round((myh-96)/2) ;
  
  if (myh<0){ myh=0;}
  // console.log(myh );
  
  //   document.getElementById('htext').innerHTML=id;
//   console.log(myx)
    document.getElementById('hi1').style.marginTop = "38px";
    if (myx >0) {
      document.getElementById('hi1').style.marginLeft = myx.toString() + "px";
    }else{
      document.getElementById('hi1').style.marginLeft='80px'; 
    }
    document.getElementById('hint').style.marginTop = myh.toString()+'px';
  // console.log("'"+myh+'px'+"'" );
}
  
  document.getElementById('hint').style.visibility="visible";
}
function hidehint(id){
  document.getElementById('htext').innerHTML='';
  document.getElementById('hint').style.visibility="hidden";
}

function select_innerHTML(objeto,innerHTML){
/******
* select_innerHTML - corrige o bug do InnerHTML em selects no IE
* Veja o problema em: http://support.microsoft.com/default.aspx?scid=kb;en-us;276228
* Versão: 2.1 - 04/09/2007
* Autor: Micox - Náiron José C. Guimarães - micoxjcg@yahoo.com.br
* @objeto(tipo HTMLobject): o select a ser alterado
* @innerHTML(tipo string): o novo valor do innerHTML
*******/
    objeto.innerHTML = ""
    var selTemp = document.createElement("micoxselect")
    var opt;
    selTemp.id="micoxselect1"
    document.body.appendChild(selTemp)
    selTemp = document.getElementById("micoxselect1")
    selTemp.style.display="none"
    if(innerHTML.indexOf("<option")<0){//se não é option eu converto//.toLowerCase()
        innerHTML = "<option>" + innerHTML + "</option>"
    }
    innerHTML = innerHTML.replace(/<option/g,"<span").replace(/<\/option/g,"</span")//toLowerCase().
    selTemp.innerHTML = innerHTML
      
    
    for(var i=0;i<selTemp.childNodes.length;i++){
  var spantemp = selTemp.childNodes[i];
  
        if(spantemp.tagName){     
            opt = document.createElement("OPTION")
    
   if(document.all){ //IE
    objeto.add(opt)
   }else{
    objeto.appendChild(opt)
   }       
    
   //getting attributes
   for(var j=0; j<spantemp.attributes.length ; j++){
    var attrName = spantemp.attributes[j].nodeName;
    var attrVal = spantemp.attributes[j].nodeValue;
    if(attrVal){
     try{
      opt.setAttribute(attrName,attrVal);
      opt.setAttributeNode(spantemp.attributes[j].cloneNode(true));
     }catch(e){}
    }
   }
   //getting styles
   if(spantemp.style){
    for(var y in spantemp.style){
     try{opt.style[y] = spantemp.style[y];}catch(e){}
    }
   }
   //value and text
   opt.value = spantemp.getAttribute("value")
   opt.text = spantemp.innerHTML
   //IE
   opt.selected = spantemp.getAttribute('selected');
   opt.className = spantemp.className;
  } 
 }    
 document.body.removeChild(selTemp)
 selTemp = null
}

kranken1arr[1] = "Mehrbettzimmer ohne Chefarzt";
kranken1arr[2] = "2-Bettzimmer mit Chefarzt";
kranken1arr[3] = "1-Bettzimmer mit Chefarzt";
krankenhaustarr[1] = "kein Tagegeld";
krankenhaustarr[2] = "niedrig (50 Eur/Tag)";
krankenhaustarr[3] = "mittel (100 Eur/Tag";
krankenhaustarr[4] = "hoch (200 Eur/Tag)";
berufarr[6] = "Angestellter &uuml;ber 48.600";
berufarr[4] = "Beamter";
berufarr[11] = "Freiberuflich";
berufarr[3] = "Selbst&auml;ndiger";
berufarr[12] = "Student";
derzeitigearr[1] = "Keine";
derzeitigearr[2] = "Gesetzlich";
derzeitigearr[3] = "Privat";

function fill(){

if( document.getElementById('derzeitige')!= undefined && document.getElementById('derzeitige').type!='hidden' ){
  select_innerHTML(document.getElementById('derzeitige'),'<option value=1>Privat</option>'+
'<option value=2>Gesetzlich</option>'+
'<option value=3>Keine</option>');
}
if( document.getElementById('kranken1')!= undefined && document.getElementById('kranken1').type!='hidden' ){
  select_innerHTML(document.getElementById('kranken1'),'<option value=3>1-Bettzimmer mit Chefarzt</option>'+
'<option value=2>2-Bettzimmer mit Chefarzt</option>'+
'<option value=1>Mehrbettzimmer ohne Chefarzt</option>');
}

// derzeitige

if (document.getElementById('krankenhaust') != undefined && document.getElementById('krankenhaust').type!='hidden'){
  select_innerHTML(document.getElementById('krankenhaust'),
  '<option value="1">kein Tagegeld</option>'+   //krankentagegeldab
'<option value="2">niedrig (50 Eur/Tag)</option>'+
'<option value="3">mittel (100 Eur/Tag)</option>'+
'<option value="4">hoch (200 Eur/Tag)</option>');

}

if (document.getElementById('beruf') != undefined && document.getElementById('beruf').type!='hidden'){
select_innerHTML( document.getElementById('beruf'),
'<option value="6">Angestellter &uuml;ber 48.600</option>'+
'<option value="4">Beamter</option>'+
'<option value="11">Freiberuflich</option>'+
'<option value="3" selected="selected">Selbst&auml;ndiger</option>'+
'<option value="12">Student</option>');
}

if ( document.getElementById('selbstbeteiligung')!= undefined && document.getElementById('selbstbeteiligung').type!='hidden'){
  select_innerHTML(document.getElementById('selbstbeteiligung'),
  '<option value="1">beste Selbstbeteiligung</option>'+
'<option value="2">ohne Selbstbeteiligung</option>'+
'<option value="3">1 - 150 Euro</option>'+
'<option value="4">151 - 300 Euro</option>'+
'<option value="5">301 - 500 Euro</option>'+
'<option value="6">501 - 1000 Euro</option>'+
'<option value="7">1001 - 1500 Euro</option>'+
'<option value="8">&uuml;ber 1500 Euro</option>');
selbstbeteiligungarr[1] = "beste Selbstbeteiligung";
selbstbeteiligungarr[2] = "ohne Selbstbeteiligung";
selbstbeteiligungarr[3] = "1 - 150 Euro";
selbstbeteiligungarr[4] = "151 - 300 Euro";
selbstbeteiligungarr[5] = "301 - 500 Euro";
selbstbeteiligungarr[6] = "501 - 1000 Euro";
selbstbeteiligungarr[7] = "1001 - 1500 Euro";
selbstbeteiligungarr[8] = "&uuml;ber 1500 Euro";
}

if ( document.getElementById('krankentagegeldhohe')!= undefined && document.getElementById('krankentagegeldhohe').type!='hidden'){
  select_innerHTML(document.getElementById('krankentagegeldhohe'),
  '<option value="1">0,- Euro pro Tag</option>'+
'<option value="2">10,- Euro pro Tag</option>'+
'<option value="3">20,- Euro pro Tag</option>'+
'<option value="4">30,- Euro pro Tag</option>'+
'<option value="5">40,- Euro pro Tag</option>'+
'<option value="6">50,- Euro pro Tag</option>'+
'<option value="7">60,- Euro pro Tag</option>'+
'<option value="8">70,- Euro pro Tag</option>'+
'<option value="9">80,- Euro pro Tag</option>'+
'<option value="10">90,- Euro pro Tag</option>'+
'<option value="11">100,- Euro pro Tag</option>'+
'<option value="12">110,- Euro pro Tag</option>'+
'<option value="13">120,- Euro pro Tag</option>'+
'<option value="14">130,- Euro pro Tag</option>'+
'<option value="15">140,- Euro pro Tag</option>'+
'<option value="16">150,- Euro pro Tag</option>'+
'<option value="17">160,- Euro pro Tag</option>'+
'<option value="18">170,- Euro pro Tag</option>'+
'<option value="19">180,- Euro pro Tag</option>'+
'<option value="20">190,- Euro pro Tag</option>'+
'<option value="21">200,- Euro pro Tag</option>'+
'<option value="22">210,- Euro pro Tag</option>'+
'<option value="23">220,- Euro pro Tag</option>'+
'<option value="24">230,- Euro pro Tag</option>'+
'<option value="25">240,- Euro pro Tag</option>'+
'<option value="26">250,- Euro pro Tag</option>'+
'<option value="27">260,- Euro pro Tag</option>'+
'<option value="28">270,- Euro pro Tag</option>'+
'<option value="29">280,- Euro pro Tag</option>'+
'<option value="30">290,- Euro pro Tag</option>'+
'<option value="31">300,- Euro pro Tag</option>'+
'<option value="32">350,- Euro pro Tag</option>'+
'<option value="33">400,- Euro pro Tag</option>'+
'<option value="34">450,- Euro pro Tag</option>'+
'<option value="35">500,- Euro pro Tag</option>');
}
if (document.getElementById('unterbringung') != undefined && document.getElementById('unterbringung').type!='hidden'){
  select_innerHTML(document.getElementById('unterbringung'),
  '<option value="1">kein Tagegeld</option>'+
'<option value="2">10,- Euro pro Tag</option>'+
'<option value="3">20,- Euro pro Tag</option>'+
'<option value="4">30,- Euro pro Tag</option>'+
'<option value="5">40,- Euro pro Tag</option>'+
'<option value="6">50,- Euro pro Tag</option>'+
'<option value="7">60,- Euro pro Tag</option>'+
'<option value="8">70,- Euro pro Tag</option>'+
'<option value="9">80,- Euro pro Tag</option>'+
'<option value="10">90,- Euro pro Tag</option>'+
'<option value="11">100,- Euro pro Tag</option>'+
'<option value="12">110,- Euro pro Tag</option>'+
'<option value="13">120,- Euro pro Tag</option>'+
'<option value="14">130,- Euro pro Tag</option>'+
'<option value="15">140,- Euro pro Tag</option>'+
'<option value="16">150,- Euro pro Tag</option>'+
'<option value="17">160,- Euro pro Tag</option>'+
'<option value="18">170,- Euro pro Tag</option>'+
'<option value="19">180,- Euro pro Tag</option>'+
'<option value="20">190,- Euro pro Tag</option>'+
'<option value="21">200,- Euro pro Tag</option>'+
'<option value="22">210,- Euro pro Tag</option>'+
'<option value="23">220,- Euro pro Tag</option>'+
'<option value="24">230,- Euro pro Tag</option>'+
'<option value="25">240,- Euro pro Tag</option>'+
'<option value="26">250,- Euro pro Tag</option>'+
'<option value="27">260,- Euro pro Tag</option>'+
'<option value="28">270,- Euro pro Tag</option>'+
'<option value="29">280,- Euro pro Tag</option>'+
'<option value="30">290,- Euro pro Tag</option>'+
'<option value="31">300,- Euro pro Tag</option>');
}

if (document.getElementById('sb') != undefined && document.getElementById('sb').type!='hidden'){
  select_innerHTML(document.getElementById('sb'),
'<option value="0">keine</option>'+
'<option value="100">bis 100 EUR</option>'+
'<option value="150">bis 150 EUR</option>'+
'<option value="200">bis 200 EUR</option>'+
'<option value="250">bis 250 EUR</option>'+
'<option value="500">bis 500 EUR</option>'
);
}


if (document.getElementById('zahlweise') != undefined && document.getElementById('zahlweise').type!='hidden'){
  select_innerHTML(document.getElementById('zahlweise'),
'<option value="1">j&auml;hrlich</option>'+
'<option value="2">halbj&auml;hrlich</option>'+
'<option value="4">viertelj&auml;hrlich</option>'+
'<option value="12">monatlich</option>'
);
}
if (document.getElementById('laufzeit1') != undefined && document.getElementById('laufzeit1').type!='hidden'){
  select_innerHTML(document.getElementById('laufzeit1'),
'<option value="60">60 Jahre</option>'+
'<option value="61">61 Jahre</option>'+
'<option value="62">62 Jahre</option>'+
'<option value="63">63 Jahre</option>'+
'<option value="64">64 Jahre</option>'+
'<option value="65">65 Jahre</option>'
);
}
if (document.getElementById('rente1') != undefined && document.getElementById('rente1').type!='hidden'){
  select_innerHTML(document.getElementById('rente1'),
'<option value="100">100 Euro</option>'+
'<option value="200">200 Euro</option>'+
'<option value="300">300 Euro</option>'+
'<option value="400">400 Euro</option>'+
'<option value="500">500 Euro</option>'+
'<option value="600">600 Euro</option>'+
'<option value="700">700 Euro</option>'+
'<option value="800">800 Euro</option>'+
'<option value="900">900 Euro</option>'+
'<option value="1000">1000 Euro</option>'+
'<option value="1250">1250 Euro</option>'+
'<option value="1500">1500 Euro</option>'+
'<option value="1750">1750 Euro</option>'+
'<option value="2000">2000 Euro</option>'+
'<option value="2250">2250 Euro</option>'+
'<option value="2500">2500 Euro</option>'+
'<option value="2750">2750 Euro</option>'+
'<option value="3000">3000 Euro</option>'+
'<option value="4000">4000 Euro</option>'+
'<option value="5000">5000 Euro</option>'
);
}
if (document.getElementById('fVerwendung') != undefined && document.getElementById('fVerwendung').type!='hidden'){
  select_innerHTML(document.getElementById('fVerwendung'),
'<option value="1">Neubau finanzieren</option>'+
'<option value="2">Immobilie kaufen</option>'+
'<option value="3">Immobilie modernisieren</option>'+
'<option value="4">Darlehen umschulden</option>'
);
}

fVerwendungarr[1] = "Neubau finanzieren";
fVerwendungarr[2] = "Immobilie kaufen";
fVerwendungarr[3] = "Immobilie modernisieren";
fVerwendungarr[4] = "Darlehen umschulden";

if (document.getElementById('fObjektart') != undefined && document.getElementById('fObjektart').type!='hidden'){
  select_innerHTML(document.getElementById('fObjektart'),
'<option value="1">Einfamilienhaus</option>'+
'<option value="2">Eigentumswohnung</option>'+
'<option value="3">Mehrfamilienhaus</option>'+
'<option value="4">Grundst&uuml;ckserwerb</option>'
);
}
fObjektartarr[1] = "Einfamilienhaus";
fObjektartarr[2] = "Eigentumswohnung";
fObjektartarr[3] = "Mehrfamilienhaus";
fObjektartarr[4] = "Grundst&uuml;ckserwerb";

if (document.getElementById('fObjektort') != undefined && document.getElementById('fObjektort').type!='hidden'){
  select_innerHTML(document.getElementById('fObjektort'),
'<option value="1">Deutschland</option>'+
'<option value="2">Spanien</option>'+
'<option value="3">&Ouml;sterreich</option>'+
'<option value="4">Belgien</option>'+
'<option value="5">Niederlande</option>'+
'<option value="6">Luxemburg</option>'+
'<option value="7">Frankreich</option>'
);
}
fObjektortarr[1] = "Deutschland";
fObjektortarr[2] = "Spanien";
fObjektortarr[3] = "&Ouml;sterreich";
fObjektortarr[4] = "Belgien";
fObjektortarr[5] = "Niederlande";
fObjektortarr[6] = "Luxemburg";
fObjektortarr[7] = "Frankreich";

}

function MM_preloadImages(){
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(){
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_findObj(n,d){
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 MM_swapImage(){
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];
}
}
};
function MM_openBrWindow(_9,_a,_b){
window.open(_9,_a,_b);
};
function MM_jumpMenu(_c,_d,_e){
eval(_c+".location='"+_d.options[_d.selectedIndex].value+"'");
if(_e){
_d.selectedIndex=0;
}
};
function MM_findObj(n,d){
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 MM_jumpMenuGo(_f,_10,_11){
var _12=MM_findObj(_f);
if(_12){
MM_jumpMenu(_10,_12,_11);
}
};
function MM_callJS(_13){
return eval(_13);
};
function MM_goToURL(){
var i,_14=MM_goToURL.arguments;
document.MM_returnValue=false;
for(i=0;i<(_14.length-1);i+=2){
eval(_14[i]+".location='"+_14[i+1]+"'");
}
};
function MM_changeProp(_15,x,_16,_17){
var obj=MM_findObj(_15);
if(obj&&(_16.indexOf("style.")==-1||obj.style)){
if(_17==true||_17==false){
eval("obj."+_16+"="+_17);
}else{
eval("obj."+_16+"='"+_17+"'");
}
}
};
function toggleLayer(_18){
if(document.getElementById){
var _19=document.getElementById(_18).style;
_19.display=_19.display?"":"block";
}else{
if(document.all){
var _19=document.all[_18].style;
_19.display=_19.display?"":"block";
}else{
if(document.layers){
var _19=document.layers[_18].style;
_19.display=_19.display?"":"block";
}
}
}
};
var ie=((document.all)&&(!document.layers))?true:false;
var ns=((document.layers)&&(!document.getElementById))?true:false;
var moz=((document.getElementById)&&(!document.all))?true:false;
function show(div){
if(ie){
document.all[div].style.display="block";
}
if(ns){
document.layers[div].display="block";
}
if(moz){
document.getElementById(div).style.display="block";
}
};
function hide(div){
if(ie){
(document.all[div].style.display="none");
}
if(ns){
(document.layers[div].display="none");
}
if(moz){
(document.getElementById(div).style.display="none");
}
};
// window.onload=onload;
function new_show(abc){
var d=document.getElementById(abc);
for(var i=1;i<=30;i++){
if(document.getElementById("div"+i)){
document.getElementById("div"+i).style.display="none";
}
}
if(d){
d.style.display="block";
}
};
function Bookmark(_1a){
url="http://www.versicherungvergleich.info";
if(window.sidebar){
window.sidebar.addPanel(_1a,url,"");
}else{
if(window.external){
window.external.AddFavorite(url,_1a);
}else{
if(window.opera){
return true;
}
}
}
};
function isPLZ(_1b){
var _1c=/^[0-9]+$/;
if(_1b.value.match(_1c)){
return true;
}else{
return false;
}
};
function isNumeric(_1d){
elem=document.getElementById(_1d);
var _1e=/^[0-9 -.]+$/;
if(elem.value.match(_1e)){
return true;
}else{
return false;
}
};
function isNumericTel(_1d){
elem=document.getElementById(_1d);
var _1e=/^[0-9 -./]+$/;
if(elem.value.match(_1e)){
return true;
}else{
return false;
}
};

function containsNubmer(str){
var str1=document.getElementById(str).value;
var ret1 = true;
for(var i2=0;i2<str1.length;i2++){
if(!(str1.charAt(i2)>=0&&str1.charAt(i2)<=9&&str1.charAt(i2)!=" ")){
// alert(str1);
//alert('|'+str1.charAt(i2)+'|');
ret1 = false;
}
}
return ret1;
};
function isString(_1f){
var _20=/^[a-zA-ZÃ€-Ã¿. -]+$/;
if(_1f.value.match(_20)){
return true;
}else{
return false;
}
};
function trim(str,_21){
return ltrim(rtrim(str,_21),_21);
};
function ltrim(str,_22){
_22=_22||"\\s";
return str.replace(new RegExp("^["+_22+"]+","g"),"");
};
function rtrim(str,_23){
_23=_23||"\\s";
return str.replace(new RegExp("["+_23+"]+$","g"),"");
};
function multichar(_24){
var _25=document.getElementById(_24).value;
var _24=_25.length;
var _26=1;
var _27="";
var _28="";
var _29="";
for(i1=0;i1<_25.length;i1++){
_28=_25.charAt(i1);
if(_29==_28&&_29!=" "&&_29!="0"&&_29!="1"&&_29!="2"&&_29!="3"&&_29!="4"&&_29!="5"&&_29!="6"&&_29!="7"&&_29!="8"&&_29!="9"){
_27=_27+_28;
_26++;
}else{
if(_26>=3){
return false;
}
_27=_28;
_26=1;
}
if(_26>=3){
return false;
}
_29=_28;
}
return true;
};
function getVar(_2a){
get_string=document.location.search;
return_value="";
do{
name_index=get_string.indexOf(_2a+"=");
if(name_index!=-1){
get_string=get_string.substr(name_index+_2a.length+1,get_string.length-name_index);
end_of_value=get_string.indexOf("&");
if(end_of_value!=-1){
value=get_string.substr(0,end_of_value);
}else{
value=get_string;
}
if(return_value==""||value==""){
return_value+=value;
}else{
return_value+=", "+value;
}
}
}while(name_index!=-1);
space=return_value.indexOf("+");
while(space!=-1){
return_value=return_value.substr(0,space)+" "+return_value.substr(space+1,return_value.length);
space=return_value.indexOf("+");
}
return (return_value);
};
function createCookie(_2b,_2c,_2d){
if(_2d){
var _2e=new Date();
_2e.setTime(_2e.getTime()+(_2d*24*60*60*1000));
var _2f="; expires="+_2e.toGMTString();
}else{
var _2f="";
}
document.cookie=_2b+"="+_2c+_2f+"; path=/";
};
function readCookie(_30){
var _31=_30+"=";
var ca=document.cookie.split(";");
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==" "){
c=c.substring(1,c.length);
}
if(c.indexOf(_31)==0){
return c.substring(_31.length,c.length);
}
}
return null;
};
function eraseCookie(_32){
createCookie(_32,"",-1);
};

function getBrowserSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return 'Width= ' + myWidth + '; Height= ' + myHeight +'; ScrollHoriz= ' + scrOfX + '; ScrollVert= ' + scrOfY;
}



function page(_33){
var _34=readCookie("pkv_page");
if(_34==null||_34==""||_33==_34){
createCookie("pkv_page",_33);
}else{
eraseCookie("pkv_page");
createCookie("pkv_page",_34+","+_33);
}
};
function thankyou(){
var _35=readCookie("pkv_page");
if(_35.search("pkv")!=-1){
document.getElementById("pkv").style.display="none";
}
if(_35.search("beruf")!=-1){
document.getElementById("beruf").style.display="none";
}
if(_35.search("lebens")!=-1){
document.getElementById("lebens").style.display="none";
}
if(_35.search("renten")!=-1){
document.getElementById("renten").style.display="none";
}
};
function manage_cookie(_36,_37,_38){
var _39=readCookie(_36);
if(document.getElementById(_37)!=null){
if(_39==null){
if(document.getElementById(_37).type=="text"){
if(document.getElementById(_37).value!=""){
createCookie(_36,document.getElementById(_37).value,10950);
}else{
}
}else{
if(document.getElementById(_37).type.search("select")!=-1){
if(document.getElementById(_37).selectedIndex!=0){
if(_37=="beruf"){
if (document.getElementById(_37).selectedIndex != -1){
createCookie(_36+"str",document.getElementById(_37).options[document.getElementById(_37).selectedIndex].text,10950);
}
createCookie(_36,document.getElementById(_37).value,10950);
}else{
createCookie(_36,document.getElementById(_37).value,10950);
}
}
}
}
}else{
if(document.getElementById(_37)!=undefined){
if(document.getElementById(_37).type=="text"){
if(_37=="beruf"){
if(document.getElementById(_37).value==""){
if(_38!="save"){
document.getElementById(_37).value=readCookie(_36+"str");
}
}else{
if(_38=="save"){
createCookie(_36,document.getElementById(_37).value,10950);
}
}
}else{
if(document.getElementById(_37).value==""){
if(_38!="save"){
document.getElementById(_37).value=_39;
}
}else{
if(_38=="save"){
createCookie(_36,document.getElementById(_37).value,10950);
}
}
}
}else{
if(document.getElementById(_37).type.search("select")!=-1){
// if(_37=="beruf"){
// if(document.getElementById(_37).selectedIndex==0){
// if(_38!="save"){
// document.getElementById(_37).selectedIndex=_39;
// }
// }else{
// if(_38=="save"){
// if(document.getElementById(_37).selectedIndex==-1){
// eraseCookie(_36);
// eraseCookie(_36+"str");
// }else{
// createCookie(_36+"str",document.getElementById(_37).options[document.getElementById(_37).selectedIndex].text,10950);
// createCookie(_36,document.getElementById(_37).value,10950);
// }
// }
// }
// }else{
// if(document.getElementById(_37).selectedIndex==0){
// if(_38!="save"){
// document.getElementById(_37).value=_39;
// }
// }else{
// if(_38=="save"){
// createCookie(_36,document.getElementById(_37).value,10950);
// }
// }
// }
}
}
}
}
}
};
function autofill_form(_3a){
var _3b=new Date();
var _3c=_3b.getMonth()+1;
var day=_3b.getDate();
var _3d=_3b.getFullYear();
var _3e=_3b.getHours();
var _3f=_3b.getMinutes();
var _40=_3b.getSeconds();
if(_3f<10){
_3f="0"+_3f;
}
if(_40<10){
_40="0"+_40;
}
createCookie("cookie_date_used",_3d+"-"+_3c+"-"+day+" "+_3e+":"+_3f+":"+_40,10950);
if(_3a=="save"){
createCookie("cookie_date_saved",_3d+"-"+_3c+"-"+day+" "+_3e+":"+_3f+":"+_40,10950);
}
if(readCookie("cookie_date_created")==null){
createCookie("cookie_date_created",_3d+"-"+_3c+"-"+day+" "+_3e+":"+_3f+":"+_40,10950);
}
manage_cookie("cookie_last_name","name",_3a);
manage_cookie("cookie_first_name","vorname",_3a);
manage_cookie("cookie_phone","telefon",_3a);
// manage_cookie("cookie_phone2","telefon2",_3a);
manage_cookie("cookie-address1","strasse",_3a);
manage_cookie("cookie_zip","plz",_3a);
manage_cookie("cookie_city","ort",_3a);
// manage_cookie("cookie_email","email",_3a);
manage_cookie("cookie_bday","day",_3a);
manage_cookie("cookie_bmonth","month",_3a);
manage_cookie("cookie_byear","year",_3a);
manage_cookie("cookie_laufzeit","laufzeit",_3a);
manage_cookie("cookie_fEK","fEK",_3a);
manage_cookie("cookie_hausnummer","hausnummer",_3a);

if (document.getElementById("year")!=undefined){
if(document.getElementById("year").value == ''){
document.getElementById("year").value='19';
}
}

manage_cookie("cookieproffession","beruf",_3a);
// manage_cookie("cookierente","rente",_3a);
// manage_cookie("cookielaufzeit","laufzeit",_3a);
};
function bday(_41){
bdate=document.getElementById(_41);
if(bdate.value=="tt.mm.jjjj"){
bdate.value="";
}else{
}
};
function bdaychange(_42){
fieldvalue=document.getElementById(_42);
if(fieldvalue.value.toString()!==""){
if(fieldvalue.value.length===2&&fieldvalue.value.charAt(1).toString()!=="."){
document.getElementById(_42).value=fieldvalue.value+".";
}
if(fieldvalue.value.length===5&&fieldvalue.value.charAt(4).toString()!=="."){
document.getElementById(_42).value=fieldvalue.value+".";
}
}
};
function validate_form(_43,cansubmit,btn_name){
var defborder1="#000000";
var defborder="#75736E";
var errborder="#CE5301";
var errtextcolor="#CE5301";
var oktextcolor="#000000";

if(btn_name == 'pkv1submit' || btn_name == 'submit' ){
 autofill_form("save");
}else{
// autofill_form("");
}
savefields(_43,btn_name);
valid=true;
if (btn_name == 'pkv1submit'){ // pkv-part1
}else{
var _44="";
var _45="";
var _46="";
var _47="";
var _48="";
var _49="";
var _4a="";
var _4b="";
var _4c="";
var _4d="";
var _4e="";
if (top.document.getElementById("formid")!=undefined){
top.document.getElementById("formid").height='583px';}
document.getElementById("error").style.visibility="hidden";
document.getElementById("error").innerHTML ="";
var _4f=document.getElementById("datenschutz");
_4f.style.borderColor=defborder;
_4f.style.borderColor=defborder;
_4f.style.borderWidth=1;
document.getElementById("dtsc").style.color=defborder1;
document.getElementById("c7").style.color=defborder1;
var gen1=document.getElementById("gender1");
var gen2=document.getElementById("gender2");
if ( (gen1.checked==true) || (gen2.checked==true) ){
}else{
valid=false;
_4d="Anrede";

}
if(_4f.checked==false){
_4d="Datenschutz";
valid=false;
var _x1=document.getElementById("datenschutz");
document.getElementById("dtsc").style.color=errborder;
document.getElementById("c7").style.color=errborder;
// document.getElementById("dtsc").style.borderWidth=2;
// document.getElementById("c7").color='red';
}
if(_43==11){
var _x2=document.getElementById("beruf");
_x2.style.borderColor=defborder;
_x2.style.borderWidth=1;
var _50=_x2.value;
if(_50==0){
_4c="Beruf";
valid=false;
_x2.style.borderColor=errborder;
_x2.style.borderWidth=2;
}
}
if(_43==22){
var _500=document.getElementById("fEK").value;
if (_500.length==0 || !containsNubmer("fEK") ){ 
valid=false;
document.getElementById("fEK").style.borderColor=errborder;
document.getElementById("fEK").style.borderWidth=1;
document.getElementById("c66").style.color=errtextcolor;
}else{
document.getElementById("fEK").style.borderColor=defborder;
document.getElementById("fEK").style.borderWidth=1;
document.getElementById("c66").style.color=oktextcolor;
}
var _501=document.getElementById("hausnummer").value;
if (_501.length==0){
valid=false;
document.getElementById("hausnummer").style.borderColor=errborder;
document.getElementById("hausnummer").style.borderWidth=1;
document.getElementById("c44").style.color=errtextcolor;
}else{
document.getElementById("c44").style.color=oktextcolor;
document.getElementById("hausnummer").style.borderColor=defborder;
document.getElementById("hausnummer").style.borderWidth=1;
}

}
if(_43==1){
var _x2=document.getElementById("beruf");
_x2.style.borderColor=defborder;
_x2.style.borderWidth=1;
var _50=_x2.value;
if(_50==0){
_4c="Beruf";
valid=false;
_x2.style.borderColor=errborder;
_x2.style.borderWidth=2;
}
}
if(_43==2){
var _x2=document.getElementById("beruf");
_x2.style.borderColor=defborder;
_x2.style.borderWidth=1;
var _50=_x2.value;
if(_50==0){
_4c="T&auml;tigkeit";
valid=false;
_x2.style.borderColor=errborder;
_x2.style.borderWidth=2;
}
}
if(_43==3){
var _50=document.getElementById("laufzeit").value;
if(_50==0){//||containsNubmer("laufzeit")==false
_4c="Versicherungslaufzeit";
valid=false;
document.getElementById("laufzeit").style.borderColor=errborder;
document.getElementById("laufzeit").style.borderWidth=1;
document.getElementById("c8").style.color=errtextcolor;
}else{
document.getElementById("laufzeit").style.borderColor=defborder;
document.getElementById("laufzeit").style.borderWidth=1;
document.getElementById("c8").style.color=oktextcolor;
}
}

var _51=document.getElementById("ort").value;
var _52=document.getElementById("plz").value;
var _53=document.getElementById("strasse").value;

if(_51.length==0||multichar("ort")==false||containsNubmer("ort")){
_4b="Ort";
valid=false;
document.getElementById("ort").style.borderColor=errborder;
document.getElementById("ort").style.borderWidth=1;
document.getElementById("c55").style.color=errtextcolor;
}else{
document.getElementById("c55").style.color=oktextcolor;
document.getElementById("ort").style.borderColor=defborder;
document.getElementById("ort").style.borderWidth=1;
}
if(_52.length!=5||isPLZ(document.getElementById("plz"))==false){
_4a="PLZ";
valid=false;
document.getElementById("plz").style.borderColor=errborder;
document.getElementById("plz").style.borderWidth=1;
document.getElementById("c5").style.color=errtextcolor;
}else{
document.getElementById("c5").style.color=oktextcolor;
document.getElementById("plz").style.borderColor=defborder;
document.getElementById("plz").style.borderWidth=1;
}
if(_53.length==0||multichar("strasse")==false){
valid=false;
_49="Stra&szlig;e";
document.getElementById("strasse").style.borderColor=errborder;
document.getElementById("strasse").style.borderWidth=1;
document.getElementById("c4").style.color=errtextcolor;
}else{
document.getElementById("c4").style.color=oktextcolor;
document.getElementById("strasse").style.borderColor=defborder;
document.getElementById("strasse").style.borderWidth=1;
}
var dayok=true;
var monthok=true;
var yearok=true;
if(document.getElementById("day")!=undefined){
var _54=document.getElementById("day").value;
if(isNumeric("day")==false||_54.length<1||_54<1||_54>31){
valid=false;
_4e="Geburtsdatum";
document.getElementById("day").style.borderColor=errborder;
document.getElementById("day").style.borderWidth=1;
dayok=false;
}else{
document.getElementById("day").style.borderColor=defborder;
document.getElementById("day").style.borderWidth=1;
}
}
if(document.getElementById("month")!=undefined){
var _54=document.getElementById("month").value;
if(isNumeric("month")==false||_54.length<1||_54<1||_54>12){
valid=false;
_4e="Geburtsdatum";
document.getElementById("month").style.borderColor=errborder;
document.getElementById("month").style.borderWidth=1;
monthok=false;
}else{
document.getElementById("month").style.borderColor=defborder;
document.getElementById("month").style.borderWidth=1;
}
}
if(document.getElementById("year")!=undefined){
var _year=document.getElementById("year");
var _54=document.getElementById("year").value;
if(_year.length<2){
document.getElementById("year").value='19';
}
var d=new Date();
var _55a=d.getFullYear()-60;
var _55=d.getFullYear()-17;
if(isNumeric("year")==false||_54.length<4||_54<_55a||_54>_55){
valid=false;
_4e="Geburtsdatum";
document.getElementById("year").style.borderColor=errborder;
document.getElementById("year").style.borderWidth=1;
yearok=false;
}else{
document.getElementById("year").style.borderColor=defborder;
document.getElementById("year").style.borderWidth=1;
}
}
if ( dayok==true && monthok==true && yearok==true ){
document.getElementById("c3").style.color=oktextcolor;
}else{
document.getElementById("c3").style.color=errtextcolor;
}
var _56=document.getElementById("telefon").value;
if(isNumericTel("telefon")==false||_56.length<8){
valid=false;
_48="Telefon";
document.getElementById("telefon").style.borderColor=errborder;
document.getElementById("telefon").style.borderWidth=1;
document.getElementById("c6").style.color=errtextcolor;
}else{
document.getElementById("c6").style.color=oktextcolor;
document.getElementById("telefon").style.borderColor=defborder;
document.getElementById("telefon").style.borderWidth=1;
}
var _57=document.getElementById("name").value;
if(_57.length==0||multichar("name")==false||containsNubmer("name")){
valid=false;
_46="Nachname";
document.getElementById("name").style.borderColor=errborder;
document.getElementById("name").style.borderWidth=1;
document.getElementById("c2").style.color=errtextcolor;
}else{
document.getElementById("name").style.borderColor=defborder;
document.getElementById("name").style.borderWidth=1;
document.getElementById("c2").style.color=oktextcolor;
}
var _58=document.getElementById("vorname").value;
var _59=0;
if(_58.length==0||multichar("vorname")==false||containsNubmer("vorname")){
valid=false;
_45="Vorname";
document.getElementById("vorname").style.borderColor=errborder;
document.getElementById("vorname").style.borderWidth=1;
document.getElementById("c22").style.color=errtextcolor;
}else{
document.getElementById("vorname").style.borderColor=defborder;
document.getElementById("vorname").style.borderWidth=1;
document.getElementById("c22").style.color=oktextcolor;
}
if(valid==true){
formsub=false;

if (cansubmit!=1){
document.getElementById("form1").submit();
}
}else{
var _5a="";
var _5b=true;
_5a=_44;
if(_45!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_45;
}
if(_46!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_46;
}
if(_48!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_48;
}
if(_49!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_49;
}
if(_4a!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_4a;
}
if(_4b!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_4b;
}
if(_4c!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_4c;
}
if(_4e!=""){
if(_5b==false){
_5a=_5a+", ";
}else{
_5b=false;
}
_5a=_5a+_4e;
}
if(_4d!=""){
if(_45==""&&_46==""&&_48==""&&_49==""&&_4a==""&&_4b==""&&_4c==""&&_4e==""){
document.getElementById("error").innerHTML="Bitte f&uuml;llen Sie das Formular vollst&auml;ndig aus. Alle nicht korrekt ausgef&uuml;llten Zeilen sind rot markiert. ";
}else{
document.getElementById("error").innerHTML="Bitte f&uuml;llen Sie das Formular vollst&auml;ndig aus. Alle nicht korrekt ausgef&uuml;llten Zeilen sind rot markiert. ";
}
}else{
document.getElementById("error").innerHTML="Bitte f&uuml;llen Sie das Formular vollst&auml;ndig aus. Alle nicht korrekt ausgef&uuml;llten Zeilen sind rot markiert. ";
}
document.getElementById("error").style.visibility="visible";
formsub=true;
}
}
return valid;
};

var cX=0;
var cY=0;
var rX=0;
var rY=0;
function UpdateCursorPosition(e){
cX=e.pageX;
cY=e.pageY;
};
function UpdateCursorPositionDocAll(e){
cX=event.clientX;
cY=event.clientY;
};
if(document.all){
document.onmousemove=UpdateCursorPositionDocAll;
}else{
document.onmousemove=UpdateCursorPosition;
}
function AssignPosition(d){
if(self.pageYOffset){
rX=self.pageXOffset;
rY=self.pageYOffset;
}else{
if(document.documentElement&&document.documentElement.scrollTop){
rX=document.documentElement.scrollLeft;
rY=document.documentElement.scrollTop;
}else{
if(document.body){
rX=document.body.scrollLeft;
rY=document.body.scrollTop;
}
}
}
if(document.all){
cX+=rX;
cY+=rY;
}
d.style.left=(cX+10)+"px";
d.style.top=(cY+10)+"px";
};
function HideContent(d){
if(d.length<1){
return;
}
document.getElementById(d).style.display="none";
};
function ShowContent(d){
if(d.length<1){
return;
}
var dd=document.getElementById(d);
AssignPosition(dd);
dd.style.display="block";
};
function ReverseContentDisplay(d){
if(d.length<1){
return;
}
var dd=document.getElementById(d);
AssignPosition(dd);
if(dd.style.display=="none"){
dd.style.display="block";
}else{
dd.style.display="none";
}
};
function cltracking(){
var _5c=navigator.appName;
var _5d=navigator.appVersion;
var _5e=parseFloat(_5d);
};
window.onload=function(){
fill();
autofill_form("");
// cltracking();
};

