function checkNumber(field)
{
	if(field) 
	{
		if(field != '')
		{
			if(field.value.length > 0)
			{
				//alert("hello" + field.value + 'world');
				for (i = 0; i < field.value.length; ++i)
				{
					if (field.value.charAt(i) < "0" || field.value.charAt(i) > "9") 
					{
			
						alert("Bitte geben Sie eine Zahl ein.");
					  field.value = '';							  
						return false;
					}
				}
			}
			return true;
		}
	}	
}

function LandChange() {
	if($('FTKFZKenn'))
		$('FTKFZKenn').value = "";
  if($('geofeld'))
   	$('geofeld').value = "";    
  if($('myUmkreis'))
   	$('myUmkreis').value = "";    
  if($('city'))
  	$('city').innerHTML = "";	
}

function objektDetailCounterStarteAjax(KoderMAjax,quickAjax,BaujAbAjax,BaujBisAjax,ZiVonAjax,ZiBisAjax,WQMVonAjax,WQMBisAjax,GSQMVonAjax,GSQMBisAjax,BetrVonAjax,BetrBisAjax,flagort,KLANDAjax,PLZGeoAjax,UmkreisAjax,OrtIDAjax) {

		commandParameter = GetPortalCommand();
		sessionParameter = GetPortalSession();
		//Überprüfung ob Zahlen eingegeben wurden
		var maknrAjax = '0';
		var departnr = '';
		
		fertypAjax = '99,';
		gewtypAjax = '99,';
		woitypAjax = '99,';
		
		bWeiter = true;
		if(document.detailof) {		
			if(
				!(checkNumber(document.detailof.Umkreis) &&
				checkNumber(document.detailof.BaujAb) &&
				checkNumber(document.detailof.BaujBis) &&
				checkNumber(document.detailof.ZiVon) &&
				checkNumber(document.detailof.ZiBis) &&
				checkNumber(document.detailof.WQMVon) &&
				checkNumber(document.detailof.WQMBis) &&
				checkNumber(document.detailof.GSQMVon) &&	
				checkNumber(document.detailof.GSQMBis) &&	
				checkNumber(document.detailof.BetrVon) &&	
				checkNumber(document.detailof.BetrBis) &&
				checkNumber(document.detailof.XMieVon) &&
				checkNumber(document.detailof.XMieBis) ) 
			) {
				UmkreisAjax = document.detailof.Umkreis.value;
				BaujAbAjax= document.detailof.BaujAb.value;
				BaujBisAjax= document.detailof.BaujBis.value;
				ZiVonAjax= document.detailof.ZiVon.value;
				ZiBisAjax= document.detailof.ZiBis.value;
				WQMVonAjax= document.detailof.WQMVon.value;
				WQMBisAjax= document.detailof.WQMBis.value;
				GSQMVonAjax= document.detailof.GSQMVon.value;
				GSQMBisAjax= document.detailof.GSQMBis.value;
				BetrVonAjax= document.detailof.BetrVon.value;
				BetrBisAjax= document.detailof.BetrBis.value;
				XMieVonAjax = document.detailof.XMieVon.value;
				XMieBisAjax = document.detailof.XMieBis.value;
				PLZGeoAjax = document.detailof.PLZGeo.value;
			}
		}		

		bWeiter = true;	
		if(bWeiter) {	
			
			//Sonderfall für FTKFZKenn wegen Frankreich
			if (document.getElementById('qsot')){
				qsot = document.getElementById('qsot').value;
			}
			else{
				qsot = '';
			}
			if (document.getElementById('ajaxLand').value == 'F') {
				//FTKFZKennAjax = '';
				if(document.getElementById('regionAjax')){
					regionAjax = document.getElementById('regionAjax').value;
					if(regionAjax == ' ') {
						regionAjax = '';
					}
				}
				else {
					regionAjax = '';
				}
				
				if(document.getElementById('departnrajax')){
					departnr = document.getElementById('departnrajax').value;
				} else {
					departnr = '';
				}
				//alert(departnr);
				
				if(document.getElementById('departAjax')){
					departAjax = document.getElementById('departAjax').value;				
				}
				else {
					departAjax = '';
				}
				
				if(departnr != '') {
					departAjax = departnr;
				}
			}
			
			if (document.getElementById('ajaxLand').value != 'F') {
				regionAjax = '';
				departAjax = '';								
			}
			
			if (document.detailof.FTKFZKenn) {
					if (document.detailof.FTKFZKenn.value != '') {
						FTKFZKennAjax = document.detailof.FTKFZKenn.value;
					}
					else{
						FTKFZKennAjax = '';
					}
			}	else {
				FTKFZKennAjax = '';
			}
			//Abfrage nach Bundesland		
			if (document.getElementById('ajaxBuland')) {
				if (document.getElementById('ajaxBuland').value !='') {
					ajaxBuland = document.getElementById('ajaxBuland').value;
				}
			}
			else{
				ajaxBuland = '';
			}
			//Abfrage nach Kaufen, Miete, Beides
			if (document.getElementById('koderMKaufen').checked) {
				KoderMAjax = 'K';			
			}
			if (document.getElementById('koderMMieten').checked) {
				KoderMAjax = 'M';
			}
			if (document.getElementById('koderMBeides').checked) {
				KoderMAjax = 'B';
			}
			//Abfrage nach der Maknr und zuordnen für Ajax Suche
			if (document.getElementById('maknrBeide').checked) {
				maknrAjax = '0';
			}
			if (document.getElementById('maknrMakler').checked) {
				maknrAjax = '-111';
			}		
			if (document.getElementById('maknrPrivat').checked) {
				maknrAjax = '111';
			}
			if (document.getElementById('datepick').value !='')	{
				datepickerAjax = document.getElementById('datepick').value;
			}
			else {
				datepickerAjax = '';
			}
			if (document.getElementById('XMieVonAjax').value !='') {
				XMieVonAjax = document.getElementById('XMieVonAjax').value
			}
			else{
				XMieVonAjax = '';
			}
			if (document.getElementById('XMieBisAjax').value != '') {
				XMieBisAjax = document.getElementById('XMieBisAjax').value;
			}
			else{
				XMieBisAjax = '';
			}
			if (document.getElementById('OGruppeAjaxAlle').checked){
				OGruppeAjax = 'X'
			}
			if (document.getElementById('OGruppeAjaxWohnen').checked){
				OGruppeAjax = 'W'
			}		
			if (document.getElementById('OGruppeAjaxGewerbe').checked){
				OGruppeAjax = 'G'
			}		
			if (document.getElementById('OGruppeAjaxFerien').checked){
				OGruppeAjax = 'F'
			}
			//Wrapper für Objekteigenschaften
			sondtypAjax = '99,';
	if (OGruppeAjax == 'W' || OGruppeAjax == 'F' || OGruppeAjax == 'X' || OGruppeAjax == 'Y' || OGruppeAjax == '') {
			if (document.getElementById('jSond1').checked){
				sondtypAjax = sondtypAjax + '01,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('01,','');
			}
			if (document.getElementById('jSond2').checked){
				sondtypAjax = sondtypAjax + '02,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('02,','');
			}		
			if (document.getElementById('jSond3').checked){
				sondtypAjax = sondtypAjax + '03,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('03,','');
			}		
			if (document.getElementById('jSond4').checked){
				sondtypAjax = sondtypAjax + '04,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('04,','');
			}		
			if (document.getElementById('jSond5').checked){
				sondtypAjax = sondtypAjax + '05,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('05,','');
			}		
			if (document.getElementById('jSond6').checked){
				sondtypAjax = sondtypAjax + '06,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('06,','');
			}		
			if (document.getElementById('jSond7').checked){
				sondtypAjax = sondtypAjax + '07,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('07,','');
			}		
			if (document.getElementById('jSond8').checked){
				sondtypAjax = sondtypAjax + '08,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('08,','');
			}		
			if (document.getElementById('jSond9').checked){
				sondtypAjax = sondtypAjax + '09,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('09,','');
			}		
			if (document.getElementById('jSond10').checked){
				sondtypAjax = sondtypAjax + '10,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('10,','');
			}		
			if (document.getElementById('jSond11').checked){
				sondtypAjax = sondtypAjax + '11,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('11,','');
			}		
			if (document.getElementById('jSond12').checked){
				sondtypAjax = sondtypAjax + '12,';
			}
			else{
				sondtypAjax = sondtypAjax.replace('12,','');
			}		
			//if (document.getElementById('jSond13').checked){
			//	sondtypAjax = sondtypAjax + '13';
			//}
			//else{
			//	sondtypAjax = sondtypAjax.replace('13,','');
			//}		
			
			//Wrapper für H&auml;ckchen in der Ajax Suche		

			//Wohnen
	if (OGruppeAjax == 'W') {
			if (document.getElementById('jWoiTyp1').checked){
				woitypAjax = woitypAjax + '01,';	
			}
			else{
				woitypAjax = woitypAjax.replace('01,','');
			}
			if (document.getElementById('jWoiTyp2').checked){
				woitypAjax = woitypAjax + '02,';	
			}
			else{
				woitypAjax = woitypAjax.replace('02,','');
			}		
			if (document.getElementById('jWoiTyp3').checked){
				woitypAjax = woitypAjax + '03,';	
			}
			else{
				woitypAjax = woitypAjax.replace('03,','');
			}		
			if (document.getElementById('jWoiTyp4').checked){
				woitypAjax = woitypAjax + '04,';	
			}
			else{
				woitypAjax = woitypAjax.replace('04,','');
			}		
			if (document.getElementById('jWoiTyp5').checked){
				woitypAjax = woitypAjax + '05,';	
			}
			else{
				woitypAjax = woitypAjax.replace('05,','');
			}
			if (document.getElementById('jWoiTyp6').checked){
				woitypAjax = woitypAjax + '06,';	
			}
			else{
				woitypAjax = woitypAjax.replace('06,','');
			}				
			if (document.getElementById('jWoiTyp7').checked){
				woitypAjax = woitypAjax + '07,';	
			}
			else{
				woitypAjax = woitypAjax.replace('07,','');
			}		
			if (document.getElementById('jWoiTyp8').checked){
				woitypAjax = woitypAjax + '08,';	
			}
			else{
				woitypAjax = woitypAjax.replace('08,','');
			}		
			if (document.getElementById('jWoiTyp9').checked){
				woitypAjax = woitypAjax + '09,';	
			}
			else{
				woitypAjax = woitypAjax.replace('09,','');
			}		
			if (document.getElementById('jWoiTyp10').checked){
				woitypAjax = woitypAjax + '10,';	
			}
			else{
				woitypAjax = woitypAjax.replace('10,','');
			}		
			if (document.getElementById('jWoiTyp11').checked){
				woitypAjax = woitypAjax + '11,';	
			}
			else{
				woitypAjax = woitypAjax.replace('11,','');
			}				
			if (document.getElementById('jWoiTyp12').checked){
				woitypAjax = woitypAjax + '12,';	
			}
			else{
				woitypAjax = woitypAjax.replace('12,','');
			}				
			if (document.getElementById('jWoiTyp13').checked){
				woitypAjax = woitypAjax + '13,';	
			}
			else{
				woitypAjax = woitypAjax.replace('13,','');
			}				
			if (document.getElementById('jWoiTyp14').checked){
				woitypAjax = woitypAjax + '14,';	
			}
			else{
				woitypAjax = woitypAjax.replace('14,','');
			}				
			if (document.getElementById('jWoiTyp15').checked){
				woitypAjax = woitypAjax + '15,';	
			}
			else{
				woitypAjax = woitypAjax.replace('15,','');
			}				
			if (document.getElementById('jWoiTyp16').checked){
				woitypAjax = woitypAjax + '16,';	
			}
			else{
				woitypAjax = woitypAjax.replace('16,','');
			}				
			if (document.getElementById('jWoiTyp17').checked){
				woitypAjax = woitypAjax + '17,';	
			}
			else{
				woitypAjax = woitypAjax.replace('17,','');
			}				
			if (document.getElementById('jWoiTyp18').checked){
				woitypAjax = woitypAjax + '18,';	
			}
			else{
				woitypAjax = woitypAjax.replace('18,','');
			}				
			if (document.getElementById('jWoiTyp19').checked){
				woitypAjax = woitypAjax + '19,';	
			}
			else{
				woitypAjax = woitypAjax.replace('19,','');
			}				
			if (document.getElementById('jWoiTyp20').checked){
				woitypAjax = woitypAjax + '20,';	
			}
			else{
				woitypAjax = woitypAjax.replace('20,','');
			}				
			if (document.getElementById('jWoiTyp21').checked){
				woitypAjax = woitypAjax + '21,';	
			}
			else{
				woitypAjax = woitypAjax.replace('21,','');
			}		
		}		
}
		//Gewerbe
if (OGruppeAjax == 'G') {		
		if (document.getElementById('jGewTyp1').checked){
			gewtypAjax = gewtypAjax + '01,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('01,','');
		}
		if (document.getElementById('jGewTyp2').checked){
			gewtypAjax = gewtypAjax + '02,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('02,','');
		}		
		if (document.getElementById('jGewTyp3').checked){
			gewtypAjax = gewtypAjax + '03,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('03,','');
		}		
		if (document.getElementById('jGewTyp4').checked){
			gewtypAjax = gewtypAjax + '04,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('04,','');
		}		
		if (document.getElementById('jGewTyp5').checked){
			gewtypAjax = gewtypAjax + '05,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('05,','');
		}		
		if (document.getElementById('jGewTyp6').checked){
			gewtypAjax = gewtypAjax + '06,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('06,','');
		}		
		if (document.getElementById('jGewTyp7').checked){
			gewtypAjax = gewtypAjax + '07,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('07,','');
		}		
		if (document.getElementById('jGewTyp8').checked){
			gewtypAjax = gewtypAjax + '08,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('08,','');
		}		
		if (document.getElementById('jGewTyp9').checked){
			gewtypAjax = gewtypAjax + '09,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('09,','');
		}		
		if (document.getElementById('jGewTyp10').checked){
			gewtypAjax = gewtypAjax + '10,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('10,','');
		}		
		if (document.getElementById('jGewTyp11').checked){
			gewtypAjax = gewtypAjax + '11,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('11,','');
		}		
		if (document.getElementById('jGewTyp12').checked){
			gewtypAjax = gewtypAjax + '12,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('12,','');
		}		
		if (document.getElementById('jGewTyp13').checked){
			gewtypAjax = gewtypAjax + '13,';	
		}
		else{
			gewtypAjax = gewtypAjax.replace('13,','');
		}		
}
		//Ferien
if (OGruppeAjax == 'F') {		
		if (document.getElementById('jFerTyp1').checked){
			fertypAjax = fertypAjax + '01,';
		}
		else{
			fertypAjax = fertypAjax.replace('01,','');
		}
		if (document.getElementById('jFerTyp2').checked){
			fertypAjax = fertypAjax + '02,';
		}
		else{
			fertypAjax = fertypAjax.replace('02,','');
		}
		if (document.getElementById('jFerTyp3').checked){
			fertypAjax = fertypAjax + '03,';
		}
		else{
			fertypAjax = fertypAjax.replace('03,','');
		}
		if (document.getElementById('jFerTyp4').checked){
			fertypAjax = fertypAjax + '04,';
		}
		else{
			fertypAjax = fertypAjax.replace('04,','');
		}
		if (document.getElementById('jFerTyp5').checked){
			fertypAjax = fertypAjax + '05,';
		}
		else{
			fertypAjax = fertypAjax.replace('05,','');
		}			
}
		//Wrapper für Startseite, wegen OrtID.value Feld
		if (document.getElementById('cities')) {
			ORTIDAjax = document.getElementById('cities').value;
			ORTIDAjax = encodeURIComponent(OrtIDAjax);
			
			if (ORTIDAjax == 'undefined') {				
				ORTIDAjax = document.getElementById('cities').value;
			}
		}
		else{
			ORTIDAjax = '';
		}
		var chkZ = 1;
		var ortflag = '';
		url = '/Trefferanzahl:' + sessionParameter + ':' + commandParameter;	
		try {
			if (window.XMLHttpRequest) {
				objektCounterReq = new XMLHttpRequest();
			} else if (window.ActiveXObject) {
				objektCounterReq = new ActiveXObject("Microsoft.XMLHTTP");
			} else {
				alert("Bitte aktivieren Sie JavaScript.");
			}
			
			//Prüfen ob Ort für Fallunterscheidung
			ortflaglaenge =  FTKFZKennAjax.length;		 

			if (ortflaglaenge < 3) { 
				ortflag = 'false';
			}

			if (ortflaglaenge > 3) { 
				ortflag = 'true';
			}			
			
			
			unixtimeTmp = new Date();
			unixtime = unixtimeTmp.getTime();
			//XMieVonAjax = encodeURIComponent(XMieVonAjax);	
			//XMieBisAjax = encodeURIComponent(XMieBisAjax);	
			datepickerAjax = encodeURIComponent(datepickerAjax);	
			maknrAjax = encodeURIComponent(maknrAjax);
			KoderMAjax = encodeURIComponent(KoderMAjax);
			FTKFZKennAjax = encodeURIComponent(FTKFZKennAjax);
			KoderMAjax = encodeURIComponent(KoderMAjax);
			quickAjax = encodeURIComponent(quickAjax);
			BaujAbAjax = encodeURIComponent(BaujAbAjax);
			BaujBisAjax = encodeURIComponent(BaujBisAjax);
			ZiVonAjax = encodeURIComponent(ZiVonAjax);
			ZiBisAjax = encodeURIComponent(ZiBisAjax);
			WQMVonAjax = encodeURIComponent(WQMVonAjax);
			WQMBisAjax = encodeURIComponent(WQMBisAjax);
			GSQMVonAjax = encodeURIComponent(GSQMVonAjax);
			GSQMBisAjax = encodeURIComponent(GSQMBisAjax);
			BetrVonAjax = encodeURIComponent(BetrVonAjax);
			BetrBisAjax = encodeURIComponent(BetrBisAjax);
			KLANDAjax = encodeURIComponent(KLANDAjax);
			PLZGeoAjax = encodeURIComponent(PLZGeoAjax);
			UmkreisAjax = encodeURIComponent(UmkreisAjax);
			searchString = FTKFZKennAjax + ZiVonAjax;
			searchString = encodeURIComponent(searchString);	
			
			
			//window.document.getElementById("hitDiv").innerHTML = '';
			//$('hitdiv-wrapper').hide();
		
			objektCounterReq.open("POST", url, true);
			objektCounterReq.onreadystatechange = 	function () {
	if (4 == objektCounterReq.readyState) {
		if (200 != objektCounterReq.status) {
			window.document.getElementById("hitDiv").innerHTML = '---';
			if($('ortstreffer'))
			{
				document.getElementById('ortstreffer').style.visibility= 'hidden';
			}
		} else {
			//window.document.getElementById("objektCounterAjaxDiv").innerHTML = objektCounterReq.responseText;
			buttontextforsplittrash = objektCounterReq.responseText;
			buttontextforsplit = buttontextforsplittrash;
			buttontextforsplit = buttontextforsplit.split('~');
			buttontext = buttontextforsplit[0];
			ortstext = buttontextforsplit[1];
			document.getElementById('hitDiv').innerHTML= buttontext + 'Treffer';			
			//document.getElementById('pressenterFirst').value= buttontext + 'Treffer anzeigen';
			if($('ortstreffer'))
			{
				if (flagort=='true') {
					$('ortstreffer').innerHTML= ortstext;
					$('ortstreffer').style.visibility= 'visible';
				}
				else{
					$('ortstreffer').innerHTML= '';
					$('ortstreffer').style.visibility= 'hidden';				
				}
			}
			buttonObject = deleteSpaces(objektCounterReq.responseText);
			buttonObject = buttonObject.replace(/\n/,"");
		}
	}
};
			var include_ausland = "";
			if($('include-ausland')) {
				include_ausland = $('include-ausland').value;
			}
			objektCounterReq.send('FTKFZKennAjax=' + FTKFZKennAjax + '&' + 'KoderMAjax=' + KoderMAjax + '&' + 'quickAjax=' + quickAjax + '&' + 'BaujAbAjax=' + BaujAbAjax + '&' + 'BaujBisAjax=' + BaujBisAjax + '&' + 'ZiVonAjax=' + ZiVonAjax + '&' + 'ZiBisAjax=' + ZiBisAjax + '&' + 'WQMVonAjax=' + WQMVonAjax + '&' + 'WQMBisAjax=' + WQMBisAjax + '&' + 'GSQMVonAjax=' + GSQMVonAjax + '&' + 'GSQMBisAjax=' + GSQMBisAjax + '&' + 'BetrVonAjax=' + BetrVonAjax + '&' + 'BetrBisAjax=' + BetrBisAjax + '&' + 'KLANDAjax=' + KLANDAjax + '&' + 'PLZGeoAjax=' + PLZGeoAjax + '&' + 'UmkreisAjax=' + UmkreisAjax + '&' + 'OrtIDAjax=' + ORTIDAjax + '&' +  'maknrAjax=' + maknrAjax + '&' + 'datepickerAjax=' + datepickerAjax + '&' + 'XMieVonAjax=' + XMieVonAjax + '&' + 'XMieBisAjax=' + XMieBisAjax + '&' + 'OGruppeAjax=' + OGruppeAjax + '&' + 'fertypAjax=' + fertypAjax + '&' + 'gewtypAjax=' + gewtypAjax + '&' + 'woitypAjax=' + woitypAjax + '&' + 'sondtypAjax=' + sondtypAjax + '&' + 'ajaxBuland=' + ajaxBuland + '&' + 'regionAjax=' + regionAjax + '&' + 'departAjax=' + departAjax + '&' + 'qsot=' + qsot + '&' + 'cbIncludeFrontier=' + include_ausland);
																																																																																																																																																																																																																																																				
			//Wurde gesendet - nun leeren
			FTKFZKennAjax= '';
			KoderMAjax= '';
			quickAjax= '';
			BaujAbAjax= '';
			BaujBisAjax= '';
			ZiVonAjax= '';
			ZiBisAjax= '';
			WQMVonAjax= '';
			WQMBisAjax= '';
			GSQMVonAjax= '';
			GSQMBisAjax= '';
			BetrVonAjax= '';
			BetrBisAjax= '';
			PLZGeoAjax = '';
			UmkreisAjax = '';
			OrtIDAjax = '';
		} catch (e) {
			alert("Fehler: " + e);
		}
	}
}

