var xmlHttp

function changeCLASS(str)
{ 
	axmlHttp=GetXmlHttpObject()
	if (axmlHttp==null)
 	{
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="wp-content/themes/USA_limos/AJAX/ChangeClass.php"
	url=url+"?q="+str
	url=url+"&sid="+Math.random()
	axmlHttp.onreadystatechange=chCLstateChanged 
	axmlHttp.open("GET",url,true)
	axmlHttp.send(null)
}

function chCLstateChanged() 
{ 
	if (axmlHttp.readyState==4 || axmlHttp.readyState=="complete")
 	{ 
 		document.getElementById("tab_list").innerHTML=axmlHttp.responseText;
 	} 
}

function changeCONTENT(str)
{ 
	bxmlHttp=GetXmlHttpObject()
	if (bxmlHttp==null)
 	{
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="wp-content/themes/USA_limos/AJAX/ChangeContent.php"
	url=url+"?q="+str
	url=url+"&sid="+Math.random()
	bxmlHttp.onreadystatechange=chCOstateChanged 
	bxmlHttp.open("GET",url,true)
	bxmlHttp.send(null)
}

function chCOstateChanged() 
{ 
	if (bxmlHttp.readyState==4 || bxmlHttp.readyState=="complete")
 	{ 
 		document.getElementById("tab_content").innerHTML=bxmlHttp.responseText;
 	} 
}

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;
}