var http_request = false;

            function makeRequest(url) {

                http_request = false;

                if (window.XMLHttpRequest) { // Mozilla, Safari,...
                    http_request = new XMLHttpRequest();
                    if (http_request.overrideMimeType) {
                        http_request.overrideMimeType('text/xml');
                    }
                } else if (window.ActiveXObject) { // IE
                    try {
                        http_request = new ActiveXObject("Msxml2.XMLHTTP");
                    } catch (e) {
                        try {
                        http_request = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (e) {}
                    }
                }

                if (!http_request) {
                    alert('Giving up :( Cannot create an XMLHTTP instance');
                    return false;
                }
		url="http://www.best-of-zillertal.at/winter/userfiles/wetter/wetter.xml";
                http_request.onreadystatechange = alertContents;
                http_request.open('GET', url, true);
                http_request.send(null);

            }



	    function alertContents() {
                if (http_request.readyState == 4) { 
                    if (http_request.status == 200) {
                        var sym = new Array(4);
			var temp = new Array(4);
			var datum = new Array(4);
			var xmlDoc = http_request.responseXML;
                        //alert(http_request.responseText);
                        // Lade Daten von heute
                        
			var jetzt = new Date();
			var monat = jetzt.getMonth();
			if (monat < 10 )
				monat = "0" + monat;
			var tag = jetzt.getDate();
			if (tag < 10 )
				tag = "0" + tag;
			var jahr = jetzt.getFullYear();
    			var today = jetzt.getTime();
    			var dann = today + (1 * 24 * 60 * 60 * 1000);
    			jetzt.setTime(dann);
    			var jjjj   = jetzt.getFullYear();
    			var mm     = jetzt.getMonth() + 1;
			if (mm < 10 )
				mm = "0" + mm;
    			var tt     = jetzt.getDate();
			if (tt < 10 )
				tt = "0" + tt;
			
    			var morgen = jjjj + mm + tt;
			var heute  = jahr + monat + tag;
			



			if (window.ActiveXObject) { // Microsoft Browser
				node = xmlDoc.getElementsByTagName('prognose').item(0);
				node = node.firstChild;
				node = node.firstChild;
				node = node.firstChild;

				sym[1]  = node.firstChild.nodeValue;  //param
				node    = node.nextSibling;
				temp[1] = node.firstChild.nodeValue;  //param

				node    = xmlDoc.getElementsByTagName('prognose').item(0);
				node    = node.firstChild;
				node    = node.nextSibling;
				node    = node.firstChild;
				node    = node.firstChild;
				sym[2]  = node.firstChild.nodeValue;  //param
				node    = node.nextSibling;
				temp[2] = node.firstChild.nodeValue;  //param

				node    = xmlDoc.getElementsByTagName('prognose').item(0);
				node    = node.firstChild;
				node    = node.nextSibling;
				node    = node.nextSibling;
				node    = node.firstChild;
				node    = node.firstChild;
				sym[3]  = node.firstChild.nodeValue;  //param
				node    = node.nextSibling;
				temp[3] = node.firstChild.nodeValue;  //param

				
			} else {  // alle anderen...

				node = xmlDoc.getElementsByTagName('prognose').item(0);
				//alert(node.tagName + "| childNodes:" + node.childNodes.length);
				
				node = node.firstChild;
				node = node.nextSibling;



				rootnode = node;
				//alert(node.getAttribute("value"));
				node = node.firstChild;
				node = node.nextSibling;
							
				node = node.firstChild;
				node = node.nextSibling;
				//alert("Tagname: " + node.tagName + "  |  Wert=" + node.getAttribute("name") + "   |   Inhalt: " + node.firstChild.nodeValue);
				sym[1] = node.firstChild.nodeValue;
				node = node.nextSibling;
				node = node.nextSibling;
				//alert("Tagname: " + node.tagName + "  |  Wert=" + node.getAttribute("name") + "   |   Inhalt: " + node.firstChild.nodeValue);
				temp[1] = node.firstChild.nodeValue;




				node = rootnode.nextSibling;
				//rootnode = node;
				node = node.nextSibling;
				//alert(node.getAttribute("value"));
				node = node.firstChild;
				node = node.nextSibling;
							
				node = node.firstChild;
				node = node.nextSibling;
				
				//alert("Tagname: " + node.tagName + "  |  Wert=" + node.getAttribute("name") + "   |   Inhalt: " + node.firstChild.nodeValue);
				sym[2] = node.firstChild.nodeValue;
				node = node.nextSibling;
				node = node.nextSibling;
				temp[2] = node.firstChild.nodeValue;
				//alert("Tagname: " + node.tagName + "  |  Wert=" + node.getAttribute("name") + "   |   Inhalt: " + node.firstChild.nodeValue);



				node = rootnode.nextSibling;
				node = node.nextSibling;
				node = node.nextSibling;
				node = node.nextSibling;
				//alert(node.getAttribute("value"));
				node = node.firstChild;
				node = node.nextSibling;
							
				node = node.firstChild;
				node = node.nextSibling;
				
				//alert("Tagname: " + node.tagName + "  |  Wert=" + node.getAttribute("name") + "   |   Inhalt: " + node.firstChild.nodeValue);
				sym[3] = node.firstChild.nodeValue;
				node = node.nextSibling;
				node = node.nextSibling;
				//alert("Tagname: " + node.tagName + "  |  Wert=" + node.getAttribute("name") + "   |   Inhalt: " + node.firstChild.nodeValue);
				temp[3] = node.firstChild.nodeValue;

			}
			iconname1       = "http://www.best-of-zillertal.at/winter/images/wetter/icon_" + sym[2] + ".jpg";
			iconname2       = "http://www.best-of-zillertal.at/winter/images/wetter/icon_" + sym[3] + ".jpg";

			// Schreibe Daten in MultiBox
			document.getElementById("temp1").innerHTML = temp[2];
			document.getElementById("wettericon_1").src = iconname1;
				
			document.getElementById("temp2").innerHTML = temp[3];
			document.getElementById("wettericon_2").src = iconname2;

                        
                    } else {
                        alert('There was a problem with the request.');
                    }
                }
            }