function CheDKLandMain() {
commandParameter = GetPortalCommand();
sessionParameter = GetPortalSession();
var aktForm = null;
if(document.detailof) aktForm = document.detailof;
if(document.detailmak) aktForm = document.detailmak;
if (aktForm) {
   //aktForm.Umkreis.value = "";
   aktForm.PLZVon.value = "";
   //aktForm.PLZGeo.value = "";
   aktForm.cbIncludeFrontier.value = "";
   //$('city').innerHTML = '';
   aktForm.ORTSel.value = "";
	if(aktForm.FTKFZKenn)
		aktForm.FTKFZKenn.value = "";
  if(aktForm.PLZGeo)
   	aktForm.PLZGeo.value = "";    
  if(aktForm.Umkreis)
   	aktForm.Umkreis.value = "";    
  if($('city'))
  	$('city').innerHTML = "";
   	   	
 if(aktForm.KLAND.selectedIndex > 1) {
  /*if(aktForm.Umkreis.value > "0") {
   aktForm.Umkreis.value = "";
   aktForm.PLZVon.value = "";
   $('city').innerHTML = '';
   //aktForm.ORTSel.value = "";
  }*/
  if(aktForm.BULAND) {
   if(aktForm.BULAND.selectedIndex > 0)
    aktForm.BULAND.selectedIndex = 0;
   aktForm.TKFZKenn.value = "";
   aktForm.KFZKenn.selectedIndex = 0;
  }
 } 
 if(aktForm.KLAND.options[aktForm.KLAND.selectedIndex].value == "F") {
   if(aktForm.FormIst.value != "F") {
     aktForm.FormSoll.value = "F";
     aktForm.LisAbr.value="J";         
     aktForm.action='/suchenofwrapper:' + sessionParameter + ':' + commandParameter;
     aktForm.submit();
   }
 } else {
   if(aktForm.REGION) {
    if(aktForm.REGION.selectedIndex > 0)
     aktForm.REGION.selectedIndex = 0;
    aktForm.DEPARTNR.value = "";
    aktForm.DEPART.selectedIndex = 0;    
   } 
   if(aktForm.FormIst.value == "F") {
     aktForm.FormSoll.value = "D";
     aktForm.LisAbr.value="J";
     aktForm.action='/suchenofwrapper:' + sessionParameter + ':' + commandParameter;
     aktForm.submit();
   }
 }
 //Nicht Frankreich, aber Deutschland
 if(aktForm.KLAND.options[aktForm.KLAND.selectedIndex].value != "F") {
     if(aktForm.KLAND.options[aktForm.KLAND.selectedIndex].value != "F") {
     aktForm.FormSoll.value = "D";
     aktForm.LisAbr.value="J";
     aktForm.action='/suchenofwrapper:' + sessionParameter + ':' + commandParameter;
     aktForm.submit();
   
 	}
 //Nicht Deutschland - dann Umkreis löschen
  if(aktForm.KLAND.options[aktForm.KLAND.selectedIndex].value != "D") {
     aktForm.FormSoll.value = "D";
     aktForm.LisAbr.value="J";
     aktForm.Umkreis.value='';
     aktForm.PLZGeo.value='';
     aktForm.OrtID.value='';
     aktForm.action='/suchenofwrapper:' + sessionParameter + ':' + commandParameter;
     aktForm.submit();
}
}
}
}

