var xmlHttp

function dropdown(str)
{ 
	
// Grab the data
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="getcountry.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)

xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
xmlHttp.setRequestHeader('Connection', 'close');

xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("ExtraInfo").innerHTML=xmlHttp.responseText;
 
 // Additionally, bring up the other two little legend tables.
 document.getElementById("LegendTables").innerHTML='<p><strong>BCG Recommendation Types</strong>				<table class="prettytable" width="400">				<tbody>					<tr>						<td width="100">							<b>Type</b>						</td>						<td><b>Description</b></td>					</tr>					<tr>						<td width="100">							<b>A</b>						</td>						<td>This country currently recommends BCG vaccination for everyone at a certain age. (Example: BCG at birth or for school-age children, etc.)</td>					</tr>					<tr>						<td width="100">							<b>B</b>						</td>						<td>This country used to recommend BCG vaccination for everyone, but currently does not.</td>					</tr>					<tr>						<td width="100">							<b>C</b>						</td>						<td>BCG vaccination was never recommended for everyone in this country. (i.e.: never gave BCG or given only to high risk groups such as health care workers.)</td>					</tr>				</tbody>				</table>				<strong>Data Availability</strong>				<table class="prettytable" width="400">				<tbody>					<tr>						<td width="100">							<b>Entry</b>						</td>						<td><b>Description</b></td>					</tr>					<tr>						<td width="100">							<b>NA</b>						</td>						<td>This entry is not applicable to this country.</td>					</tr>					<tr>						<td width="100">							<b>(Blank)</b>						</td>						<td>This data was not available.</td>					</tr>				</tbody>				</table>';
 

 

 
 } 
}

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






