

xmlhttp = false;


	try {
		xmlhttp = new XMLHttpRequest();
	}
	catch( error ) {
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch( error )
		{
			try {
			 	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch( error )
			{
			}
		}
	}


function ajax_open(url)
{
	try {
		xmlhttp.abort();
		xmlhttp.open("GET", url, true);
		xmlhttp.send(null);
	}
	catch( error )
	{
	}
}


function ajax_setvalue(feld)
{
	xmlhttp.onreadystatechange = function () 
	{
        if( xmlhttp.readyState == 4 )
		{
			if( xmlhttp.status == 200)
			{
				if(top.document.getElementById)
				{
					top.document.getElementById(feld).innerHTML = xmlhttp.responseText;
				}
				else if(top.document.all)
				{ 
					eval("top.document.all." + feld + ".innerHTML = '" + xmlhttp.responseText + "';");
				} 
				else if(top.document.layers) {	
					top.document.comments.document.open();
					eval("top.document." + feld + ".document.write('" + xmlhttp.responseText + "');");
					top.document.comments.document.close();
				}
	        }
		}
    }

}


