var XmlHttpObj2;
function CreateXmlHttpObj2()
{
	try
	{
		XmlHttpObj2 = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			XmlHttpObj2 = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch(oc)
		{
			XmlHttpObj2 = null;
		}
	}
	if(!XmlHttpObj2 && typeof XMLHttpRequest != "undefined") 
	{
		XmlHttpObj2 = new XMLHttpRequest();
	}
}

function show_advanced(id)
{
	var abs_url			=	"http://www.internationalvenues.com/"
	obj3				=	document.getElementById('countrydivcontainer');
	obj3.innerHTML		=	"<img src=\""+abs_url+"images/ajax-loader.gif\"> Loading...";
	
	var requestUrl;
	requestUrl	=	abs_url+"ajax_advanced_option.php?id="+id;
	CreateXmlHttpObj2();
	if(XmlHttpObj2)
	{
		XmlHttpObj2.onreadystatechange = function(){
				Showtabcontent(id)
			};
		XmlHttpObj2.open("GET", requestUrl,  true);
		XmlHttpObj2.send(null);		
	}
}

function Showtabcontent(id)
{
	if(XmlHttpObj2.readyState == 4)
	{
		if(XmlHttpObj2.status == 200)
		{		
			
			document.getElementById('countrydivcontainer').innerHTML			=	'';
			document.getElementById('countrydivcontainer').innerHTML			=	XmlHttpObj2.responseText;
			
		}
		else
		{
			alert("problem retrieving data from the server, status code: "  + XmlHttpObj2.status);
		}
	}
}