function geoChecker(){
	if(document.getElementById('geofeld')) {
  				plzVon = document.detailof.PLZGeo.value;
					plzLaenge = plzVon.length;	
					
					if (plzLaenge >= 4) {
							document.detailof.Umkreis.style.background = '#FFFFFF';
							document.detailof.Umkreis.readOnly = false;
					}
  			}	
}

function chkSeiteNr(){
		var newnumber = document.getElementById('mypages').value;
		//alert(newnumber);
		var userpage = document.getElementById('mySeiteNr').value;
		newnumber = parseInt(newnumber);
		userpage = parseInt(userpage);		
		var chkZ = 1;
  	for (i = 0; i < document.getElementById('mySeiteNr').value.length; ++i)
    	if (document.getElementById('mySeiteNr').value.charAt(i) < "0" ||
      	  document.getElementById('mySeiteNr').value.charAt(i) > "9")
      	chkZ = -1;
  	if (chkZ == -1) {
    	alert("Bitte geben Sie eine Zahl ein.");
    	document.getElementById('mySeiteNr').value = '';
    	document.getElementById('mySeiteNr').focus();
    	return false;
  	}
  	else{ 
  		if(userpage != newnumber){
	  		if(userpage > newnumber){  
	  			alert("Die von Ihnen angeforderte Seite existiert nicht.");  			
	  			document.getElementById('mySeiteNr').value = '';
	  			document.getElementById('mySeiteNr').focus();
	  		}  	
	  	}
  		if(userpage == '0'){  			
  			alert("Die von Ihnen angeforderte Seite existiert nicht.");  			
  			document.getElementById('mySeiteNr').value = '';
  			document.getElementById('mySeiteNr').focus();
  		} 
  	}
	}

