function getList(frm) {
	req = false;
	id=frm.value;
	/*
	Modified By:Dhananjay
	Date:01-11-2007
	Description : added the type for loading the destinations for Oneway and round trip's.
				  Added if/else .
	*/
	
	for (var i=0; i < document.searchFrm.faretype.length; i++)
		 if (document.searchFrm.faretype[i].checked)
            var rad_val = document.searchFrm.faretype[i].value;
	
	des_id = document.searchFrm.abc.value;

	url="getcities.php?maincity="+id+"&radio="+rad_val+"&des_id="+des_id
	//url="getcities.php?maincity="+id+"&radio="+rad_val
	
    // branch for native XMLHttpRequest object
    if(window.XMLHttpRequest) {
    	try {
			req = new XMLHttpRequest();
			
        } catch(e) {
			req = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
			
      	} catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		req = false;
        	}
		}
    }
	
	if(req) {
		req.onreadystatechange = processReqChange;
		req.open("GET", url, true);
		req.send("");
	}
}
function processReqChange(){
// if(req.readyState == 1)
// 	document.getElementById('displaycities').innerHTML = "<select name='test'><option value='2'>Loading.....</option></select>";
  if (req.readyState == 4) {
        // only if "OK"
        if (req.status == 200) {
            // ...processing statements go here...
			var response = req.responseText;
			//document.getElementById('displaycities').innerHTML='';
			document.getElementById('displaycities').innerHTML = response;
        } else {
            alert("There was a problem retrieving the data:\n" +
                req.statusText);
        }
    }
}
