function autocomplete(){
	var xmlhttp;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		xmlhttp = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Sorry but your broswer does not support Ajax");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	xmlhttp.onreadystatechange = function(){
		if((xmlhttp.readyState == 4) && (xmlhttp.status == 200)){			
			alert(xmlhttp.responseText);				
		}
	}
	//setting up the request
	user = 'test';
	pass = 'lala';
	alert('test');
	var testVars = '';	
	testVars = 'u='+user+'&p='+pass;
	xmlhttp.open("POST", "../scripts/autocomplete.php", true);
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlhttp.send(testVars); 
	return false;
}