function chkSeiteNrSecond(){
		var newnumber = GetPortalPages();		
		var userpage = document.getElementById('mySeiteNrSecond').value;
		newnumber = parseInt(newnumber);
		userpage = parseInt(userpage);		
		var chkZ = 1;
  	for (i = 0; i < document.getElementById('mySeiteNrSecond').value.length; ++i)
    	if (document.getElementById('mySeiteNrSecond').value.charAt(i) < "0" ||
      	  document.getElementById('mySeiteNrSecond').value.charAt(i) > "9")
      	chkZ = -1;
  	if (chkZ == -1) {
    	alert("Bitte geben Sie eine Zahl ein.");
    	document.getElementById('mySeiteNrSecond').value = '';
    	document.getElementById('mySeiteNrSecond').focus();
    	return false;
  	}
  	else{  		
  		if(userpage > newnumber){  
  			alert("Die von Ihnen ausgew&auml;hlte Seite existiert nicht.");  			
  			document.getElementById('mySeiteNrSecond').value = '';
  			document.getElementById('mySeiteNrSecond').focus();
  		}  	
  		if(userpage == '0'){  			
  			alert("Die von Ihnen ausgew&auml;hlte Seite existiert nicht.");  			
  			document.getElementById('mySeiteNrSecond').value = '';
  			document.getElementById('mySeiteNrSecond').focus();
  		} 
  	}
	}	

