// JavaScript Document
// JavaScript Document
var selectId = '';
var xmlHttp = '';

function createXMLHttpRequest() 
{
	if (window.ActiveXObject) 
	{
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	} 
	else if (window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
	}
	return xmlHttp;
}

function changeDropDown(category) 
{   
	var url = 'display.php';	
	xmlHttp = createXMLHttpRequest();
	queryString = url+'?task=first&category='+category;
	xmlHttp.onreadystatechange = searchResults;	
	xmlHttp.open("GET", queryString, true);
	xmlHttp.send(null);
}
function searchResults() 
{ 	
	if (xmlHttp.readyState==4)
	{	
		//alert(xmlHttp.responseText);
		document.getElementById('v1').innerHTML=xmlHttp.responseText;
		
	}
}

