// JavaScript Document


try {
	xmlhttp = new XMLHttpRequest();
	}
	catch(error) {
		try {xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");} catch(error) {}
	}
	


function updateVgllist(Occid,state) {
	if(state==true) {
		xmlhttp.open("GET", "updvgllst.cfm?action=add&ID=" + Occid);
		xmlhttp.send(null); 
		} else {
		xmlhttp.open("GET", "updvgllst.cfm?action=remove&ID=" + Occid);
		xmlhttp.send(null);
		}
}

 xmlhttp.onreadystatechange = handleHttpState;
  function parseData() {
   var response = xmlhttp.responseText;
  }

function handleHttpState() {
	if(xmlhttp.readyState == 4) {
		if(xmlhttp.status == 200) {
			parseData();
		} else {
			alert("Fehler beim Abrufen der XML Daten!");
		}
	}
}
