isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
isO78 = (window.opera) ? true : false;

function setTeam(uid, team) {
	var strTeamInput = "team-" + uid;
	var strNameDisplay = "sign" + uid;

	if (isIE4) {
		var ti = document.all[strTeamInput];
		var nd = document.all[strNameDisplay];
	} else if (isIE5 || isNS6 || isO78) {
		var ti = document.getElementById(strTeamInput);
		var nd = document.getElementById(strNameDisplay);
	}

	ti.value = team;

	if(!nd.oldtext)
		nd.oldtext = nd.innerHTML;

	if(team > 0) {
		nd.innerHTML = "[T" + team + "] " + nd.oldtext;
	} else {
		nd.innerHTML = nd.oldtext;
	}
}

