var xmlHttp = false;



function noCache(uri){return uri.concat(/\?/.test(uri)?"&":"?","noCache=",(new Date).getTime(),".",Math.random()*1234567)};


function evc(splz){
xi=splz.value;
      if (window.XMLHttpRequest) { //FE
        xmlHttp = new XMLHttpRequest();
        if (xmlHttp.overrideMimeType) {
          xmlHttp.overrideMimeType('text/xml');
        }
      } else if (window.ActiveXObject) { // IE
        try {
          xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
          try { //last chance..
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
          } catch (e) {}
        }
      }
      if(!xmlHttp) {
        alert("Sorry, your browser don't support a little bit AJAX");
      }
	if (xmlHttp){
		xmlHttp.open('GET', noCache('http://atmotraxx.de/html/event_club_ajax_xhtml.php?splz='+xi), true);
		xmlHttp.onreadystatechange = function (){
										if (xmlHttp.readyState == 4) {
											if(document.getElementById("evclaj")){
											   document.getElementById("evclaj").innerHTML = xmlHttp.responseText;
											}
										}
								     };
     xmlHttp.send(null);
}
}

function cvc(splz){
xi=splz.value;
try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {  
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
	if (xmlHttp){
		xmlHttp.open('get', noCache('http://atmotraxx.de/html/places_ajax_xhtml.php?splz='+xi), false);
		xmlHttp.onreadystatechange = function (){
										if (xmlHttp.readyState == 4) {
											if(document.getElementById("evclaj")){
											   document.getElementById("evclaj").innerHTML = xmlHttp.responseText;
											}
										}
								     };
     xmlHttp.send(null);
}
}

	function changer(){
		var xval;
		xval=document.ecal.clubs.options[document.ecal.clubs.selectedIndex].value;
		/*alert(xval);*/
		if(xval!=0){
			document.getElementById("ccc").style.display='none';
			/*document.getElementById("showc").innerHTML='';*/
			nw='<input type="hidden" name="clubs" id="clubs" value="'+document.ecal.clubs.options[document.ecal.clubs.selectedIndex].value+'"/>';
			document.getElementById("evclaj").innerHTML=nw+'<strong class="success">'+document.ecal.clubs.options[document.ecal.clubs.selectedIndex].text+'</strong>';
			document.getElementById("evclaj").innerHTML=document.getElementById("evclaj").innerHTML+nw;

		}
	}


