	employee();

//on the page load, the radio button that is checked geberates the proper
//drop down list(students or employees).
function radioupdate()
{
	var context = document.getElementById('context');
	var contextvalue = "";
	
	if(context.checked)
	{
		 contextvalue=context.value;
	}		

	if (contextvalue == "Employees")
	{
		employee();
	}
	else
	{
		student();
	}
}
//calls the php file that generates the new list for employees
function employee()
	{
		var options = {
			script:"employeeLDAPconnect.php?json=true&",
			varname:"input",
			json:true
			};
		var as_json = new AutoSuggest('query', options);
	}
//calls the php file that generates the new list for students
function student()
{
	var options = {
		script:"studentLDAPconnect.php?json=true&",
		varname:"input",
		json:true
		};
	var as_json = new AutoSuggest('query', options);
	}	
