var a;
var a1;
var a2;
var download;
var xmlhttp;
var xmlURL;
var msg;

function bbc_get_downloads(a,download)
{
 var a1 = a + '1';
 var a2 = a + '2';
// if (bbc_member_id == 26119) { alert("b_g_d"); }
 ajaxPutPost(a,download,a2); 
 return true;
}

function ajaxPutPost(a,download,a2)
{
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}

 xmlURL = "index.php?autocom=bbc_get_downloads&update=0&id=" + a + "&link=" + download ;
 xmlhttp.open("GET", xmlURL,true);
 xmlhttp.onreadystatechange=function() 
 {
  if (xmlhttp.readyState==4) 
  {
   document.getElementById(a2).innerHTML=xmlhttp.responseText;
  }
 }
 xmlhttp.send(null)
}