/**************************************************************************
	parameters: string
	return value: Painting *

	Starting from the head, while the current node does not equal NULL,
	compare the passed in title to the current node's title. If it matches
	return current node. Otherwise continue. If current node is equal to NULL 
	return NULL (since no matching title was found).
**************************************************************************/
Painting * PaintingList::findPainting(int temp_id)
{
	Painting * curr = head;
	while(NULL != curr)
	{
		if(curr->idMatch(temp_id))
			return curr;

		curr = curr->getNext();
	}
	return NULL;

}