function imgViewer(img, width, height){
	w=window.open("../imgViewer.php?img="+img+"","bigImg","width="+width+",height="+height+",screenX=300,screenY=200,top=200,left=300");
	w.focus();
}
function typViewer(doc, width, height){
	w=window.open("zimmertyp/"+doc+".htm","zimmertyp","width="+width+",height="+height+",screenX=300,screenY=200,top=200,left=300");
	w.focus();
}
function panViewer(img){
	w=window.open("../panViewer.php?img="+img+"","bigPan","width=350,height=250,screenX=300,screenY=200,top=200,left=300");
	w.focus();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openV(theURL) { 
  window.open(theURL,"","width=350,height=500,top=200,left=200,screenX=200,screenY=200");
}
function openH(theURL) { 
  window.open(theURL,"","width=440,height=430,top=200,left=200,screenX=200,screenY=200");
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' muss eine gültige E-Mail-Adresse beinhalten.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' muss eine Nummer zwischen '+min+' und '+max+'beinhalten.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' wird benötigt.\n'; }
  } if (errors) alert('Folgende(r) Fehler:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm_en() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_en.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
function MM_validateForm_it() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_it.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve contenere un indizizzo e-Mail.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' deve contenere un numero.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' deve essere compilato.\n'; }
  } if (errors) alert('* questi campi devono essere obbligatoriamente compilati:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function YY_checkform() { //v4.71
//copyright (c)1998,2002 Yaromat.com
  var a=YY_checkform.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;
  for (i=1; i<a.length;i=i+4){
    if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false}
    o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));
    o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));
    v=o.value;t=a[i+2];
    if (o.type=='text'||o.type=='password'||o.type=='hidden'){
      if (r&&v.length==0){err=true}
      if (v.length>0)
      if (t==1){ //fromto
        ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true}
      } else if (t==2){
        rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true;
      } else if (t==3){ // date
        ma=a[i+1].split("#");at=v.match(ma[0]);
        if(at){
          cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];
          dte=new Date(cy,cm,cd);
          if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};
        }else{err=true}
      } else if (t==4){ // time
        ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}
      } else if (t==5){ // check this 2
            if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!o1.checked){err=true}
      } else if (t==6){ // the same
            if(v!=MM_findObj(a[i+1]).value){err=true}
      }
    } else
    if (!o.type&&o.length>0&&o[0].type=='radio'){
          at = a[i].match(/(.*)\[(\d+)\].*/i);
          o2=(o.length>1)?o[at[2]]:o;
      if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
      if (t==2){
        oo=false;
        for(j=0;j<o.length;j++){oo=oo||o[j].checked}
        if(!oo){s+='* '+a[i+3]+'\n'}
      }
    } else if (o.type=='checkbox'){
      if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}
    } else if (o.type=='select-one'||o.type=='select-multiple'){
      if(t==1&&o.selectedIndex/1==0){err=true}
    }else if (o.type=='textarea'){
      if(v.length<a[i+1]){err=true}
    }
    if (err){s+='* '+a[i+3]+'\n'; err=false}
  }
  if (s!=''){alert('Die folgenden Felder sind unvollständig oder enthalten Fehler:\t\t\t\t\t\n\n'+s)}
  document.MM_returnValue = (s=='');
}

