/*
 searchReply
 
 This function will search a article through ajax
*/

function searchArticleOnType(getMethodString)
{
	document.getElementById('buttonToSearch').disabled = true;
	ajaxPostData('searchArticleAjax.php?searchString='+ document.getElementById('searchString').value+'&articleConsoleID='+ document.getElementById('articleConsoleID').value+'&articleType='+ document.getElementById('articleType').value+'&'+getMethodString,'','procesSearchArticle','searchArticleResults');
}

function procesSearchArticle(ajaxStatus,ajaxResponse,passThroughValue)
{
	if(ajaxStatus == 202)
	{
		eval(''+ajaxResponse);
	}
	else
	{
		ajaxInnerXHTML(passThroughValue,ajaxResponse);
	}
	
	document.getElementById('buttonToSearch').disabled = false;
}
