var xmlhttp;
function simple_ajax_showResult(gurl){
	xmlhttp=simple_ajax_GetXmlHttpObject()
	if (xmlhttp==null){
	  alert ("Your browser does not support XML HTTP Request");
  	return;
  	}
	gurl=gurl+"&sid="+Math.random();
	xmlhttp.onreadystatechange=simple_ajax_stateChanged ;
	xmlhttp.open("GET",gurl,true);
	xmlhttp.send(null);
}
actdivname = "";
spagecode = "";

function simple_ajax_stateChanged(){
	if (xmlhttp.readyState==4){
		
	  if(spagecode == "Main") simpleajax_Main_innerHtml(xmlhttp.responseText);
	  else if(spagecode == "Main_center") simpleajax_MainC_innerHtml(xmlhttp.responseText);
	  else if(spagecode == "Main_meta_list") simpleajax_local_Meta_innerHtml(xmlhttp.responseText);
	  	
	  else simpleajax_local_innerHtml(xmlhttp.responseText);
	  //document.getElementById(divname).innerHTML=xmlhttp.responseText;
  	  //document.getElementById(divname).style.border="1px solid #A5ACB2";
  	  return xmlhttp.responseText;
  	}
}

function simple_ajax_GetXmlHttpObject(){
	if (window.XMLHttpRequest){
	  	// code for IE7+, Firefox, Chrome, Opera, Safari
	  	return new XMLHttpRequest();
  	}
	if (window.ActiveXObject){
	  	// code for IE6, IE5
  		return new ActiveXObject("Microsoft.XMLHTTP");
  	}
return null;
}
//**************************************************************
// START BASE GROUP
//**************************************************************
function simple_ajax_showResult2(gurl){
	xmlhttp=simple_ajax_GetXmlHttpObject2()
	if (xmlhttp==null){
	  alert ("Your browser does not support XML HTTP Request");
  	return;
  	}
	gurl=gurl+"&sid="+Math.random();
	xmlhttp.onreadystatechange=simple_ajax_stateChanged2 ;
	xmlhttp.open("GET",gurl,true);
	xmlhttp.send(null);
}

function simple_ajax_GetXmlHttpObject2(){
	if (window.XMLHttpRequest){
	  	// code for IE7+, Firefox, Chrome, Opera, Safari
	  	return new XMLHttpRequest();
  	}
	if (window.ActiveXObject){
	  	// code for IE6, IE5
  		return new ActiveXObject("Microsoft.XMLHTTP");
  	}
return null;
}
function simple_ajax_stateChanged2(){
	if (xmlhttp.readyState==4){
	  simpleajax_local_innerHtml2(xmlhttp.responseText);
	  //document.getElementById(divname).innerHTML=xmlhttp.responseText;
  	  //document.getElementById(divname).style.border="1px solid #A5ACB2";
  	  return xmlhttp.responseText;
  	}
}
//**************************************************************
// END BASE GROUP
//**************************************************************
