// JavaScript Document
<!--	This function is used to write the bottom div in which results are displayed		-->
function writediv(texte)
	{
		document.getElementById('Articles').innerHTML = texte;
	}
<!--	this is where we'll gather results from a menu in this example. But condition is used in the case we'd gather text from user input	-->
function verifArticles(Articles)
	{
		if(Articles != '')
			{
				if(Articles.length<1)
				writediv('<span style="color:#cc0000"><b>'+Articles+' :</b> Please Select an Article</span>');

				else if(texte = file('sql-analysing-content.php?Articles='+escape(Articles)))
					{
						writediv(''+texte);
					}
			}
	}
function file(fichier)
	{
	if(window.XMLHttpRequest) // FIREFOX
		xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // IE
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else
		return(false);
		xhr_object.open("GET", fichier, false);
		xhr_object.send(null);
	if(xhr_object.readyState == 4) 
		return(xhr_object.responseText);
	else 
		return(false);
	}