function backLeftSide(){
				commandParameter = GetPortalCommand();
				sessionParameter = GetPortalSession();
				//alert(commandParameter);
				//alert(sessionParameter);
				var chkZ = 1;
				var ortflag = '';
				document.detailof.quicksearchobjekttyp.value = '';
				document.detailof.FTKFZKenn.value = '';
				document.detailof.PLZGeo.value = '';
				document.detailof.Umkreis.value = '';
				document.detailof.KoderM.value = 'B';
				document.getElementById('quick').value='';
				document.detailof.BaujAb.value = '';
				document.detailof.BaujBis.value = '';
				document.detailof.ZiVon.value = '';
				document.detailof.ZiBis.value = '';
				document.detailof.WQMVon.value = '';
				document.detailof.WQMBis.value = '';
				document.detailof.GSQMVon.value = '';
				document.detailof.GSQMBis.value = '';
				document.detailof.BetrVon.value = '';
				document.detailof.BetrBis.value = '';				
				document.detailof.KLAND.value = 'D';		
				if(document.getElementById('oldcity')){
					document.getElementById('oldcity').style.display='none';
				}
				document.detailof.action='/suchenInit:' + sessionParameter + ':' + commandParameter;
     		document.detailof.submit();
			}

function objektCounterStarteAjax(FTKFZKennAjax,KoderMAjax,quickAjax,BaujAbAjax,BaujBisAjax,ZiVonAjax,ZiBisAjax,WQMVonAjax,WQMBisAjax,GSQMVonAjax,GSQMBisAjax,BetrVonAjax,BetrBisAjax,flagort,KLANDAjax,PLZGeoAjax,UmkreisAjax,OrtIDAjax) {				
		commandParameter = GetPortalCommand();
		sessionParameter = GetPortalSession();
		//Überprüfung ob Zahlen eingegeben wurden
		
		var bWeiter = true;
		if(document.detailof) {				
			if(
				!(checkNumber(document.detailof.Umkreis) &&				
				checkNumber(document.detailof.BaujAb) &&
				checkNumber(document.detailof.BaujBis) &&
				checkNumber(document.detailof.ZiVon) &&
				checkNumber(document.detailof.ZiBis) &&
				checkNumber(document.detailof.WQMVon) &&
				checkNumber(document.detailof.WQMBis) &&
				checkNumber(document.detailof.GSQMVon) &&
				checkNumber(document.detailof.GSQMBis) &&	
				checkNumber(document.detailof.BetrVon) &&	
				checkNumber(document.detailof.BetrBis))
			) {
				
			if(document.detailof.Umkreis)
				UmkreisAjax = document.detailof.Umkreis.value
			if(document.detailof.BaujAb)
				BaujAbAjax= document.detailof.BaujAb.value
			if(document.detailof.BaujBis)
				BaujBisAjax= document.detailof.BaujBis.value
			if(document.detailof.ZiVon)
				ZiVonAjax= document.detailof.ZiVon.value
			if(document.detailof.ZiBis)
				ZiBisAjax= document.detailof.ZiBis.value
			if(document.detailof.WQMVon)
				WQMVonAjax= document.detailof.WQMVon.value
			if(document.detailof.WQMBis)
				WQMBisAjax= document.detailof.WQMBis.value
			if(document.detailof.GSQMVon)
				GSQMVonAjax= document.detailof.GSQMVon.value
			if(document.detailof.GSQMBis)
				GSQMBisAjax= document.detailof.GSQMBis.value
			if(document.detailof.BetrVon)
				BetrVonAjax= document.detailof.BetrVon.value
			if(document.detailof.BetrBis)
				BetrBisAjax= document.detailof.BetrBis.value
			if(document.detailof.XMieVon)
				XMieVonAjax = document.detailof.XMieVon.value
			if(document.detailof.XMieBis)
				XMieBisAjax = document.detailof.XMieBis.value
			if(document.detailof.PLZGeo)
				PLZGeoAjax = document.detailof.PLZGeo.value
			}
		}
		//**** 13.01.2010

		if(bWeiter) {

			if (document.getElementById('qsot')){
				qsot = document.getElementById('qsot').value;
			}
			else{
				qsot = '';
			}
			//****
			
			//Wrapper für Startseite, wegen OrtID.value Feld
			if (document.getElementById('cities')) {
				ORTIDAjax = document.getElementById('cities').value;			
				ORTIDAjax = encodeURIComponent(OrtIDAjax);						
				if (ORTIDAjax == 'undefined') {				
					ORTIDAjax = document.getElementById('cities').value;				
				}
			}
			else{
				ORTIDAjax = '';
			}
			var chkZ = 1;
			var ortflag = '';
			url = '/Trefferanzahl:' + sessionParameter + ':' + commandParameter;	
			try {
				if (window.XMLHttpRequest) {
					objektCounterReq = new XMLHttpRequest();
				} else if (window.ActiveXObject) {
					objektCounterReq = new ActiveXObject("Microsoft.XMLHTTP");
				} else {
					alert("Bitte aktivieren Sie JavaScript.");
				}
				
				//Prüfen ob Ort für Fallunterscheidung
				ortflaglaenge =  FTKFZKennAjax.length;		 
	
				if (ortflaglaenge < 3) { 
					ortflag = 'false';
				}
	
				if (ortflaglaenge > 3) { 
					ortflag = 'true';
				}			
				
				
				unixtimeTmp = new Date();
				unixtime = unixtimeTmp.getTime();			
				KoderMAjax = encodeURIComponent(KoderMAjax);
				FTKFZKennAjax = encodeURIComponent(FTKFZKennAjax);
				KoderMAjax = encodeURIComponent(KoderMAjax);
				quickAjax = encodeURIComponent(quickAjax);
				BaujAbAjax = encodeURIComponent(BaujAbAjax);
				BaujBisAjax = encodeURIComponent(BaujBisAjax);
				ZiVonAjax = encodeURIComponent(ZiVonAjax);
				ZiBisAjax = encodeURIComponent(ZiBisAjax);
				WQMVonAjax = encodeURIComponent(WQMVonAjax);
				WQMBisAjax = encodeURIComponent(WQMBisAjax);
				GSQMVonAjax = encodeURIComponent(GSQMVonAjax);
				GSQMBisAjax = encodeURIComponent(GSQMBisAjax);
				BetrVonAjax = encodeURIComponent(BetrVonAjax);
				BetrBisAjax = encodeURIComponent(BetrBisAjax);
				KLANDAjax = encodeURIComponent(KLANDAjax);
				PLZGeoAjax = encodeURIComponent(PLZGeoAjax);
				UmkreisAjax = encodeURIComponent(UmkreisAjax);
				searchString = FTKFZKennAjax + ZiVonAjax;
				searchString = encodeURIComponent(searchString);	
					
				//window.document.getElementById("pressenter").value = 'Treffer anzeigen';
				
					
				objektCounterReq.open("POST", url, true);
				objektCounterReq.onreadystatechange = 	function () {
		if (4 == objektCounterReq.readyState) {
			if (200 != objektCounterReq.status) {
				
					if(document.getElementById("pressenter")){
						window.document.getElementById("pressenter").value = '---';
					}
					if(document.getElementById('ortstreffer')){
					document.getElementById('ortstreffer').style.visibility= 'hidden';
					}	
								
			} else {
				//window.document.getElementById("objektCounterAjaxDiv").innerHTML = objektCounterReq.responseText;
				buttontextforsplittrash = objektCounterReq.responseText;
				buttontextforsplit = buttontextforsplittrash;
				buttontextforsplit = buttontextforsplit.split('~');
				buttontext = buttontextforsplit[0];
				ortstext = buttontextforsplit[1];		
				if(document.getElementById("hitDiv")) {
					document.getElementById('hitDiv').innerHTML = buttontext + 'Treffer';
				} else {	
					document.getElementById('pressenter').value= buttontext + 'Treffer anzeigen';	
				}
	
				//document.getElementById('pressenterFirst').value= buttontext + 'Treffer anzeigen';
				if($('ortstreffer'))
				{
					if (flagort=='true') {
						$('ortstreffer').innerHTML= ortstext;
						$('ortstreffer').style.visibility= 'visible';
					}
					else{
						$('ortstreffer').innerHTML= '';
						$('ortstreffer').style.visibility= 'hidden';				
					}
				}
				buttonObject = deleteSpaces(objektCounterReq.responseText);
				buttonObject = buttonObject.replace(/\n/,"");
			}
		}
	};
			var include_ausland = "";
			if($('include-ausland')) {
				include_ausland = $('include-ausland').value;
			}
			
				objektCounterReq.send('FTKFZKennAjax=' + FTKFZKennAjax + '&' + 'KoderMAjax=' + KoderMAjax + '&' + 'quickAjax=' + quickAjax + '&' + 'BaujAbAjax=' + BaujAbAjax + '&' + 'BaujBisAjax=' + BaujBisAjax + '&' + 'ZiVonAjax=' + ZiVonAjax + '&' + 'ZiBisAjax=' + ZiBisAjax + '&' + 'WQMVonAjax=' + WQMVonAjax + '&' + 'WQMBisAjax=' + WQMBisAjax + '&' + 'GSQMVonAjax=' + GSQMVonAjax + '&' + 'GSQMBisAjax=' + GSQMBisAjax + '&' + 'BetrVonAjax=' + BetrVonAjax + '&' + 'BetrBisAjax=' + BetrBisAjax + '&' + 'KLANDAjax=' + KLANDAjax + '&' + 'PLZGeoAjax=' + PLZGeoAjax + '&' + 'UmkreisAjax=' + UmkreisAjax + '&' + 'OrtIDAjax=' + ORTIDAjax + '&' + 'qsot=' + qsot + '&' + 'cbIncludeFrontier=' + include_ausland);
																																																																																																																																																																																																																																																										
				//Wurde gesendet - nun leeren
				FTKFZKennAjax= '';
				KoderMAjax= '';
				quickAjax= '';
				BaujAbAjax= '';
				BaujBisAjax= '';
				ZiVonAjax= '';
				ZiBisAjax= '';
				WQMVonAjax= '';
				WQMBisAjax= '';
				GSQMVonAjax= '';
				GSQMBisAjax= '';
				BetrVonAjax= '';
				BetrBisAjax= '';
				PLZGeoAjax = '';
				UmkreisAjax = '';
				OrtIDAjax = '';
			} catch (e) {
				alert("Fehler: " + e);
			}
	}
}

