function GetSelectedArticle( ID ) {
	url = "HTTPRequests/NewsArticles.php";
	querystring = "id=" + ID;
	PostHTTPRequest(url, querystring, GetSelectedArticle_ProcessStateChange);
}

function GetSelectedArticle_ProcessStateChange() {
	Hide("AllArticles");
	Hide("PageContent");
	ShowBlock("SelectedArticle");
	GEBI("ArticleDetails").innerHTML = "<br><p>Loading Article...</p>";
	//ShowProcessingRequest("Loading Article...");
    if (req.readyState == 4) {
    	if (req.status == 200) {			
			GEBI("ArticleDetails").innerHTML = req.responseText;			
			window.location.hash = "top";
		//	HideProcessingRequest();	
    	} else {
    		alert("There was a problem retrieving the XML data:\n" + req.statusText);
    	}
	}
}

function ShowAllArticles(){
	window.location.hash = "top";
	Hide( "SelectedArticle" );
	ShowBlock( "PageContent" );
	ShowBlock( "AllArticles" );
}
