		//alert();
var xmlHttpObj;

var test;
var isUpdate = 0;
var thisElementID;


// Mozilla, Opera, Safari sowie Internet Explorer 7
if (typeof(XMLHttpRequest) != 'undefined') {xmlHttpObj = new XMLHttpRequest();}
if (!xmlHttpObj) 
{
    // IE6 + older
    try {
        xmlHttpObj  = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        try {
            xmlHttpObj  = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {
            xmlHttpObj  = false;
        }
    }
}//endif




//////////////////////////////////////////////////////////////////
function scanForArticleKeywords(thisElement)
//////////////////////////////////////////////////////////////////
{
	thisElementID	= thisElement;
	
	if (document.sendForm.txtLong)
	{
			txtLong	= document.sendForm.txtLong.value;
			language	= document.sendForm.language.options[document.sendForm.language.selectedIndex].value;
			
	
			document.getElementById(thisElement).innerHTML = '<input value=".............SCANNING............." name="keywords">';
			thisUrl = CONF_Host + 'tools/tagging/scan_article_keywords.php?txtLong='+txtLong +'&language=' + language;
			
			xmlHttpObj.open('GET',thisUrl	,true);
			xmlHttpObj.onreadystatechange = write_element;
			xmlHttpObj.send(null);			
	}//endif

	
}//end of func	





//////////////////////////////////////////////////////////////////
function scanForBookmarkKeywords(thisElement)
//////////////////////////////////////////////////////////////////
{
	thisElementID	= thisElement;
	
	if (document.sendForm.link.value)
	{
			link					= document.sendForm.link.value;
			language				= document.sendForm.language.options[document.sendForm.language.selectedIndex].value;
			tagMinWordLength	= document.sendForm.tagMinWordLength.options[document.sendForm.tagMinWordLength.selectedIndex].value;
			tagMinWordOccur	= document.sendForm.tagMinWordOccur.options[document.sendForm.tagMinWordOccur.selectedIndex].value;
			
			document.getElementById(thisElement).innerHTML = '<input class="keywords" value=".............SCANNING............." name="keywords">';
			thisUrl = CONF_Host + 'tools/tagging/scan_bookmarks_keywords.php?link='+link +'&language=' + language +'&tagMinWordLength=' + tagMinWordLength +'&tagMinWordOccur=' + tagMinWordOccur;

			xmlHttpObj.open('GET',thisUrl	,true);
			xmlHttpObj.onreadystatechange = write_element;
			xmlHttpObj.send(null);			
	}//endif
	
}//end of func	


//////////////////////////////////////////////////////////////////
function scanTitleTag(thisElement)
//////////////////////////////////////////////////////////////////
{
	thisElementID	= thisElement;
	
	if (document.sendForm.link.value)
	{
			link	= document.sendForm.link.value;
			document.getElementById(thisElement).innerHTML = '<input class="title" type="text" value=".............SCANNING............." class="titel">';
			
			thisUrl = CONF_Host + 'tools/tagging/scan_title_tag.php?link='+link;
			
			xmlHttpObj.open('GET',thisUrl	,true);
			xmlHttpObj.onreadystatechange = write_element;
			xmlHttpObj.send(null);			
	}//endif
	
}//end of func


//////////////////////////////////////////////////////////////////
function importModul(thisElement)
//////////////////////////////////////////////////////////////////
{
	thisElementID	= thisElement;

	if(document.sendform.modulCodeImport.options[document.sendform.modulCodeImport.selectedIndex].value)
	{
		modul = 	document.sendform.modulCodeImport.options[document.sendform.modulCodeImport.selectedIndex].value;
		isEmptyTable=0;
		if (document.sendform.isEmptyTable.checked) {isEmptyTable=1;}
		document.getElementById(thisElementID).innerHTML = '<img src="'+progressBarPic+'" width="'+progressBarPicW+'" height="'+progressBarPicH+'">';
		
		thisUrl = CONF_Host + 'admin/toolz/import.php?modul='+modul+'&isEmptyTable='+isEmptyTable;
		xmlHttpObj.open('GET',thisUrl	,true);
		xmlHttpObj.onreadystatechange = write_element;
		xmlHttpObj.send(null);		
	}//endif

}//end of func


//////////////////////////////////////////////////////////////////
function exportModul(thisElement)
//////////////////////////////////////////////////////////////////
{
	thisElementID	= thisElement;

	if(document.sendform.modulCodeExport.options[document.sendform.modulCodeExport.selectedIndex].value)
	{
		modul = 	document.sendform.modulCodeExport.options[document.sendform.modulCodeExport.selectedIndex].value;
		document.getElementById(thisElementID).innerHTML = '<img src="'+progressBarPic+'" width="'+progressBarPicW+'" height="'+progressBarPicH+'">';
		
		thisUrl = CONF_Host + 'admin/toolz/export.php?modul='+modul;
		xmlHttpObj.open('GET',thisUrl	,true);
		xmlHttpObj.onreadystatechange = write_element;
		xmlHttpObj.send(null);		
	}//endif

}//end of func



//////////////////////////////////////////////////////////////////
function call_script(thisElement,thisUrl)
//////////////////////////////////////////////////////////////////
{
		thisElementID	= thisElement;
		
		document.getElementById(thisElementID).innerHTML = '<img src="'+progressBarPic+'" width="'+progressBarPicW+'" height="'+progressBarPicH+'">';
		
		xmlHttpObj.open('GET',thisUrl	,true);
		xmlHttpObj.onreadystatechange = write_element;
		xmlHttpObj.send(null);		

}//end of func


//////////////////////////////////////////////////////////////////
function write_element()
//////////////////////////////////////////////////////////////////
{
	if(xmlHttpObj.readyState == 4)	{document.getElementById(thisElementID).innerHTML = xmlHttpObj.responseText;}//endif
	//if(xmlHttpObj.readyState == 4)	{alert(xmlHttpObj.responseText);}//endif	
		
}//end of func	




//////////////////////////////////////////////////////////////////
function handleResponse_ori()
//////////////////////////////////////////////////////////////////
{
	if(xmlHttpObj.readyState == 4)	{document.getElementById("ausgabe").innerHTML = xmlHttpObj.responseText;}//endif	
	//if(xmlHttpObj.readyState == 4)	{alert(xmlHttpObj.responseText);}//endif	
		
}//end of func	