var imsakiyeWidgetHTTP  = createRequestObjImkWidget();
var sys_id;
 
function createRequestObjImkWidget() {
     var http_request = false;
     
     if (window.XMLHttpRequest) {
         //Instanz für Firefox, Mozilla, Safari, Opera, usw.
         http_request = new XMLHttpRequest();
     
         //MIME Typ erzwingen
         if (http_request.overrideMimeType) {
             http_request.overrideMimeType('text/xml');
         }
     } else if (window.ActiveXObject) {
         try {
             //Instanz: Möglichkeit 1
             http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
             try {
             http_request = new ActiveXObject("Microsoft.XMLHTTP");
             } catch (e) {}
         }
     }
     
     if (!http_request) {
         alert('AJAX Error!nCannot create an XMLHTTP instance');
     } else {
         //Ergebnis liefern
         return http_request;
     }
 }



function printRamadanCalendarGermany(lang){
	city = document.getElementById("germanyImkWidget").value;
	if(city != ''){
		
		window.open("http://www.igmg.de/typo3conf/ext/user_imsakie/pi1/PDFCreater.php?city="+city+"&lang="+lang);
	}
}

function printRamadanCalendarInternational(lang){
	city = document.getElementById("internationalImkWidget").value;
	if(city != ''){
		window.open("http://www.igmg.de/typo3conf/ext/user_imsakie/pi1/PDFCreater.php?city="+city+"&lang="+lang);
	}
}