function YY_checkform_it() { //v4.71
//copyright (c)1998,2002 Yaromat.com
  var a=YY_checkform_it.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;
  for (i=1; i<a.length;i=i+4){
    if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false}
    o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));
    o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));
    v=o.value;t=a[i+2];
    if (o.type=='text'||o.type=='password'||o.type=='hidden'){
      if (r&&v.length==0){err=true}
      if (v.length>0)
      if (t==1){ //fromto
        ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true}
      } else if (t==2){
        rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true;
      } else if (t==3){ // date
        ma=a[i+1].split("#");at=v.match(ma[0]);
        if(at){
          cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];
          dte=new Date(cy,cm,cd);
          if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};
        }else{err=true}
      } else if (t==4){ // time
        ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}
      } else if (t==5){ // check this 2
            if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!o1.checked){err=true}
      } else if (t==6){ // the same
            if(v!=MM_findObj(a[i+1]).value){err=true}
      }
    } else
    if (!o.type&&o.length>0&&o[0].type=='radio'){
          at = a[i].match(/(.*)\[(\d+)\].*/i);
          o2=(o.length>1)?o[at[2]]:o;
      if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
      if (t==2){
        oo=false;
        for(j=0;j<o.length;j++){oo=oo||o[j].checked}
        if(!oo){s+='* '+a[i+3]+'\n'}
      }
    } else if (o.type=='checkbox'){
      if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}
    } else if (o.type=='select-one'||o.type=='select-multiple'){
      if(t==1&&o.selectedIndex/1==0){err=true}
    }else if (o.type=='textarea'){
      if(v.length<a[i+1]){err=true}
    }
    if (err){s+='* '+a[i+3]+'\n'; err=false}
  }
  if (s!=''){alert('Le seguenti informazioni sono incomplete o contengono errori:\t\t\t\t\t\n\n'+s)}
  document.MM_returnValue = (s=='');
}

function YY_checkform_en() { //v4.71
//copyright (c)1998,2002 Yaromat.com
  var a=YY_checkform_en.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;
  for (i=1; i<a.length;i=i+4){
    if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false}
    o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));
    o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));
    v=o.value;t=a[i+2];
    if (o.type=='text'||o.type=='password'||o.type=='hidden'){
      if (r&&v.length==0){err=true}
      if (v.length>0)
      if (t==1){ //fromto
        ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true}
      } else if (t==2){
        rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true;
      } else if (t==3){ // date
        ma=a[i+1].split("#");at=v.match(ma[0]);
        if(at){
          cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];
          dte=new Date(cy,cm,cd);
          if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};
        }else{err=true}
      } else if (t==4){ // time
        ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}
      } else if (t==5){ // check this 2
            if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!o1.checked){err=true}
      } else if (t==6){ // the same
            if(v!=MM_findObj(a[i+1]).value){err=true}
      }
    } else
    if (!o.type&&o.length>0&&o[0].type=='radio'){
          at = a[i].match(/(.*)\[(\d+)\].*/i);
          o2=(o.length>1)?o[at[2]]:o;
      if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
      if (t==2){
        oo=false;
        for(j=0;j<o.length;j++){oo=oo||o[j].checked}
        if(!oo){s+='* '+a[i+3]+'\n'}
      }
    } else if (o.type=='checkbox'){
      if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}
    } else if (o.type=='select-one'||o.type=='select-multiple'){
      if(t==1&&o.selectedIndex/1==0){err=true}
    }else if (o.type=='textarea'){
      if(v.length<a[i+1]){err=true}
    }
    if (err){s+='* '+a[i+3]+'\n'; err=false}
  }
  if (s!=''){alert('The required informations are incomplete or contain errors:\t\t\t\t\t\n\n'+s)}
  document.MM_returnValue = (s=='');
}


function PM_swapIMG(myObj, myImg){
document.getElementById(myObj).innerHTML='<img alt="Webcam" title="Webcam" src="'+myImg+'" width="620" height="465" />'
}
function PM_swapIMGsmall(myObj, myImg){
document.getElementById(myObj).innerHTML='<img alt="Webcam" title="Webcam" src="'+myImg+'" width="500" height="375" />'
}


