window.focus();
var bbcodeswindow_x = 340;
var bbcodeswindow_y = 340;


var xmlHttpObject = false;
if (typeof XMLHttpRequest != 'undefined') 
{
    xmlHttpObject = new XMLHttpRequest();
}
if (!xmlHttpObject) 
{
    try 
    {
        xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e) 
    {
        try 
        {
            xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e) 
        {
            xmlHttpObject = null;
        }
    }
}


var xmlHttpObjectb = false;
if (typeof XMLHttpRequest != 'undefined') 
{
    xmlHttpObjectb = new XMLHttpRequest();
}
if (!xmlHttpObjectb) 
{
    try 
    {
        xmlHttpObjectb = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e) 
    {
        try 
        {
            xmlHttpObjectb = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e) 
        {
            xmlHttpObjectb = null;
        }
    }
}


function changeCounterStyle(wert1,wert2,wert3)
{
	var wert1   = 'box99';
    xmlHttpObject.open('get','helper.php?show=changeCounterStyle&wert2='+wert2+'&wert3='+wert3+'',true);
  	xmlHttpObject.onreadystatechange = function() { handleContent2(wert1,wert2,wert3); };
    xmlHttpObject.send(null);
    return false;
}

function changeCounterStyleO(wert1,wert2,wert3)
{
	var wert1   = 'box99';
    xmlHttpObject.open('get','helper.php?show=changeCounterStyleO&wert2='+wert2+'&wert3='+wert3+'',true);
  	xmlHttpObject.onreadystatechange = function() { handleContent3(wert1,wert2,wert3); };
    xmlHttpObject.send(null);
    return false;
}


function changeDayCounterTag(wert1,wert2,wert3)
{
	var wert1   = 'boxTag';
    xmlHttpObject.open('get','helper.php?show=changeDayCounterTag&wert2='+wert2+'&wert3='+wert3+'',true);
  	xmlHttpObject.onreadystatechange = function() { handleContent(wert1,wert2,wert3); };
    xmlHttpObject.send(null);
    return false;
}
 

function handleContent(wert1,wert2)
{

	if (xmlHttpObject.readyState == 3)
	{
		document.getElementById(wert1).innerHTML = '<img src="img/ajax-loader.gif" title="Daten werden geladen!" width="16" height="16" border="0"><br>';
	} 
	
    if (xmlHttpObject.readyState == 4)
    {
        document.getElementById(wert1).innerHTML = xmlHttpObject.responseText;
    }
}



function handleContent2(wert1,wert2)
{

	if (xmlHttpObject.readyState == 3)
	{
		document.getElementById(wert1).innerHTML = '<img src="img/ajax-loader.gif" title="Daten werden geladen!" width="16" height="16" border="0"><br>';
	} 
	
    if (xmlHttpObject.readyState == 4)
    {
        document.getElementById(wert1).innerHTML = xmlHttpObject.responseText;
    }
}

function handleContent3(wert1,wert2)
{

	if (xmlHttpObject.readyState == 3)
	{
		document.getElementById(wert1).innerHTML = '<img src="img/ajax-loader.gif" title="Daten werden geladen!" width="16" height="16" border="0"><br>';
	} 
	
    if (xmlHttpObject.readyState == 4)
    {
        document.getElementById(wert1).innerHTML = xmlHttpObject.responseText;
    }
}