function convertTextToScript(scripts){
  /*Sorgt dafuer das eine Seite die ueber den XMLhttpRequest geladen wird, 
    auch weiterhin skriptfaehig bleibt*/	
  try
	{	if(scripts != '')	
		{	var script = "";
			scripts = scripts.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(){
	    if (scripts !== null) script += arguments[1] + '\n';
 	    	return '';});
			if(script) (window.execScript) ? window.execScript(script) : window.setTimeout(script, 0);
		}
		return false;
	}
	catch(e)
	{	alert(e)
	}
}

	function deleteSpaces(string) {
	 var temp = "";
	 string = '' + string;
	 splitstring = string.split(" ");
	 for(i = 0; i < splitstring.length; i++)
	 temp += splitstring[i];
	 return temp;
}

		function tabSwitcherTabOffer(){
			document.getElementById('tabswitcher').className = 'search isoffer';			
		}

		function tabSwitcherTabSearch(){
			document.getElementById('tabswitcher').className = 'search issearch';
		}	

	function ValidateZipMain(el) {
		if($('land').value.length == 0 || $('land').value == ' ') {
		  $('city').innerHTML = '';
		  
		  if(el.length > 0) {
		  	alert('Selektieren Sie ein Land!');
		  	$('land').focus();
		  }	  
		  return false;
		}
	
		if(el.length < 4) {
			$('city').innerHTML = '';
				return false;
			}
			return true;
		}
	
		function ObserveZipMain(el, id, name) {
			if(!ValidateZipMain(el))
				return;
			var url = DecorateURLwithPage('pgCityByZipCode') + 
			'zipcode=' + el + ',land=' + $('ajaxLand').value + 
			',selectid=' + id + ',selectname=' + name;
			
			new Ajax.Updater('city', url);	
		}
		
		function checkUmkreisSuche(AForm){
			
			if (AForm == undefined) {
				AForm = document.detailof;
			}
			checkNumber(document.detailof.PLZGeo);
			plzLaenge = '';
			AForm.FTKFZKenn.value = '';
			plzVon = AForm.PLZGeo.value;
			plzLaenge = plzVon.length;
			if (plzLaenge >= 4) {
				//Umkreisfeld kann entsperrt werden
				AForm.Umkreis.style.background = '#FFFFFF';
				AForm.Umkreis.readOnly = false;
				//document.detailof.ORTSel.style.background = '#FFFFFF';
				//document.detailof.ORTSel.readOnly = false;										
			} else{
				AForm.Umkreis.style.background = '#DADADA';
				AForm.Umkreis.readOnly = true;
				//document.detailof.ORTSel.style.background = '#DADADA';
				//document.detailof.ORTSel.readOnly = true;		
				
					$('pressenter').value = "Treffer anzeigen";
				
			}			
			el = AForm.PLZGeo.value;				
				
			ObserveZipMain(el, 'cities', 'OrtID');	
			
			//Nun das Macro aufrufen mit der Ajax Ansteuerung für Umkreis
			//objektCounterStarteAjax(FTKFZKenn.value,document.detailof.KoderM.options[document.detailof.KoderM.selectedIndex].value,document.getElementById('quick').value,BaujAb.value,BaujBis.value,ZiVon.value,ZiBis.value,WQMVon.value,WQMBis.value,GSQMVon.value,GSQMBis.value,BetrVon.value,BetrBis.value,'false',KLAND.value,PLZGeo.value,Umkreis.value,mycity);
		}

