// JavaScript Document

function thumbnail(src)
{
	var ajaxRequest; // The variable that makes Ajax possible!
	try{
	ajaxRequest = new XMLHttpRequest();
	} catch (e){
	try{
	ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	try{
	ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (e){
	// Something went wrong
	alert("Your browser broke!");
	return false;
	}
	}
	}
	
	
	var ajaxDisplay = document.getElementById('loadarea');	
	// Function to receive data sent from the server and update div's
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
				ajaxDisplay.innerHTML = '<img src="'+src+'" width = "300" height = "250"/>';				
		}
	}
	
	ajaxRequest.open("GET", true);
	ajaxRequest.send(null); 
	return true;

}