/*
 searchReply
 
 This function will help the user to search through the games
*/


function updateProfile(buttonToSearch,objectForm,userID)
{
	passThroughValue = new Array();
	passThroughValue[0] = buttonToSearch;
	
	document.getElementById(''+ buttonToSearch).disabled = true;
	ajaxSubmitFormPOST('commonAjax.php?script=updateProfile&userID='+userID,objectForm,'procesUpdateProfile',passThroughValue);
}

function procesUpdateProfile(ajaxStatus,ajaxResponse,passThroughValue)
{
	if(ajaxStatus == 202)
	{
		eval(''+ajaxResponse);
	}
	else
	{
		alert('Het profiel is succesvol aangepast.');
	}
	
	document.getElementById('' + passThroughValue[0]).disabled = false;
}


