var url = "library/php/con.ladeSchule.php"; 

function handleHttpResponse() {	
  if (http.readyState == 4) {	
	results = http.responseText;	
	document.getElementById('schuleAusgabe').style.display = "block";
	document.getElementById('schuleAusgabe').innerHTML = results;	
  }	
}

function ladeSchule() {
	http.open("GET", url + werte(), true); 
	http.onreadystatechange = handleHttpResponse; 
	http.send(null);
}

function getHTTPObject() {	
  var xmlhttp;	

  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {	
	try {	
	  xmlhttp = new XMLHttpRequest();	
	} catch (e) {	
	  xmlhttp = false;	
	}	
  }

  return xmlhttp;	
}

var http = getHTTPObject();

function werte() {
	var getI = "";
	
	getI = "?schule_plz="+escape(document.forms[0].elements['schule_plz'].value);
	getI += "&schule_form="+document.forms[0].elements['schule_form'].options[document.forms[0].elements['schule_form'].selectedIndex].value;
	
	return getI;
}

function akt(fld) {
	fld.style.backgroundColor = "#cecece";
}

function deakt(fld) {
	fld.style.backgroundColor = "#ffffff";
}	

function popup (url) {
    fenster = window.open(url, "Popupfenster", "width=450,height=300,resizable=yes");
    fenster.focus();
    return false;
}

