	window.setTimeout(function () { if (!xajaxLoaded) { alert('Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?\nURL: /typo3conf/ext/xajax/xajax_js/xajax.js'); } }, 6000);

var OnKeyRequestBuffer = 
    {
        bufferText: false,
        bufferValue: false,		
        bufferTime: 500,


        
        modified : function(strId, selectId)
        {
	
           /* 
				alert('OnKeyRequestBuffer.compareBuffer("'+strId+'","'+xajax.$(strId).value+'","'+selectId+'","'+xajax.$(selectId).options[xajax.$(selectId).selectedIndex].value+'");');
	     */
                setTimeout('OnKeyRequestBuffer.compareBuffer("'+strId+'","'+xajax.$(strId).value+'","'+selectId+'","'+xajax.$(selectId).options[xajax.$(selectId).selectedIndex].value+'");', this.bufferTime);
		
        },
        
        compareBuffer : function(strId, strText, selectId, selectValue)
        {
			document.getElementById('SomeElementId').style.display = "block";
	
			if((strText == '') || (strText.length < 2)) {
				document.getElementById('search-indicator').style.display = "none";

			} else {
				document.getElementById('search-indicator').style.display = "block";
	
			}
	      // 	alert(document.getElementById('SomeElementId').style.margin);

            if (((strText == xajax.$(strId).value && strText != this.bufferText) || (selectValue == xajax.$(selectId).options[xajax.$(selectId).selectedIndex].value && selectValue != this.bufferValue)) && (document.getElementById('search-splash').style.display=="none"))
            {
		;
                this.bufferText = strText;
                this.bufferValue = selectValue;
                OnKeyRequestBuffer.makeRequest(strId, selectId);
           }
        },
        
        makeRequest : function(strId, selectId)
        {	

            xajax_suggestSearchTerm(xajax.$(strId).value, xajax.$(selectId).options[xajax.$(selectId).selectedIndex].value);

		
        }
    }

function show_search_progress() { 

	document.getElementById("search-splash").style.display = "block";


	 // Suggest ausblenden
	document.getElementById("suggest-layer").style.display = "none";
	document.getElementById("search-indicator").style.display = "none";

}
function hide_search_progress() { 

 
	document.getElementById("search-splash").style.display = "none";

if (document.getElementById("suggest-layer")) {
	document.getElementById("suggest-layer").style.display = "none";

    }
	document.getElementById("search-indicator").style.display = "none";

 
}

function checkSearchValue () {
	if (document.getElementById("myText").value == "Schnellsuche") {
		document.getElementById("myText").value = "";
	}
}