function articleLoad(page){

	$("#articleDiv").fadeOut(400);
	$("#note").fadeIn(400);
	
	if ($('#hasImage:checked').val() !== undefined) {
		hasIMG = 1;
	}else{
		hasIMG = 0;
	}
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		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;
			}
		}
	}

// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
	
	if(ajaxRequest.readyState == 4){
		document.getElementById('articleDiv').innerHTML = '<select id="article" name="article" size="15" style="float:left; margin-left:5px;width:525px;">' + ajaxRequest.responseText + '</select>';
		$("#note").fadeOut(800);
		setTimeout("$(\"#articleDiv\").fadeIn(800);",800);
			
	}else{
		document.getElementById('note').innerHTML = '<div style="width:50px; margin:auto; position:relative;"><img src="/s/load.gif" /></div>';
	}
}

ajaxRequest.open('GET', 'article.php?i=' + page + '&hasIMG=' + hasIMG, true);
ajaxRequest.send(null); 

//-->
}
