function sndReq(action) {
 xmlHttp = false;

 if(typeof(XMLHttpRequest) != 'undefined') {
  xmlHttp = new XMLHttpRequest();
 }
 if(!xmlHttp) {
  try {
   xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch(e) {
   try {
    xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
   }
   catch(e) {
    xmlHttp  = false;
   }
  }
 }

 if(xmlHttp) {
    if(xmlHttp && xmlHttp.readyState) {
        xmlHttp.abort();
        xmlHttp = false;
    }
    if(!xmlHttp) {
        xmlHttp = createRequestObject();
        if(!xmlHttp) return false;
    }

    xmlHttp.open('get', action);
	xmlHttp.onreadystatechange = handleResponse;
    xmlHttp.send(null);
 }
}


function handleResponse() {
 if(xmlHttp.readyState == 4) document.getElementById('karte').src="temp/"+xmlHttp.responseText+".jpg";
}