function getHTTPObject()
{
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
  	{
  		xmlhttp=new XMLHttpRequest()
  	}
// code for IE
	else if (window.ActiveXObject)
  	{
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  	}
	return xmlhttp;
}
var http = getHTTPObject();

function displayinsight(id)
{
  var url = ajax_url + "ajax_tool.php";
	url = url + "?iToolId="+ id;
	
  //window.location = url;
	
  http.open("GET", url, true);
	http.onreadystatechange = displaymarketinsight;
  http.send(null);
  
}
function displaymarketinsight()
{
	if (http.readyState == 4)
	{
   	var xmlDocument = http.responseXML; 
   	var title = xmlDocument.getElementsByTagName('vtitle').item(0).firstChild.data;	
   	var description = xmlDocument.getElementsByTagName('description').item(0).firstChild.data;
   	html = '<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">';
   	html = html + '<tr><td class="toolminorityheading"><p><strong>'+title+'</strong></p></td></tr>';
   	html = html + '<tr><td class="insightminority">'+description+'</td></tr>';
   	html = html + '</table>';
    document.getElementById('desc').innerHTML = html;
  }
}
