	function getHTTPObject() {
	  var xmlhttp;
	  /*@cc_on
	  @if (@_jscript_version >= 5)
	    try {
	      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	    } catch (e) {
	      try {
	        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	      } catch (E) {
	        xmlhttp = false;
	      }
	    }
	  @else
	  xmlhttp = false;
	  @end @*/
	  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
	    try {
	      xmlhttp = new XMLHttpRequest();
	    } catch (e) {
	      xmlhttp = false;
	    }
	  }
	  return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object

		function clear_select(name) {
			var select_box = document.getElementById(name);
			clearTopicList(select_box);
		}

		function get_xmldata(getfrom,loadto) {
			var url = './includes/special/getxml.php?string='; // the server-side script
			//var url = './ebilet/common/getxml.php?string='; // the server-side script
		  	var list = document.getElementById(getfrom);
		  	var loadto_select = document.getElementById(loadto);
		  		clear_select(loadto);
		  		appendOptionLast(loadto_select,'--->Yükleniyor...','');
			var string = list.options[list.selectedIndex].value;	//alert(string);
			if ((string == '') || (string == null)) {
				//alert(loadto);
		  		clear_select(loadto);
				appendOptionLast(loadto_select,'Lütfen binis yeri seçiniz!','');
				//document.getElementById('submit_mainform').disabled=true;
			} else {
				var url_string = url + getfrom + ':'+ loadto +':' + escape(string); //alert(url_string);
			    http.open('GET', url_string, true); //alert(getfrom + ':'+ loadto+':'+string);
			    //alert(string);
			    http.onreadystatechange = handleHttpResponse;
			    http.send(null);
			}
		}
		function handleHttpResponse() {
		/*
		  var div = document.getElementById('httpstatus');
		  if (http.readyState == 1) {
		    div.innerHTML = 'loading......';
		  }
		  if (http.readyState == 2) {
		    div.innerHTML = 'loaded......';
		  }
		  */
		  if (http.readyState == 4) {
	 			if (http.status == 200) {
		  	
	            // ...processing statements go here...
				var xmlDocument = http.responseXML; //alert(xmlDocument);
				var tagname	= xmlDocument.getElementsByTagName('item');
				var totalnum = tagname.length; //alert(totalnum);//exit;
				var box_name	= xmlDocument.getElementsByTagName('collection').item(0).getAttribute('name'); //alert(box_name);
				var box_name_select = document.getElementById(box_name); //alert(box_name_select);
				clearTopicList(box_name_select); // doldurulacak kutu bosaltilir..
				if (totalnum>0) {
					var option_id;
					var option_label;
					var i;
					appendOptionLast(box_name_select,'-->Seçiniz<--','');
					for (i=0; i< totalnum; i++) { //alert(i);
						option_label = tagname.item(i).getAttribute('label');						
						option_id = tagname.item(i).getAttribute('value');
						appendOptionLast(box_name_select,option_label,option_id);
					}
					//document.getElementById('submit_mainform').disabled=false;
				} else {
					appendOptionLast(box_name_select,'İniş yeri bulunamadı!','');
					alert('İnis yeri bulunamadı!');
					document.getElementById('submit_mainform').disabled=true;
				}
	    	} else {
	        	//alert('XML DOSYA HATASI:' + http.statusText);
	    	}

		  }


		}

	function appendOptionLast(box_name_select,optlabel,optvalue) {
		  var new_option = document.createElement('option');
		  	new_option.text = optlabel;
		  	new_option.value = optvalue;

		  try {
		    box_name_select.add(new_option, null); // standards compliant; doesn't work in I
		  }
		  catch(ex) {
		    box_name_select.add(new_option); // IE only
		  }
		}
	function clearTopicList(box_name) {
	    while (box_name.length > 0) {
	        box_name.remove(0);
	    }
		//appendOptionLast(box_name,'Seçiniz','');


	}


