var xmlHttp;

/// took this code from www.w3schools.com it starts the ajax engine
function ajaxFunction() {
// alert("starting AJAX ");
	var xmlHttp;
	try{
    // Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e) {
    // Internet Explorer
		try {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			try {
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e) {
				return false;
			}
		}
	}
	return xmlHttp;
}

function nextItem(item) {
	engine=ajaxFunction();
	ipurl='design/javascripts/ajax.php?q=next|' + item;
	engine.onreadystatechange=function() {
		if (engine.readyState==4) {
			document.getElementById('entries').style.display='';
			document.getElementById('entries').innerHTML=engine.responseText;
		}
	}
	engine.open("GET",ipurl,true);
	engine.send('');
}