var xmlHttp;
function showHint() {	
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		return;
	}
	var url = "ajaxad/yiqifa_qunar.jsp";	
	xmlHttp.onreadystatechange = stateChanged;
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
}
function stateChanged() {
	if (xmlHttp.readyState == 4) {
	  if(xmlHttp.status==200)
		document.getElementById("ajax_qunar").innerHTML = xmlHttp.responseText;
	}
}
function show_elong() {
    
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		return;
	}
	var url = "ajaxad/cps_elong.jsp";	
	xmlHttp.onreadystatechange = stateChanged_elong;
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
	alert("sdf");	
}
function stateChanged_elong() {
	if (xmlHttp.readyState == 4) {
	if(xmlHttp.status==200){
	    document.getElementById("ajax_elong1").height="56";
		document.getElementById("ajax_elong1").innerHTML = eval(xmlHttp.responseText);
		}
	}
}
function show_elong2() {	
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		return;
	}
	var url = "ajaxad/cps_elong2.jsp";	
	xmlHttp.onreadystatechange = stateChanged_elong2;
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
}
function stateChanged_elong2() {
	if (xmlHttp.readyState == 4) {
	    if(xmlHttp.status==200){
		  document.getElementById("ajax_elong2").innerHTML = xmlHttp.responseText;
		  alert(document.getElementById("ajax_elong2").innerHTML)
		}
	}
	
}
function GetXmlHttpObject() {
	var xmlHttp = null;
	try {
    // Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
    // Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

