

function AddChildFocus()
{
	var focusedChild = document.getElementById("b"+currentId);
	focusedChild.setAttribute("hasfocus",true);
	
	// Needed to update IE styling
	focusedChild.className += "";
}

function ExecuteButtonAction(i)
{
	document.getElementById(i).onclick();
	return;
}

function getCurrentButtonID()
{
	return "b"+currentId;
}

function getNextButtonID()
{	
	if (currentId < 3)
	{
		RemoveChildFocus();
		currentId = currentId + 1;
		AddChildFocus();
	}
	return "b"+currentId;
}

function getPre