function killUmkreisSuche(){
	document.detailof.Umkreis.style.background = '#DADADA';
	document.detailof.Umkreis.readOnly = true;
	document.detailof.PLZGeo.value='';
	document.detailof.Umkreis.value='';
	$('city').innerHTML = '';
}


function ChangeExposeImage(sSource, text) {
	document.getElementById('expose-image').src = sSource;
	document.getElementById('image-title').innerHTML = text;	
}

function GetDataFromMeta(name) {
  var meta = document.getElementsByTagName("META");
  for (var idx = 0; idx < meta.length; idx++)
  {
    if (meta[idx].getAttribute("name") == name)
    {
      return meta[idx].getAttribute("content");
    }
  }
  return null;
}

function GetPortalURL() {
	return GetDataFromMeta("URL");
}

function GetPortalSession() {
	return GetDataFromMeta("Session");
}
function GetPortalCommand() {
	return GetDataFromMeta("Command");
}

function GetPortalPages() {
	return GetDataFromMeta("MyPages");
}
function DecoratePortalURL(path, page, session, parameter) {
	return path + page + ':' + session + ':' + parameter;		
}

function DecorateURLwithPage(page) {
	return DecoratePortalURL(GetPortalURL(), page, GetPortalSession(), '');
}

function ValidateZip(el) {
	if($('land').value.length == 0 || $('land').value == ' ') {
	  $('city').innerHTML = '';
	  
	  if(el.value.length > 0) {
	  	alert('Selektieren Sie ein Land!');
	  	$('land').focus();
	  }	  
	  return false;
	}
	
	if(el.value.length < 4) {
		$('city').innerHTML = '';
		return false;
	}
	return true;
}

function ObserveZip(el, id, name) {
	if(!ValidateZip(el))
		return;
	
	var url = DecorateURLwithPage('pgCityByZipCode') + 
	'zipcode=' + el.value + ',land=' + $('land').value + 
	',selectid=' + id + ',selectname=' + name;
		
	new Ajax.Updater('city', url);	
}

