function ajax(id) {
	// validate input
	var http = false;
	if(navigator.appName == "Microsoft Internet Explorer") {
		http = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		http = new XMLHttpRequest();
	} 
	
	document.getElementById('words').innerHTML = 'Loading...';
	
	full_link = "words.php?id="+id;
	
	http.open("GET", full_link, true);
	
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('words').innerHTML = http.responseText;
		}
	}
	http.send(null);
}