<!-- 
function jah(url,target,js) 
{
    // native XMLHttpRequest object
	//



//	document.getElementById(target).innerHTML = 'sending...';
//document.body.style.cursor = "wait";


if (!url)
{
	if (js)
		eval(js);

	return;
}


	if (url == '_blank') 
	{
		document.getElementById(target).innerHTML = '';
		return;
	}


    if (window.XMLHttpRequest) 
	{
		req = new XMLHttpRequest();
		req.onreadystatechange = function() {jahDone(target,js);};
//alert(url);
		req.open("GET", url, true);
//data = "<html><head></head><body>dal d lg afh gl</body></html>";
		req.send(null);
    // IE/Windows ActiveX version
    } 
	else 
	{
		if (window.ActiveXObject) 
		{
	        req = new ActiveXObject("Microsoft.XMLHTTP");

			if (req) 
			{
				req.onreadystatechange = function() {jahDone(target,js);};
				req.open("GET", url, true);
				req.send();
        	}
    	}
	}
}    


function jahDone(target,js) 
{
    // native XMLHttpRequest response
	//

    if (req.readyState == 4)     // only if req is "loaded"
	{
        // only if "OK"
        if (req.status == 200) 
		{
            results = req.responseText;
            document.getElementById(target).innerHTML = results;

//alert(js);
if (js) eval(js);
        } 
		else 
		{
            document.getElementById(target).innerHTML="jah error:\n"+req.statusText;
        }
    }

//document.body.style.cursor = "default";
}


/*
if (window.name != 'abc')
{
	window.name = 'abc';
	window.open(window.location.pathname,window.name);
}
*/

function fillNews()
{
	var ids = document.getElementsByTagName("DIV");

timeout = 0;
	for (i=0; i<ids.length;i++)
	{
		newsId = ids[i].id;
		
		if (newsId.substring(0,4) == 'news')
		{
			id = parseInt(newsId.substring(4,10));
//alert(id);
if (timeout == 0)
{
//alert(timeout);
	timeout += 100;
			jah('news.shtml?newsId='+id+'&webseite='+window.location.hostname+window.location.pathname,newsId);
}
else
{
//alert('2'+timeout);
	setTimeout("jah('news.shtml?newsId='+id+'&webseite='+window.location.hostname+window.location.pathname,newsId)",timeout);
}
		}
	}
}

setTimeout("fillNews()",10);

-->
