function checklatin(Target) {
var stringlengh=Target.value.length-1;
var teststring = Target.value;
var ergebnis  = teststring.match(/\W+$/);
var ergebnis2 = teststring.match(/\s$/);
var ergebnis3 = teststring.match(/[.'-_öäüÖÄÜßçñÑë@]$/);
var dokulanguage = document.antrag.dokulanguage.value;
if (ergebnis != null && ergebnis2 == null && ergebnis3 == null )	
	{ 
   switch (dokulanguage) {
    case 'eng'	: alert("Only the following special characters (.-_öäüÖÄÜßçñÑë@) and latin letters (a-z) are allowed in this field."); break;
    case 'esp'	: alert("Aparte de las letras especiales (.-_öäüÖÄÜßçñÑë@) solo es permitido utilizar letras del alphabeto latino (a-z).");  break;
    case 'chn'	: text=String.fromCharCode(26412)+String.fromCharCode(31243)+String.fromCharCode(24207)+String.fromCharCode(19981)+String.fromCharCode(25509)+String.fromCharCode(21463)+String.fromCharCode(19979)+String.fromCharCode(21015)+String.fromCharCode(31526)+String.fromCharCode(21495)+String.fromCharCode(32)+String.fromCharCode(91)+String.fromCharCode(32)+String.fromCharCode(45)+String.fromCharCode(32)+String.fromCharCode(95)+String.fromCharCode(246)+String.fromCharCode(32)+String.fromCharCode(228)+String.fromCharCode(32)+String.fromCharCode(252)+String.fromCharCode(32)+String.fromCharCode(79)+String.fromCharCode(32)+String.fromCharCode(196)+String.fromCharCode(32)+String.fromCharCode(220)+String.fromCharCode(32)+String.fromCharCode(223)+String.fromCharCode(32)+String.fromCharCode(209)+String.fromCharCode(32)+String.fromCharCode(241)+String.fromCharCode(32)+String.fromCharCode(39)+String.fromCharCode(32)+String.fromCharCode(93)+String.fromCharCode(32)+String.fromCharCode(35831)+String.fromCharCode(22312)+String.fromCharCode(36755)+String.fromCharCode(20837)+String.fromCharCode(26639)+String.fromCharCode(20869)+String.fromCharCode(36873)+String.fromCharCode(29992)+String.fromCharCode(25289)+String.fromCharCode(19969)+String.fromCharCode(25991)+String.fromCharCode(23383)+String.fromCharCode(27597); alert(text); break;
    case 'trk'	: alert("Asagidakiler disindaki özel isaretler kullanilamaz ((.-_öäüÖÄÜßçñÑë@) Sadece Latin alfabesindeki isaretleri kullaniniz.");  break;
       default	: alert("Die Eingabe von Sonderzeichen ist bis auf die folgenden Zeichen (.-_öäüÖÄÜßçñÑë@) nicht erlaubt. Bitte verwenden Sie nur Zeichen aus dem lateinischen Zeichensatz."); 
  }
	this.value=""; 
	Target.value=Target.value.substring(0,stringlengh); 
	Target.focus();
	return false;
	}

else {return true;} 

} 
/*
function istvnvpfrageeinblenden() 
{
	tarifname = document.antrag.tarifname.value;
	
	if(tarifname == "Care Travel" 
	|| tarifname == "Care College" 
	|| tarifname == "Care Au-Pair" 
	|| tarifname == "Care Economy" 
	|| tarifname == "Care Amerika")
		{
			if(	document.antrag.vnngebtag.selectedIndex 	!= 0 
			&&  document.antrag.vnngebmonat.selectedIndex 	!= 0 
			&&	document.antrag.vnngebjahr.selectedIndex 	!= 0
			&&	document.antrag.vnanrede.selectedIndex		!= 0
			&&	document.antrag.vnvorname.value 			!= ''
			&&  document.antrag.vnname.value				!= '') 
				{
				show('fragevnistvp');
				}
			else
				{
				hide('fragevnistvp');
				}
		}
}
*/
function vnzuvp() 
{
var dokulanguage = document.antrag.dokulanguage.value;
		tarifname = document.antrag.tarifname.value;
		   if(tarifname == "Care Travel" 
		   || tarifname == "Care College" 
		   || tarifname == "Care Au-Pair" 
		   || tarifname == "Care Economy" 
		   || tarifname == "Care Expatriate"
		   || tarifname == "Care Visa Protect" 
		   || tarifname == "Haftpflichtversicherung" 
		   || tarifname == "Reiserücktrittsversicherung - Einmalpolice" 
		   || tarifname == "Care Amerika")
			{ 
				if(		document.antrag.vnngebtag.value 	!= '--' 
					&&  document.antrag.vnngebmonat.value 	!= '--' 
					&&	document.antrag.vnngebjahr.value 	!= '--'
					&&	document.antrag.vnanrede.value		!= ''
					&&	document.antrag.vnvorname.value 	!= ''
					&&  document.antrag.vnname.value		!= '') 
						
						{			document.antrag.vpgebtag.selectedIndex 		= document.antrag.vnngebtag.selectedIndex;
									document.antrag.vpgebmonat.selectedIndex 	= document.antrag.vnngebmonat.selectedIndex;
									document.antrag.vpgebjahr.selectedIndex 	= document.antrag.vnngebjahr.selectedIndex;
									document.antrag.vpanrede.selectedIndex 		= document.antrag.vnanrede.selectedIndex;
									document.antrag.vpvorname.value 			= document.antrag.vnvorname.value;
									document.antrag.vpname.value 				= document.antrag.vnname.value;
									document.antrag.vpalter.value 				= document.antrag.vnnalter.value;

    						switch (dokulanguage) 
							{
								case 'eng'	: alert("The data about the policyholder were filled into the insured person's data"); break;
								case 'esp'	: alert('¡Los datos del contratante fueron tranfesridos a los datos de la persona asegurada!'); break;
								case 'trk'	: alert('Sigortayi yapan kisinin verileri sigortalinin alanina aktarilmistir.'); break;
								case 'chn'	: text=String.fromCharCode(33258)+String.fromCharCode(21160)+String.fromCharCode(23558)+String.fromCharCode(30003)+String.fromCharCode(35831)+String.fromCharCode(20154)+String.fromCharCode(30340)+String.fromCharCode(20449)+String.fromCharCode(24687)+String.fromCharCode(25220)+String.fromCharCode(24405)+String.fromCharCode(36827)+String.fromCharCode(34987)+String.fromCharCode(20445)+String.fromCharCode(38505)+String.fromCharCode(20154)+String.fromCharCode(20449)+String.fromCharCode(24687)+String.fromCharCode(26639); alert(text); break;
								   default	: alert('Die Daten des Versicherungsnehmers wurden in die Felder der versicherten Person übertragen!'); 
							};				

						};
			};
}

function check_allgemein() {	

if(typeof document.antrag.verlaengerung != "undefined") 
	{	var verlaengerung = document.antrag.verlaengerung.value; }
else
	{	var verlaengerung = 0; }


var dokulanguage = document.antrag.dokulanguage.value;
if(document.antrag.versicherungsbeginntag.value != "" 
&& document.antrag.versicherungsbeginnmonat.value != "" 
&& document.antrag.versicherungsbeginnjahr.value != "") {
	
var heute = new Date();
var versicherungsbeginntag = document.antrag.versicherungsbeginntag.value
var versicherungsbeginnmonat = document.antrag.versicherungsbeginnmonat.value
var versicherungsbeginnjahr = document.antrag.versicherungsbeginnjahr.value

// var maxversicherungsbeginndatum = new Date(heute.getFullYear()+1, heute.getMonth(), heute.getDate());

var maxversicherungsbeginndatum = new Date(new Date().getTime() + 15768000000);
var maxversicherungsbeginndatumverl = new Date(new Date().getTime() + 31536000000);

var versicherungsbeginndatum = new Date(versicherungsbeginnjahr, versicherungsbeginnmonat-1, versicherungsbeginntag);
if(verlaengerung!=1 && document.antrag.tarifname.value!='Care Travel'){
if(versicherungsbeginndatum.getTime() > maxversicherungsbeginndatum.getTime()){	
    switch (dokulanguage){
	case 'eng'	: alert('Der Versicherungsbeginn darf nur 6 Monate in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 6 Monate vor dem Versicherungsbeginn.'); break;
	case 'esp'	: alert('Der Versicherungsbeginn darf nur 6 Monate in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 6 Monate vor dem Versicherungsbeginn.');  break;
	case 'chn'	: alert('Der Versicherungsbeginn darf nur 6 Monate in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal ein halbes Jahr vor dem Versicherungsbeginn.');  break;
	case 'trk'	: alert('Der Versicherungsbeginn darf nur 6 Monate in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 6 Monate vor dem Versicherungsbeginn.');  break;
	default	: alert('Der Versicherungsbeginn darf nur 6 Monate in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 6 Monate vor dem Versicherungsbeginn.'); 
	};				
	document.antrag.versicherungsbeginnjahr.className = 'phpfehlermeldung'; 
	document.antrag.versicherungsbeginnjahr.focus();
	return false;    
	}; 
};

if(verlaengerung==1 && document.antrag.tarifname.value!='Care Travel'){
if(versicherungsbeginndatum.getTime() > maxversicherungsbeginndatumverl.getTime()){	
    switch (dokulanguage){
	case 'eng'	: alert('Der Versicherungsbeginn darf nur 1 Jahr in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 1 Jahr vor dem Versicherungsbeginn.'); break;
	case 'esp'	: alert('Der Versicherungsbeginn darf nur 1 Jahr in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 1 Jahr vor dem Versicherungsbeginn.');  break;
	case 'chn'	: alert('Der Versicherungsbeginn darf nur 1 Jahr in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 1 Jahr vor dem Versicherungsbeginn.');  break;
	case 'trk'	: alert('Der Versicherungsbeginn darf nur 1 Jahr in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 1 Jahr vor dem Versicherungsbeginn.');  break;
	default	: alert('Der Versicherungsbeginn darf nur 1 Jahr in die Zukunft gestellt werden. Bitte warten Sie mit dem Vertragsabschluss bis maximal 1 Jahr vor dem Versicherungsbeginn.'); 
	};				
	document.antrag.versicherungsbeginnjahr.className = 'phpfehlermeldung'; 
	document.antrag.versicherungsbeginnjahr.focus();
	return false;    
	}; 
};

;}
if(document.antrag.vnvorname.value.indexOf(",") != "-1") 	{document.antrag.vnvorname.value = document.antrag.vnvorname.value.replace(/\,/g,"\;"); }
if(document.antrag.vnname.value.indexOf(",") != "-1") 		{document.antrag.vnname.value = document.antrag.vnname.value.replace(/\,/g,"\;"); }
if(document.antrag.vnstr.value.indexOf(",") != "-1") 		{document.antrag.vnstr.value = document.antrag.vnstr.value.replace(/\,/g,"\;"); }
if(document.antrag.vnco.value.indexOf(",") != "-1") 		{document.antrag.vnco.value = document.antrag.vnco.value.replace(/\,/g,"\;"); }
if(document.antrag.vnplz.value.indexOf(",") != "-1") 		{document.antrag.vnplz.value = document.antrag.vnplz.value.replace(/\,/g,"\;"); } 
if(document.antrag.vnort.value.indexOf(",") != "-1") 		{document.antrag.vnort.value = document.antrag.vnort.value.replace(/\,/g,"\;"); }
if(document.antrag.institut.value.indexOf(",") != "-1") 	{document.antrag.institut.value = document.antrag.institut.value.replace(/\,/g,"\;"); } 
if(document.antrag.ktoinhaber.value.indexOf(",") != "-1") 	{document.antrag.ktoinhaber.value = document.antrag.ktoinhaber.value.replace(/\,/g,"\;"); }
if(document.antrag.grund.value.indexOf(",") != "-1") 		{document.antrag.grund.value = document.antrag.grund.value.replace(/\,/g,"\;"); } 
if(document.antrag.email.value.indexOf(",") != "-1") 		{document.antrag.email.value = document.antrag.email.value.replace(/\,/g,"\;"); }
if(document.antrag.vnvorwahl.value.indexOf(",") != "-1") 	{document.antrag.vnvorwahl.value = document.antrag.vnvorwahl.value.replace(/\,/g,"\;"); } 
if(document.antrag.vntelefon.value.indexOf(",") != "-1") 	{document.antrag.vntelefon.value = document.antrag.vntelefon.value.replace(/\,/g,"\;"); } 
if(document.antrag.vnfax.value.indexOf(",") != "-1") 		{document.antrag.vnfax.value = document.antrag.vnfax.value.replace(/\,/g,"\;"); } 
if(document.antrag.nachricht.value.indexOf(",") != "-1" ) 	{document.antrag.nachricht.value = document.antrag.nachricht.value.replace(/\,/g,"\;"); } 
if(document.antrag.nachricht.value.indexOf(",") != "-1" ) 	{document.antrag.nachricht.value = document.antrag.nachricht.value.replace(/\,/g,"\;"); } 
if(document.antrag.vnregion.value.indexOf(",") != "-1" ) 	{document.antrag.vnregion.value = document.antrag.vnregion.value.replace(/\,/g,"\;"); } 	

if(typeof document.antrag.altevnr != "undefined") {
	if(document.antrag.altevnr.value.indexOf(",") != "-1" ) {document.antrag.altevnr.value = document.antrag.altevnr.value.replace(/\,/g,"\;"); } ; }
if(typeof document.antrag.vorversicherer != "undefined") {
	if(document.antrag.vorversicherer.value.indexOf(",") != "-1" ) {document.antrag.vorversicherer.value = document.antrag.vorversicherer.value.replace(/\,/g,"\;"); } ; }
if(typeof document.antrag.vmm != "undefined") {
	if(document.antrag.vmm.value.indexOf(",") != "-1" ) 	{document.antrag.vmm.value = document.antrag.vmm.value.replace(/\,/g,"\;"); } ; }
if(typeof document.antrag.vmmx != "undefined") {
	if(document.antrag.vmmx.value.indexOf(",") != "-1" ) 	{document.antrag.vmmx.value = document.antrag.vmmx.value.replace(/\,/g,"\;"); } ; }
	
/* Block für Versicherungsnehmer */

if(document.antrag.vnanrede.value=="--" 
|| document.antrag.vnanrede.value=="")
 {  
   switch (dokulanguage) {
    case 'eng'	: alert("Please select your sex!"); break;
    case 'esp'	: alert("¡Seleccione su sexo!");  break;
    case 'chn'	: text=String.fromCharCode(35831)+String.fromCharCode(36873)+String.fromCharCode(25321)+String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(24615)+String.fromCharCode(21035); alert(text); break;
    case 'trk'	: alert("Lütfen cinsiyetinizi belirtiniz!");  break;
       default	: alert("Wählen Sie bitte aus, welches Geschlecht Sie haben!"); 
  }
	document.antrag.vnanrede.className = 'phpfehlermeldung'; 
	document.antrag.vnanrede.focus();
	return false;    }

if(document.antrag.vnvorname.value==""
 || document.antrag.vnvorname.value=="Vorname")
{   
   switch (dokulanguage) {
    case 'eng'	: alert("Please enter your first names!"); break;
    case 'esp'	: alert("¡Indique su nombre!");  break;
    case 'chn'	: text=String.fromCharCode(35831)+String.fromCharCode(22635)+String.fromCharCode(20889)+String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(21517); alert(text); break;
    case 'trk'	: alert("Lütfen ön adinizi giriniz!");  break;
       default	: alert("Geben Sie bitte Ihren Vornamen ein!"); 
  }
	document.antrag.vnvorname.className = 'phpfehlermeldung'; 
	document.antrag.vnvorname.focus();
	return false;    }

if(document.antrag.vnname.value==""
 || document.antrag.vnname.value=="Nachname")
{   
   switch (dokulanguage) {
    case 'eng'	: alert("Please enter your name!"); break;
    case 'esp'	: alert("¡Indique su apellido!");  break;
    case 'chn'	: text=String.fromCharCode(35831)+String.fromCharCode(22635)+String.fromCharCode(20889)+String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(22995); alert(text); break;
    case 'trk'	: alert("Lütfen soyadinizi giriniz!");  break;
       default	: alert("Geben Sie bitte Ihren Nachnamen ein!"); 
  }

	document.antrag.vnname.className = 'phpfehlermeldung'; 
	document.antrag.vnname.focus();
	return false;    }

if(verlaengerung!=1){
if(document.antrag.vnngebtag.value==""
 || document.antrag.vnngebtag.value=="--")
{   
   switch (dokulanguage) {
    case 'eng'	: alert("Your date of birth [day] is incomplete!"); break;
    case 'esp'	: alert("¡Su fecha de nacimiento [día] está incompleta!");  break;
    case 'chn'	: text=String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(20986)+String.fromCharCode(29983)+String.fromCharCode(26085)+String.fromCharCode(26399)+String.fromCharCode(65288)+String.fromCharCode(22825)+String.fromCharCode(65289)+String.fromCharCode(19981)+String.fromCharCode(23436)+String.fromCharCode(25972); alert(text); break;
    case 'trk'	: alert("Dogum tarihiniz [gün] eksik!");  break;
       default	: alert("Ihr Geburtsdatum [Tag] ist unvollständig!"); 
  }
	document.antrag.vnngebtag.className = 'phpfehlermeldung'; 
	document.antrag.vnngebtag.focus();
	return false;    }

if(document.antrag.vnngebmonat.value==""
 || document.antrag.vnngebmonat.value=="--")
{   
   switch (dokulanguage) {
    case 'eng'	: alert("Your date of birth [month] is incomplete!"); break;
    case 'esp'	: alert("¡Su fecha de nacimiento [mes] está incompleta!");  break;
    case 'chn'	: text=String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(20986)+String.fromCharCode(29983)+String.fromCharCode(26085)+String.fromCharCode(26399)+String.fromCharCode(65288)+String.fromCharCode(26376)+String.fromCharCode(65289)+String.fromCharCode(19981)+String.fromCharCode(23436)+String.fromCharCode(25972); alert(text); break;
    case 'trk'	: alert("Dogum tarihiniz [ay] eksik!");  break;
       default	: alert("Ihr Geburtsdatum [Monat] ist unvollständig!"); 
  }
	document.antrag.vnngebmonat.className = 'phpfehlermeldung'; 
	document.antrag.vnngebmonat.focus();
	return false;    }

if(document.antrag.vnngebjahr.value==""
 || document.antrag.vnngebjahr.value=="--")
{   
   switch (dokulanguage) {
    case 'eng'	: alert("Your date of birth [year] is incomplete!"); break;
    case 'esp'	: alert("¡Su fecha de nacimiento [año] está incompleta!");  break;
    case 'chn'	: text=String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(20986)+String.fromCharCode(29983)+String.fromCharCode(26085)+String.fromCharCode(26399)+String.fromCharCode(65288)+String.fromCharCode(24180)+String.fromCharCode(65289)+String.fromCharCode(19981)+String.fromCharCode(23436)+String.fromCharCode(25972); alert(text); break;
    case 'trk'	: alert("Dogum tarihiniz [yin] eksik!");  break;
       default	: alert("Ihr Geburtsdatum [Jahr] ist unvollständig!"); 
  }

	document.antrag.vnngebjahr.className = 'phpfehlermeldung'; 
	document.antrag.vnngebjahr.focus();
	return false;    }
;}
/* Anschrift */

if(document.antrag.vnstr.value==""
 || document.antrag.vnstr.value==" ") {
   switch (dokulanguage) {
    case 'eng'	: alert("The street information is missing!"); break;
    case 'esp'	: alert("¡Falta indicar la calle!");  break;
    case 'chn'	: text=String.fromCharCode(32570)+String.fromCharCode(23569)+String.fromCharCode(34903)+String.fromCharCode(36947)+String.fromCharCode(21517)+String.fromCharCode(31216); alert(text); break;
    case 'trk'	: alert("Cadde belirtilmemistir!");  break;
       default	: alert("Die Straßenangabe fehlt!"); 
  }
	document.antrag.vnstr.className = 'phpfehlermeldung'; 
	document.antrag.vnstr.focus();
	return false;    }
	
if(document.antrag.vnplz.value==""
 || document.antrag.vnplz.value==" ") {
   switch (dokulanguage) {
    case 'eng'	: alert("Please enter your postcode!"); break;
    case 'esp'	: alert("¡Indique su código postal!");  break;
    case 'chn'	: text=String.fromCharCode(35831)+String.fromCharCode(22635)+String.fromCharCode(20889)+String.fromCharCode(37038)+String.fromCharCode(25919)+String.fromCharCode(32534)+String.fromCharCode(30721); alert(text); break;
    case 'trk'	: alert("Lütfen posta kodunu giriniz!");  break;
       default	: alert("Bitte geben Sie Ihre Postleitzahl ein!"); 
  }
	document.antrag.vnplz.className = 'phpfehlermeldung'; 
    document.antrag.vnplz.focus();
	return false;    }
	
var chkZ5 = 1;
if(document.antrag.vnland.value=="Deutschland" || document.antrag.vnland.value=="Oesterreich"  ){
var i =0;	
for(i=0;i<document.antrag.vnplz.value.length;++i) 
 if(document.antrag.vnplz.value.charAt(i) < "0"
 || document.antrag.vnplz.value.charAt(i) > "9") 
 
chkZ5 = -1; 
;}
if(chkZ5 == -1) 
{	
   switch (dokulanguage) {
    case 'eng'	: alert("The postal code may only contain numbers!"); break;
    case 'esp'	: alert("¡En la casilla código postal sólo puede apuntar números!");  break;
    case 'chn'	: text=String.fromCharCode(37038)+String.fromCharCode(25919)+String.fromCharCode(32534)+String.fromCharCode(30721)+String.fromCharCode(21482)+String.fromCharCode(33021)+String.fromCharCode(30001)+String.fromCharCode(25968)+String.fromCharCode(23383)+String.fromCharCode(32452)+String.fromCharCode(25104); alert(text); break;
    case 'trk'	: alert("Posta kodu sadece sayi içermelidir!");  break;
       default	: alert("Die Postleitzahl darf nur Zahlen beinhalten!"); 
  }
	document.antrag.vnplz.className = 'phpfehlermeldung'; 
	document.antrag.vnplz.focus();
	return false;    }
	
if(document.antrag.vnort.value==""
 || document.antrag.vnort.value=="Ort") {
   switch (dokulanguage) {
    case 'eng'	: alert("Please select your place of residence!"); break;
    case 'esp'	: alert("¡Seleccione su lugar de residencia!");  break;
    case 'chn'	: text=String.fromCharCode(35831)+String.fromCharCode(36873)+String.fromCharCode(25321)+String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(23621)+String.fromCharCode(20303)+String.fromCharCode(22320); alert(text); break;
    case 'trk'	: alert("Lütfen ikametgahinizi seçiniz!");  break;
       default	: alert("Wählen Sie bitte Ihren Wohnort aus!"); 
  }
	document.antrag.vnort.className = 'phpfehlermeldung'; 
	document.antrag.vnort.focus();
	return false; }

if(document.antrag.vnland.value==""
 || document.antrag.vnland.value=="--"
 || document.antrag.vnland.value=="Bitte auswählen"
 || document.antrag.vnland.value=="Bitte auswaehlen"
 || document.antrag.vnland.value=="Bitte Auswaehlen") {
   switch (dokulanguage) {
    case 'eng'	: alert("The country is missing in the contact information. Please complete this information!"); break;
    case 'esp'	: alert("¡Falta indicar el país dentro de las informaciones de contacto. ¡Por favor, complete este dato!");  break;
    case 'chn'	: text=String.fromCharCode(32852)+String.fromCharCode(31995)+String.fromCharCode(20449)+String.fromCharCode(24687)+String.fromCharCode(20013)+String.fromCharCode(32570)+String.fromCharCode(23569)+String.fromCharCode(22269)+String.fromCharCode(23478)+String.fromCharCode(12290)+String.fromCharCode(35831)+String.fromCharCode(22635)+String.fromCharCode(20889)+String.fromCharCode(23436)+String.fromCharCode(25972); alert(text); break;
    case 'trk'	: alert("Irtibat bilgileriyle ilgili ülke eksik. Lütfen bu bilgiyi tamamlayiniz!");  break;
       default	: alert("Wählen Sie bitte das Land in den Kontaktangaben aus!"); 
  }
	document.antrag.vnland.className = 'phpfehlermeldung'; 
	document.antrag.vnland.focus();
	return false; }


if( document.antrag.payment.value=="creditcard" 
 && document.antrag.zahlweise.value=="monatlich" ) 
{	
   switch (dokulanguage) {
    case 'eng'	: alert("Payment by creditcard is only possible, if you pay one-off!"); break;
    case 'esp'	: alert("¡Si se selecciona, como modo de pago, la tarjeta de crédito, deberá seleccionarse el pago único como forma de pago.!");  break;
    case 'chn'	: text=String.fromCharCode(21482)+String.fromCharCode(26377)+String.fromCharCode(19968)+String.fromCharCode(27425)+String.fromCharCode(24615)+String.fromCharCode(20184)+String.fromCharCode(36153)+String.fromCharCode(26041)+String.fromCharCode(24335)+String.fromCharCode(25165)+String.fromCharCode(33021)+String.fromCharCode(20351)+String.fromCharCode(29992)+String.fromCharCode(20449)+String.fromCharCode(29992)+String.fromCharCode(21345)+String.fromCharCode(65281); alert(text); break;
    case 'trk'	: alert("Kredi karti ile ödeme sadece bir defada toplam ödemelerde mümkündür!");  break;
       default	: alert("Die Zahlung per Kreditkarte ist nur bei Einmalzahlung möglich!"); 
  }
	document.antrag.zahlweise.className = 'phpfehlermeldung'; 
	document.antrag.zahlweise.focus();
	return false; }

/* zusätzliche Kontaktangaben */
  if( document.antrag.vmnr.value=="ZZAA000001"
   || document.antrag.vmnr.value=="ZZAA000002"
   || document.antrag.vmnr.value=="ZZAA000003"
   || document.antrag.vmnr.value=="ZZAA000004"
   || document.antrag.vmnr.value=="ZZAA000005"
   || document.antrag.vmnr.value=="ZZAA000006"
   || document.antrag.vmnr.value=="ZZAA000007"
   || document.antrag.vmnr.value=="ZZAA000008"
   || document.antrag.vmnr.value=="ZZAA000009"
   || document.antrag.vmnr.value=="ZZAA000010") 
	{ 
		if(document.antrag.email.value=="") 
			{
				switch (dokulanguage) {
					case 'eng' : mailcheckautomat = confirm("In case you don't want to fill in your e-mail-address, we can't send you additionally your documents via e-mail! If you don't want to fill in the e-mail, please click OK, otherwise klick Abbrechen."); break;
					case 'esp' : mailcheckautomat = confirm("Si no nota su email, no le podemos enviar sus documentos por correo electrónico. Si de todas maneras prefiere no notarla, apriete 'OK' sino apriete en 'Abbrechen/Cancelar'."); break;
					case 'chn' : mailcheckautomat = confirm(String.fromCharCode(22914)+String.fromCharCode(26524)+String.fromCharCode(27809)+String.fromCharCode(26377)+String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(30005)+String.fromCharCode(37038)+String.fromCharCode(22320)+String.fromCharCode(22336)+','+String.fromCharCode(23558)+String.fromCharCode(26080)+String.fromCharCode(27861)+String.fromCharCode(23558)+String.fromCharCode(20445)+String.fromCharCode(38505)+String.fromCharCode(25991)+String.fromCharCode(29486)+String.fromCharCode(20877)+String.fromCharCode(36890)+String.fromCharCode(36807)+String.fromCharCode(30005)+String.fromCharCode(37038)+String.fromCharCode(30340)+String.fromCharCode(26041)+String.fromCharCode(24335)+String.fromCharCode(20877)+String.fromCharCode(21457)+String.fromCharCode(32473)+String.fromCharCode(24744)+'.'+String.fromCharCode(22914)+String.fromCharCode(26524)+String.fromCharCode(24819)+String.fromCharCode(34917)+String.fromCharCode(20805)+String.fromCharCode(19978)+String.fromCharCode(24744)+String.fromCharCode(30340)+String.fromCharCode(30005)+String.fromCharCode(37038)+String.fromCharCode(22320)+String.fromCharCode(22336)+','+String.fromCharCode(35831)+String.fromCharCode(28857)+String.fromCharCode(28608)+String.fromCharCode(38142)+String.fromCharCode(25509)+'OK,'+String.fromCharCode(21542)+String.fromCharCode(21017)+String.fromCharCode(35831)+String.fromCharCode(28857)+String.fromCharCode(28608)+String.fromCharCode(38142)+String.fromCharCode(25509)+'ABBRECHEN'); break;
					case 'trk' : mailcheckautomat = confirm("Eger e-mail adresinizi bildirmeseniz, sigorta dokümanlarinizi ayrica e-mail olarak göndermemiz mümkün degil! Suanda e-mail adresi bildirmek istemiyorsaniz, lütfen ‘OK’yi yoksa ‘Abbrechen’ tiklayiniz."); break;
					default    : mailcheckautomat = confirm("Wenn Sie keine E-Mail-Adresse eingeben, können wir Ihnen Ihre Versicherungsunterlagen nicht zusätzlich per E-Mail zusenden! Wenn Sie jetzt keine E-Mail-Adresse ergänzen möchten, klicken Sie bitte auf OK, ansonsten auf Abbrechen."); break;
										}
		document.antrag.email.className = 'phpfehlermeldung';
		document.antrag.email.focus();
		if (mailcheckautomat == false) { return false; } ;
			}
	} 
else 
	{	
		if( document.antrag.email.value==""
		    || document.antrag.email.value=="e-Mail"
			|| document.antrag.email.value=="E-Mail"
			|| document.antrag.email.value=="EMail") {
		switch (dokulanguage) {
			case 'eng'	: alert("Please enter an email address!"); break;
			case 'esp'	: alert("¡No es una dirección válida de e-mail!");  break;
			case 'chn'	: text=String.fromCharCode(30005)+String.fromCharCode(23376)+String.fromCharCode(37038)+String.fromCharCode(20214)+String.fromCharCode(22320)+String.fromCharCode(22336)+String.fromCharCode(19981)+String.fromCharCode(27491)+String.fromCharCode(30830)+String.fromCharCode(65281); alert(text); break;
			case 'trk'	: alert("Bu geçerli bir e-posta adresi degildir!");  break;
			default	: alert("Bitte geben sie eine E-Mail Adresse an!"); 
  		}
	document.antrag.email.className = 'phpfehlermeldung'; 
    document.antrag.email.focus();
    return false; }
}

if( document.antrag.email.value!=""
 && document.antrag.email.value.indexOf('@', 0) == -1) {
   switch (dokulanguage) {
    case 'eng'	: alert("This is not a valid e-mail address!"); break;
    case 'esp'	: alert("¡No es una dirección válida de e-mail!");  break;
    case 'chn'	: text=String.fromCharCode(30005)+String.fromCharCode(23376)+String.fromCharCode(37038)+String.fromCharCode(20214)+String.fromCharCode(22320)+String.fromCharCode(22336)+String.fromCharCode(19981)+String.fromCharCode(27491)+String.fromCharCode(30830)+String.fromCharCode(65281); alert(text); break;
    case 'trk'	: alert("Bu geçerli bir e-posta adresi degildir!");  break;
       default	: alert("Das ist keine gültige E-Mail-Adresse!"); 
  }
	document.antrag.email.className = 'phpfehlermeldung'; 
    document.antrag.email.focus();
    return false; }
	
if( document.antrag.email.value!=""
 && document.antrag.email.value.indexOf('.', 0) == -1) {
   switch (dokulanguage) {
    case 'eng'	: alert("This is not a valid e-mail address!"); break;
    case 'esp'	: alert("¡No es una dirección válida de e-mail!");  break;
    case 'chn'	: text=String.fromCharCode(30005)+String.fromCharCode(23376)+String.fromCharCode(37038)+String.fromCharCode(20214)+String.fromCharCode(22320)+String.fromCharCode(22336)+String.fromCharCode(19981)+String.fromCharCode(27491)+String.fromCharCode(30830)+String.fromCharCode(65281); alert(text); break;
    case 'trk'	: alert("Bu geçerli bir e-posta adresi degildir!");  break;
       default	: alert("Das ist keine gültige E-Mail-Adresse!"); 
  }
	document.antrag.email.className = 'phpfehlermeldung'; 
    document.antrag.email.focus();
    return false; }

if( document.antrag.email.value!=""){
   var reg = /^[a-zA-Z0-9][\w\.-]*@(?:[a-zA-Z0-9][a-zA-Z0-9_-]+\.)+[A-Z,a-z]{2,5}$/;
   var address = document.antrag.email.value;
   if(reg.test(address) == false) {
   switch (dokulanguage) {
    case 'eng'	: alert("This is not a valid e-mail address!"); break;
    case 'esp'	: alert("¡No es una dirección válida de e-mail!");  break;
    case 'chn'	: text=String.fromCharCode(30005)+String.fromCharCode(23376)+String.fromCharCode(37038)+String.fromCharCode(20214)+String.fromCharCode(22320)+String.fromCharCode(22336)+String.fromCharCode(19981)+String.fromCharCode(27491)+String.fromCharCode(30830)+String.fromCharCode(65281); alert(text); break;
    case 'trk'	: alert("Bu geçerli bir e-posta adresi degildir!");  break;
       default	: alert("Das ist keine gültige E-Mail-Adresse!"); 
  }
	document.antrag.email.className = 'phpfehlermeldung'; 
    document.antrag.email.focus();
      return false;
   }
}


/*if( document.antrag.zahlweise.value=="--"
 || document.antrag.zahlweise.value=="" ) {
   switch (dokulanguage) {
    case 'eng'	: alert("Please choose, how you want to pay the insurance!"); break;
    case 'esp'	: alert("¡Por favor elija el modo de pago!");  break;
    case 'chn'	: text=String.fromCharCode(35831)+String.fromCharCode(24744)+String.fromCharCode(36873)+String.fromCharCode(25321)+String.fromCharCode(19968)+String.fromCharCode(31181)+String.fromCharCode(20184)+String.fromCharCode(27454)+String.fromCharCode(26041)+String.fromCharCode(24335)+String.fromCharCode(65281); alert(text); break;
    case 'trk'	: alert("Lütfen ödeme türünü seçin, para çekme müsadesi ile, kredi karti ile veya banka havalesi ile!");  break;
       default	: alert("Bitte wählen Sie aus, wie Sie die Versicherung bezahlen wollen!"); 
  }
	document.antrag.zahlweise.className = 'phpfehlermeldung'; 
    document.antrag.zahlweise.focus();
    return false; }	*/
	
/* Bedingungscheck */

 if(document.antrag.allebedingungen.checked) 	var chkAB = 1; 
if(chkAB != 1)
{
   switch (dokulanguage) {
    case 'eng'	: alert("To send the application you must acknowledge the terms and conditions of insurance by clicking on the box!"); break;
    case 'esp'	: alert("¡Para poder enviar la proposición, debe reconocer las condiciones de seguro marcando la casilla!");  break;
    case 'chn'	: text=String.fromCharCode(20026)+String.fromCharCode(20102)+String.fromCharCode(36882)+String.fromCharCode(20132)+String.fromCharCode(30003)+String.fromCharCode(35831)+String.fromCharCode(65292)+String.fromCharCode(24744)+String.fromCharCode(24517)+String.fromCharCode(39035)+String.fromCharCode(28857)+String.fromCharCode(20987)+String.fromCharCode(26041)+String.fromCharCode(26694)+String.fromCharCode(34920)+String.fromCharCode(31034)+String.fromCharCode(21516)+String.fromCharCode(24847)+String.fromCharCode(20445)+String.fromCharCode(38505)+String.fromCharCode(26465)+String.fromCharCode(20363)+String.fromCharCode(12290); alert(text); break;
    case 'trk'	: alert("Dilekçeyi göndermek için, sigorta sartlarimizi kutuyu tiklayarak kabul etmeniz gerekmektedir!");  break;
       default	: alert("Um den Antrag abzuschicken, müssen Sie die Versicherungsbedingungen durch Anklicken des Kästchens anerkennen!"); 
  }
	document.antrag.allebedingungen.className = 'phpfehlermeldung'; 
    document.antrag.allebedingungen.focus();    
	return false;    }
	
return check_tarif();
;    }	