function KinderCheck (){
	var KinderAnzahlAlle = document.getElementById('KinderAnzahl').value;
		if(KinderAnzahlAlle  == '0') {
			$("#Submit").attr("onClick", "YY_checkform('buchungsanfrage','TerminVom','#q','0','Feld \\'Termin vom\\' muss ausgefüllt werden.','TerminBis','#q','0','Feld \\'Termin bis\\' muss ausgefüllt werden.','ErwachsenenAnzahl','#q','1','Feld \\'Anzahl Erwachsene\\' muss ausgefüllt werden.','Verpflegung','#q','1','Feld \\'Art der Verpflegung\\' muss ausgefüllt werden.','Vorname','#q','0','Feld \\'Vorname\\' muss ausgefüllt werden.','Nachname','#q','0','Feld \\'Nachname\\' muss ausgefüllt werden.','Strasse','#q','0','Feld \\'Strasse\\' muss ausgefüllt werden.','PLZ','#q','0','Feld \\'PLZ\\' muss ausgefüllt werden.','Ort','#q','0','Feld \\'Ort\\' muss ausgefüllt werden.','Telefon','#q','0','Feld \\'Telefon\\' muss ausgefüllt werden.','eMail','#S','2','Feld \\'E-mail\\' muss eine gültige Emailadresse beinhalten.','Privacy1','#q','1','Bitte bestätigen Sie, dass Sie die Datenschutzbestimmungen gelesen haben und damit einverstanden sind.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '1') {
			$("#Submit").attr("onClick", "YY_checkform('buchungsanfrage','TerminVom','#q','0','Feld \\'Termin vom\\' muss ausgefüllt werden.','TerminBis','#q','0','Feld \\'Termin bis\\' muss ausgefüllt werden.','ErwachsenenAnzahl','#q','1','Feld \\'Anzahl Erwachsene\\' muss ausgefüllt werden.','AlterKind1','#q','0','Feld \\'Alter Kind 1\\' muss ausgefüllt werden.','Verpflegung','#q','1','Feld \\'Art der Verpflegung\\' muss ausgefüllt werden.','Vorname','#q','0','Feld \\'Vorname\\' muss ausgefüllt werden.','Nachname','#q','0','Feld \\'Nachname\\' muss ausgefüllt werden.','Strasse','#q','0','Feld \\'Strasse\\' muss ausgefüllt werden.','PLZ','#q','0','Feld \\'PLZ\\' muss ausgefüllt werden.','Ort','#q','0','Feld \\'Ort\\' muss ausgefüllt werden.','Telefon','#q','0','Feld \\'Telefon\\' muss ausgefüllt werden.','eMail','#S','2','Feld \\'E-mail\\' muss eine gültige Emailadresse beinhalten.','Privacy1','#q','1','Bitte bestätigen Sie, dass Sie die Datenschutzbestimmungen gelesen haben und damit einverstanden sind.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '2') {
			$("#Submit").attr("onClick", "YY_checkform('buchungsanfrage','TerminVom','#q','0','Feld \\'Termin vom\\' muss ausgefüllt werden.','TerminBis','#q','0','Feld \\'Termin bis\\' muss ausgefüllt werden.','ErwachsenenAnzahl','#q','1','Feld \\'Anzahl Erwachsene\\' muss ausgefüllt werden.','AlterKind1','#q','0','Feld \\'Alter Kind 1\\' muss ausgefüllt werden.','AlterKind2','#q','0','Feld \\'Alter Kind 2\\' muss ausgefüllt werden.','Verpflegung','#q','1','Feld \\'Art der Verpflegung\\' muss ausgefüllt werden.','Vorname','#q','0','Feld \\'Vorname\\' muss ausgefüllt werden.','Nachname','#q','0','Feld \\'Nachname\\' muss ausgefüllt werden.','Strasse','#q','0','Feld \\'Strasse\\' muss ausgefüllt werden.','PLZ','#q','0','Feld \\'PLZ\\' muss ausgefüllt werden.','Ort','#q','0','Feld \\'Ort\\' muss ausgefüllt werden.','Telefon','#q','0','Feld \\'Telefon\\' muss ausgefüllt werden.','eMail','#S','2','Feld \\'E-mail\\' muss eine gültige Emailadresse beinhalten.','Privacy1','#q','1','Bitte bestätigen Sie, dass Sie die Datenschutzbestimmungen gelesen haben und damit einverstanden sind.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '3') {
			$("#Submit").attr("onClick", "YY_checkform('buchungsanfrage','TerminVom','#q','0','Feld \\'Termin vom\\' muss ausgefüllt werden.','TerminBis','#q','0','Feld \\'Termin bis\\' muss ausgefüllt werden.','ErwachsenenAnzahl','#q','1','Feld \\'Anzahl Erwachsene\\' muss ausgefüllt werden.','AlterKind1','#q','0','Feld \\'Alter Kind 1\\' muss ausgefüllt werden.','AlterKind2','#q','0','Feld \\'Alter Kind 2\\' muss ausgefüllt werden.','AlterKind3','#q','0','Feld \\'Alter Kind 3\\' muss ausgefüllt werden.','Verpflegung','#q','1','Feld \\'Art der Verpflegung\\' muss ausgefüllt werden.','Vorname','#q','0','Feld \\'Vorname\\' muss ausgefüllt werden.','Nachname','#q','0','Feld \\'Nachname\\' muss ausgefüllt werden.','Strasse','#q','0','Feld \\'Strasse\\' muss ausgefüllt werden.','PLZ','#q','0','Feld \\'PLZ\\' muss ausgefüllt werden.','Ort','#q','0','Feld \\'Ort\\' muss ausgefüllt werden.','Telefon','#q','0','Feld \\'Telefon\\' muss ausgefüllt werden.','eMail','#S','2','Feld \\'E-mail\\' muss eine gültige Emailadresse beinhalten.','Privacy1','#q','1','Bitte bestätigen Sie, dass Sie die Datenschutzbestimmungen gelesen haben und damit einverstanden sind.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '4') {
			$("#Submit").attr("onClick", "YY_checkform('buchungsanfrage','TerminVom','#q','0','Feld \\'Termin vom\\' muss ausgefüllt werden.','TerminBis','#q','0','Feld \\'Termin bis\\' muss ausgefüllt werden.','ErwachsenenAnzahl','#q','1','Feld \\'Anzahl Erwachsene\\' muss ausgefüllt werden.','AlterKind1','#q','0','Feld \\'Alter Kind 1\\' muss ausgefüllt werden.','AlterKind2','#q','0','Feld \\'Alter Kind 2\\' muss ausgefüllt werden.','AlterKind3','#q','0','Feld \\'Alter Kind 3\\' muss ausgefüllt werden.','AlterKind4','#q','0','Feld \\'Alter Kind 4\\' muss ausgefüllt werden.','Verpflegung','#q','1','Feld \\'Art der Verpflegung\\' muss ausgefüllt werden.','Vorname','#q','0','Feld \\'Vorname\\' muss ausgefüllt werden.','Nachname','#q','0','Feld \\'Nachname\\' muss ausgefüllt werden.','Strasse','#q','0','Feld \\'Strasse\\' muss ausgefüllt werden.','PLZ','#q','0','Feld \\'PLZ\\' muss ausgefüllt werden.','Ort','#q','0','Feld \\'Ort\\' muss ausgefüllt werden.','Telefon','#q','0','Feld \\'Telefon\\' muss ausgefüllt werden.','eMail','#S','2','Feld \\'E-mail\\' muss eine gültige Emailadresse beinhalten.','Privacy1','#q','1','Bitte bestätigen Sie, dass Sie die Datenschutzbestimmungen gelesen haben und damit einverstanden sind.');return document.MM_returnValue");
		};
	};
	
function KinderCheck_it (){
	var KinderAnzahlAlle = document.getElementById('KinderAnzahl').value;
		if(KinderAnzahlAlle  == '0') {
			$("#Submit").attr("onClick", "YY_checkform_it('buchungsanfrage','TerminVom','#q','0','Campo \\'Arrivo\\' è obbligatorio.','TerminBis','#q','0','Campo \\'Partenza\\' è obbligatorio.','ErwachsenenAnzahl','#q','1','Campo \\'Numero adulti\\' è obbligatorio.','Verpflegung','#q','1','Campo \\'Tipo di trattamento\\' è obbligatorio.','Vorname','#q','0','Campo \\'Nome\\' è obbligatorio.','Nachname','#q','0','Campo \\'Cognome\\' è obbligatorio.','Strasse','#q','0','Campo \\'Via\\' è obbligatorio.', 'PLZ','#q','0','Campo \\'CAP\\' è obbligatorio.','Ort','#q','0','Campo \\'Località\\' è obbligatorio.','Telefon','#q','0','Campo \\'Telefono\\' è obbligatorio.','eMail','#S','2','Campo \\'E-mail\\' deve contenere un indirizzo email valido.','Privacy1','#q','1','Siete pregati di confermare di avere letto le normative sulla tutela dei dati e di dare il vostro consenso.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '1') {
			$("#Submit").attr("onClick", "YY_checkform_it('buchungsanfrage','TerminVom','#q','0','Campo \\'Arrivo\\' è obbligatorio.','TerminBis','#q','0','Campo \\'Partenza\\' è obbligatorio.','ErwachsenenAnzahl','#q','1','Campo \\'Numero adulti\\' è obbligatorio.','AlterKind1','#q','0','Campo \\'Età bambino 1\\' è obbligatorio.','Verpflegung','#q','1','Campo \\'Tipo di trattamento\\' è obbligatorio.','Vorname','#q','0','Campo \\'Nome\\' è obbligatorio.','Nachname','#q','0','Campo \\'Cognome\\' è obbligatorio.','Strasse','#q','0','Campo \\'Via\\' è obbligatorio.', 'PLZ','#q','0','Campo \\'CAP\\' è obbligatorio.','Ort','#q','0','Campo \\'Località\\' è obbligatorio.','Telefon','#q','0','Campo \\'Telefono\\' è obbligatorio.','eMail','#S','2','Campo \\'E-mail\\' deve contenere un indirizzo email valido.','Privacy1','#q','1','Siete pregati di confermare di avere letto le normative sulla tutela dei dati e di dare il vostro consenso.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '2') {
			$("#Submit").attr("onClick", "YY_checkform_it('buchungsanfrage','TerminVom','#q','0','Campo \\'Arrivo\\' è obbligatorio.','TerminBis','#q','0','Campo \\'Partenza\\' è obbligatorio.','ErwachsenenAnzahl','#q','1','Campo \\'Numero adulti\\' è obbligatorio.','AlterKind1','#q','0','Campo \\'Età bambino 1\\' è obbligatorio.','AlterKind2','#q','0','Campo \\'Età bambino 2\\' è obbligatorio.','Verpflegung','#q','1','Campo \\'Tipo di trattamento\\' è obbligatorio.','Vorname','#q','0','Campo \\'Nome\\' è obbligatorio.','Nachname','#q','0','Campo \\'Cognome\\' è obbligatorio.','Strasse','#q','0','Campo \\'Via\\' è obbligatorio.', 'PLZ','#q','0','Campo \\'CAP\\' è obbligatorio.','Ort','#q','0','Campo \\'Località\\' è obbligatorio.','Telefon','#q','0','Campo \\'Telefono\\' è obbligatorio.','eMail','#S','2','Campo \\'E-mail\\' deve contenere un indirizzo email valido.','Privacy1','#q','1','Siete pregati di confermare di avere letto le normative sulla tutela dei dati e di dare il vostro consenso.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '3') {
			$("#Submit").attr("onClick", "YY_checkform_it('buchungsanfrage','TerminVom','#q','0','Campo \\'Arrivo\\' è obbligatorio.','TerminBis','#q','0','Campo \\'Partenza\\' è obbligatorio.','ErwachsenenAnzahl','#q','1','Campo \\'Numero adulti\\' è obbligatorio.','AlterKind1','#q','0','Campo \\'Età bambino 1\\' è obbligatorio.','AlterKind2','#q','0','Campo \\'Età bambino 2\\' è obbligatorio.','AlterKind3','#q','0','Campo \\'Età bambino 3\\' è obbligatorio.','Verpflegung','#q','1','Campo \\'Tipo di trattamento\\' è obbligatorio.','Vorname','#q','0','Campo \\'Nome\\' è obbligatorio.','Nachname','#q','0','Campo \\'Cognome\\' è obbligatorio.','Strasse','#q','0','Campo \\'Via\\' è obbligatorio.', 'PLZ','#q','0','Campo \\'CAP\\' è obbligatorio.','Ort','#q','0','Campo \\'Località\\' è obbligatorio.','Telefon','#q','0','Campo \\'Telefono\\' è obbligatorio.','eMail','#S','2','Campo \\'E-mail\\' deve contenere un indirizzo email valido.','Privacy1','#q','1','Siete pregati di confermare di avere letto le normative sulla tutela dei dati e di dare il vostro consenso.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '4') {
			$("#Submit").attr("onClick", "YY_checkform_it('buchungsanfrage','TerminVom','#q','0','Campo \\'Arrivo\\' è obbligatorio.','TerminBis','#q','0','Campo \\'Partenza\\' è obbligatorio.','ErwachsenenAnzahl','#q','1','Campo \\'Numero adulti\\' è obbligatorio.','AlterKind1','#q','0','Campo \\'Età bambino 1\\' è obbligatorio.','AlterKind2','#q','0','Campo \\'Età bambino 2\\' è obbligatorio.','AlterKind3','#q','0','Campo \\'Età bambino 3\\' è obbligatorio.','AlterKind4','#q','0','Campo \\'Età bambino 4\\' è obbligatorio.','Verpflegung','#q','1','Campo \\'Tipo di trattamento\\' è obbligatorio.','Vorname','#q','0','Campo \\'Nome\\' è obbligatorio.','Nachname','#q','0','Campo \\'Cognome\\' è obbligatorio.','Strasse','#q','0','Campo \\'Via\\' è obbligatorio.', 'PLZ','#q','0','Campo \\'CAP\\' è obbligatorio.','Ort','#q','0','Campo \\'Località\\' è obbligatorio.','Telefon','#q','0','Campo \\'Telefono\\' è obbligatorio.','eMail','#S','2','Campo \\'E-mail\\' deve contenere un indirizzo email valido.','Privacy1','#q','1','Siete pregati di confermare di avere letto le normative sulla tutela dei dati e di dare il vostro consenso.');return document.MM_returnValue");
		};
	};
	
	
function KinderCheck_en (){
	var KinderAnzahlAlle = document.getElementById('KinderAnzahl').value;
		if(KinderAnzahlAlle  == '0') {
			$("#Submit").attr("onClick", "YY_checkform_en('buchungsanfrage','TerminVom','#q','0','Field \\'Arrival\\' is mandatory.','TerminBis','#q','0','Field \\'Departure\\' is mandatory.','ErwachsenenAnzahl','#q','1','Field \\'Quantity of adults\\' is mandatory.','Verpflegung','#q','1','Field \\'Type of board\\' is mandatory.','Vorname','#q','0','Field \\'Name\\' is mandatory.','Nachname','#q','0','Field \\'Surname\\' is mandatory.','Strasse','#q','0','Field \\'Street\\' is mandatory.','PLZ','#q','0','Field \\'ZIP\\' is mandatory.','Ort','#q','0','Field \\'City\\' is mandatory.','Telefon','#q','0','Field \\'Phone\\' is mandatory.', 'eMail','#S','2','Field \\'E-mail\\' must contain a valid email adress.','Privacy1','#q','1','Please confirm that you have read and accepted the data protection conditions.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '1') {
			$("#Submit").attr("onClick", "YY_checkform_en('buchungsanfrage','TerminVom','#q','0','Field \\'Arrival\\' is mandatory.','TerminBis','#q','0','Field \\'Departure\\' is mandatory.','ErwachsenenAnzahl','#q','1','Field \\'Quantity of adults\\' is mandatory.','AlterKind1','#q','0','Field \\'Age child 1\\' is mandatory.','Verpflegung','#q','1','Field \\'Type of board\\' is mandatory.','Vorname','#q','0','Field \\'Name\\' is mandatory.','Nachname','#q','0','Field \\'Surname\\' is mandatory.','Strasse','#q','0','Field \\'Street\\' is mandatory.','PLZ','#q','0','Field \\'ZIP\\' is mandatory.','Ort','#q','0','Field \\'City\\' is mandatory.','Telefon','#q','0','Field \\'Phone\\' is mandatory.','eMail','#S','2','Field \\'E-mail\\' must contain a valid email adress.','Privacy1','#q','1','Please confirm that you have read and accepted the data protection conditions.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '2') {
			$("#Submit").attr("onClick", "YY_checkform_en('buchungsanfrage','TerminVom','#q','0','Field \\'Arrival\\' is mandatory.','TerminBis','#q','0','Field \\'Departure\\' is mandatory.','ErwachsenenAnzahl','#q','1','Field \\'Quantity of adults\\' is mandatory.','AlterKind1','#q','0','Field \\'Age child 1\\' is mandatory.','AlterKind2','#q','0','Field \\'Age child 2\\' is mandatory.','Verpflegung','#q','1','Field \\'Type of board\\' is mandatory.','Vorname','#q','0','Field \\'Name\\' is mandatory.','Nachname','#q','0','Field \\'Surname\\' is mandatory.','Strasse','#q','0','Field \\'Street\\' is mandatory.','PLZ','#q','0','Field \\'ZIP\\' is mandatory.','Ort','#q','0','Field \\'City\\' is mandatory.','Telefon','#q','0','Field \\'Phone\\' is mandatory.','eMail','#S','2','Field \\'E-mail\\' must contain a valid email adress.','Privacy1','#q','1','Please confirm that you have read and accepted the data protection conditions.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '3') {
			$("#Submit").attr("onClick", "YY_checkform_en('buchungsanfrage','TerminVom','#q','0','Field \\'Arrival\\' is mandatory.','TerminBis','#q','0','Field \\'Departure\\' is mandatory.','ErwachsenenAnzahl','#q','1','Field \\'Quantity of adults\\' is mandatory.','AlterKind1','#q','0','Field \\'Age child 1\\' is mandatory.','AlterKind2','#q','0','Field \\'Age child 2\\' is mandatory.','AlterKind3','#q','0','Field \\'Age child 3\\' is mandatory.','Verpflegung','#q','1','Field \\'Type of board\\' is mandatory.','Vorname','#q','0','Field \\'Name\\' is mandatory.','Nachname','#q','0','Field \\'Surname\\' is mandatory.','Strasse','#q','0','Field \\'Street\\' is mandatory.','PLZ','#q','0','Field \\'ZIP\\' is mandatory.','Ort','#q','0','Field \\'City\\' is mandatory.','Telefon','#q','0','Field \\'Phone\\' is mandatory.','eMail','#S','2','Field \\'E-mail\\' must contain a valid email adress.','Privacy1','#q','1','Please confirm that you have read and accepted the data protection conditions.');return document.MM_returnValue");
		};
		if(KinderAnzahlAlle  == '4') {
			$("#Submit").attr("onClick", "YY_checkform_en('buchungsanfrage','TerminVom','#q','0','Field \\'Arrival\\' is mandatory.','TerminBis','#q','0','Field \\'Departure\\' is mandatory.','ErwachsenenAnzahl','#q','1','Field \\'Quantity of adults\\' is mandatory.','AlterKind1','#q','0','Field \\'Age child 1\\' is mandatory.','AlterKind2','#q','0','Field \\'Age child 2\\' is mandatory.','AlterKind3','#q','0','Field \\'Age child 3\\' is mandatory.','AlterKind4','#q','0','Field \\'Age child 4\\' is mandatory.','Verpflegung','#q','1','Field \\'Type of board\\' is mandatory.','Vorname','#q','0','Field \\'Name\\' is mandatory.','Nachname','#q','0','Field \\'Surname\\' is mandatory.','Strasse','#q','0','Field \\'Street\\' is mandatory.','PLZ','#q','0','Field \\'ZIP\\' is mandatory.','Ort','#q','0','Field \\'City\\' is mandatory.','Telefon','#q','0','Field \\'Phone\\' is mandatory.','eMail','#S','2','Field \\'E-mail\\' must contain a valid email adress.','Privacy1','#q','1','Please confirm that you have read and accepted the data protection conditions.');return document.MM_returnValue");
		};
	};