function LandChanged(element, value) {
	if(fullzipland.indexOf(value) != -1) {		
		$('search-zip').value = '';
		$('city').innerHTML = '';	
		$('manual').hide();
		$('search').show();
		$('manual-zip').value = '';
		$('manual-city').value = '';
		
	} else {
		$('manual-zip').value = '';
		$('manual-city').value = '';
		$('search').hide();
		$('manual').show();
		$('search-zip').value = '';
		$('city').innerHTML = '';
	}
}

function ObserveSearchArea() {
	if($('search-mode').checked) {
		$('search-area').show();
		$('search-city').hide();
	} else {
		$('search-area').hide();
		$('search-city').show();
	}	
}

var lbox;

function GSUpdateCities(land, id) {
	var url = DecorateURLwithPage('pggscities') + 'land=' + land + ',region=' + id;
	lbox = new lightbox(url, false, true);
}

function GSUpdateCitiesRange(land, from, to) {
	var url = DecorateURLwithPage('pggscities') + 'land=' + land + ',from=' + from + ',to=' + to;
	lbox = new lightbox(url, false, true);
}

	function GSAddCity(id) {
		choiced_id = 'gs-choice-' + id;
		new_id = 'gs-selected-' + id;
		if(!$(new_id)) {
			var element = $(choiced_id).cloneNode(true);
			var link = element.getElementsByTagName('a')[0];
			var input = element.getElementsByTagName('input')[0];
			element.id = new_id;
			input.name = 'gs-selected-list';
			link.onclick = function() { GSDeleteCity(id); return false; };						
			var selected_elements = $('selected-list-order').getElementsByTagName('li');
			if(selected_elements.length == 0) {				
				var hidden_input = $('selected-hidden-input');
				if(hidden_input) {
					Element.remove('selected-hidden-input');
				}				
			}
			$('selected-list-order').appendChild(element);
			Element.remove(choiced_id);
		}
	}
	
	function GSDeleteCity(id) {
		selected_id = 'gs-selected-' + id;
		new_id = 'gs-choice-' + id;
		if(!$(new_id)) {
			var element = $(selected_id).cloneNode(true);		
			var link = element.getElementsByTagName('a')[0];
			var input = element.getElementsByTagName('input')[0];
			element.id = new_id;
			input.name = 'gs-choice-list';
			link.onclick = function() { GSAddCity(id); return false; };
			$('choices-list-order').appendChild(element);
			Element.remove(selected_id); 
			var selected_elements = $('selected-list-order').getElementsByTagName('li');
			if(selected_elements.length == 0) {
				var new_input = document.createElement('INPUT');
				new_input.name = 'gs-selected-list';
				new_input.type = 'hidden';
				new_input.value = '';
				new_input.id = 'selected-hidden-input';
				$('selected-list-hidden-input').appendChild(new_input);
			}
		}
	}
	
function RSCategories(el, target) {
	if(el.value.length == 0) {
		target.innerHTML = '';
	} else {
		var url = DecorateURLwithPage('pgRSCategories') + 'category=' + el.value;
	
		new Ajax.Updater(target, url);				
	}
}

fullzipland = [
"A",
"B",
"CH",
"CZ",
"D",
"DK",
"E",
"F",
"FIN",
"FL",
"GB",
"HR",
"I",
"IRL",
"L",
"MC",
"NL",
"P",
"PL",
"RO",
"RSM",
"S",
"V"
]


restlands = [
"AL",
"AND",
"BG",
"BIH",
"BY",
"CY",
"EW",
"GBZ",
"GEO",
"GR",
"H",
"LT",
"LV",
"MD",
"MK",
"MT",
"N",
"RUS",
"SK",
"SLO",
"TR",
"UA",
"YU",
"ABW",
"AFG",
"AGO",
"AIA",
"ANT",
"ARE",
"ARG",
"ARM",
"ASM",
"ATA",
"ATG",
"AUS",
"AZE",
"BDI",
"BEN",
"BFA",
"BGD",
"BHR",
"BHS",
"BLZ",
"BMU",
"BOL",
"BRA",
"BRB",
"BRN",
"BTN",
"BWA",
"CAF",
"CAN",
"CCK",
"CHL",
"CHN",
"CIV",
"CMR",
"COD",
"COG",
"COK",
"COL",
"COM",
"CPV",
"CRI",
"CUB",
"CXR",
"CYM",
"DJI",
"DMA",
"DOM",
"DZA",
"ECU",
"EGY",
"ERI",
"ESH",
"ETH",
"FJI",
"FLK",
"FRO",
"FSM",
"GAB",
"GHA",
"GIN",
"GLP",
"GMB",
"GNB",
"GNQ",
"GRD",
"GRL",
"GTM",
"GUF",
"GUM",
"GUY",
"HKG",
"HMD",
"HND",
"HTI",
"IDN",
"IND",
"IRN",
"IRQ",
"ISL",
"ISR",
"JAM",
"JOR",
"JPN",
"KAZ",
"KEN",
"KGZ",
"KHM",
"KIR",
"KNA",
"KOR",
"KWT",
"LAO",
"LBN",
"LBR",
"LBY",
"LCA",
"LKA",
"LSO",
"MAC",
"MAR",
"MDG",
"MDV",
"MEX",
"MHL",
"MLI",
"MMR",
"MNG",
"MNP",
"MOZ",
"MRT",
"MSR",
"MTQ",
"MUS",
"MWI",
"MYS",
"MYT",
"NAM",
"NCL",
"NER",
"NFK",
"NGA",
"NIC",
"NIU",
"NPL",
"NRU",
"NZL",
"OMN",
"PAK",
"PAN",
"PCN",
"PER",
"PHL",
"PLW",
"PNG",
"PRI",
"PRK",
"PRY",
"PYF",
"QAT",
"REU",
"RWA",
"SAU",
"SCG",
"SDN",
"SEN",
"SGP",
"SHN",
"SJM",
"SLB",
"SLE",
"SLV",
"SOM",
"SPM",
"STP",
"SUR",
"SWZ",
"SYC",
"SYR",
"TCA",
"TCD",
"TGO",
"THA",
"TJK",
"TKL",
"TKM",
"TMP",
"TON",
"TTO",
"TUN",
"TUV",
"TWN",
"TZA",
"UGA",
"URY",
"USA",
"UZB",
"VCT",
"VEN",
"VGB",
"VIR",
"VNM",
"VUT",
"WLF",
"WSM",
"YEM",
"ZAF",
"ZMB",
"ZWE"]

