function getEventImage(eventID) {
	
	var strURL="ajax/get_event_image.php?eid="+eventID;
	
	
	var req = getXMLHTTP();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"				
				if (req.status == 200) {
					document.getElementById('eventImage').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:\n" + req.statusText);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}
}


function getWhatsNew(ID) {
	
	var strURL="ajax/get_whats_new.php?id="+ID;	
	

	var req = getXMLHTTP();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"				
				if (req.status == 200) {					
					document.getElementById('whatsNewContainer').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:\n" + req.statusText);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}
}


function getQuizQuestion(question, question_score, current_score) {
	
	var strURL="ajax/get_quiz_question.php?q="+question+"&qs="+question_score+"&cs="+current_score;
	
	var req = getXMLHTTP();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"				
				if (req.status == 200) {
					document.getElementById('pageDocumentList').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:\n" + req.statusText);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}
}


function getSurveyQuestion(question, question_score, current_score) {
	
	var strURL="ajax/get_survey_question.php?q="+question+"&qs="+question_score+"&cs="+current_score;
	
	var req = getXMLHTTP();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"				
				if (req.status == 200) {
					document.getElementById('pageDocumentList').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:\n" + req.statusText);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}
}

function getSurveyResults(question) {
	
	var strURL="ajax/get_survey_result.php?q="+question;
	
	var req = getXMLHTTP();
	if (req) {
		
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				// only if "OK"				
				if (req.status == 200) {
					document.getElementById('surveyResultsDiv').innerHTML=req.responseText;						
				} else {
					alert("There was a problem while using XMLHTTP:\n" + req.statusText);
				}
			}				
		}			
		req.open("GET", strURL, true);
		req.send(null);
	}
}

