static protected int searchItemStack(Stack matchStack, String itemName)
{
int startSize = matchStack.size();
int popCount = 0;
Stack tempStack = new Stack();
tempStack.copyInto(matchStack.toArray());
while(tempStack.size() > 0)
{
DocItem tempItem = (DocItem)tempStack.pop();
if(tempItem.getName().compareTo(itemName) == 0)