
/////////////////////////////////////
/*
Datei wurde in ISO-8859-1 Kodierung gespeichert
*/
/////////////////////////////////////

var xmlHttp;


// Adressenliste
function jsAdressen(suchfeld) {
Shadowbox.clearCache(); 
Shadowbox.init({ skipSetup: true }); Shadowbox.setup(); 
xmlHttp=httpXMLobjects();
if (xmlHttp==null) {
  alert ("Browser does not support AJAX");
  return;
  }
  else 
  {
  var mySb="&sb="+document.getElementById('suchfeld').value;
  if (suchfeld >'') {mySb=suchfeld}
	
	//URL vorbereiten, Zufallszahl umgeht den Browsercache  
	document.getElementById('indicator').style.display = 'block';
	var aufruf="sqlBzhAdrListe.asp"+"?a=1"+mySb+"&sid="+Math.random();
	
	xmlHttp.onreadystatechange=showListe;
	xmlHttp.open("GET",aufruf,true);
	xmlHttp.send(null);
  }
} 



function showListe() { 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
 document.getElementById("ausgabe").innerHTML=xmlHttp.responseText;
 document.getElementById('indicator').style.display = 'none';
 Shadowbox.clearCache(); 
 Shadowbox.init({ skipSetup: false }); Shadowbox.setup(); 
 
 } 
}


function updateAdr(suchbegriff) {

xmlHttp=httpXMLobjects();
if (xmlHttp==null) {
  alert ("Browser does not support AJAX");
  return;
}

 var aufruf="upAdr.asp"+"?a=1"+(suchbegriff)+"&sid="+Math.random();
	//alert(aufruf);
	xmlHttp.open("GET",aufruf,true);
	xmlHttp.send(null);
	}



function updateKon(suchbegriff) {

xmlHttp=httpXMLobjects();
if (xmlHttp==null) {
  alert ("Browser does not support AJAX");
  return;
}

 var aufruf="upKon.asp"+"?a=1"+(suchbegriff)+"&sid="+Math.random();
	//alert(aufruf);
	xmlHttp.open("GET",aufruf,true);
	xmlHttp.send(null);
	}


	
// Tooltip
function jsTooltip(suchfeld) {

xmlHttp=httpXMLobjects();
if (xmlHttp==null) {
  alert ("Browser does not support AJAX");
  return;
  }
  else 
  {
  var mySB=suchfeld;
  var myIndex=mySB.indexOf('divID=');
  myValue=suchfeld.substring(myIndex+6);
  
  	//URL vorbereiten, Zufallszahl umgeht den Browsercache  
	//document.getElementById('indicator').style.display = 'block';
	var aufruf="sqlTooltip.asp?a=1"+mySB+"&sid="+Math.random();
	
	xmlHttp.onreadystatechange=showTooltip;
	xmlHttp.open("GET",aufruf,true);
	xmlHttp.send(null);
  }
} 


function showTooltip() { 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
 document.getElementById(myValue).innerHTML=xmlHttp.responseText;
 document.getElementById('indicator').style.display = 'none';
 } 
}


//AJAX-Standards 

function httpXMLobjects() {
var xmlHttp=null;
try {
 // Fuer Firefox, Opera und Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e) {
 // Der Internet Explorer wills wieder anders
 try {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e) {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}


    function delayTimer() {
        var timer;
        return function(fun,time,param) {
        // alert (fun);
            clearTimeout(timer);

            timer = setTimeout(fun, time,param);
        };
    }
    var delayFunction = delayTimer();

    function showMessage() {
        alert('Delay expired!');
    }


	
function markListe() {
	document.getElementById('markListeID').style.textDecoration='underline';
	document.getElementById('markListeID').style.color='blue';
	document.getElementById('markBlockID').style.textDecoration='none';
	document.getElementById('markBlockID').style.color='#333';
	}

function markBlock() {
	document.getElementById('markBlockID').style.textDecoration='underline';
	document.getElementById('markBlockID').style.color='blue';
	document.getElementById('markListeID').style.textDecoration='none';
	document.getElementById('markListeID').style.color='#333';
	}

