//ajax
var tdId;

function expand(intId)
{
	GintId = intId;
	var strUrl = "display_flag.php?country="+intId;
	xmlhttpPost(strUrl);
}

function xmlhttpPost(strURL) 
{
	var xmlHttpReq = false;
	var self = this;
// Mozilla/Safari
    if (window.XMLHttpRequest) 
        self.xmlHttpReq = new XMLHttpRequest();
// IE
    else if (window.ActiveXObject) 
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");

	strURL = strURL;
	self.xmlHttpReq.open('POST', strURL, true);
	self.xmlHttpReq.onreadystatechange = function() 
	{
	    if (self.xmlHttpReq.readyState == 4) 
            updatepage(self.xmlHttpReq.responseText);
    }
    self.xmlHttpReq.send(getquerystring());
}

function getquerystring() 
{
   	var qstr="";
    return qstr;
}

function updatepage(str)
{
//Country Flag		
	document.getElementById("flag").innerHTML = str;
}
