function FIND(id, doc)
{
	if(doc == null) doc = document;
	if(doc.all) return doc.all.item(id);
	if(doc.getElementById) return doc.getElementById(id);
	return false;
}

function mark_for_del(ch,r)
{
	var obj = FIND(r);
	if (!obj) return;
	if (ch.checked) obj.style.color = "#CC0000";
	else obj.style.color = "#333333";
	if (ch.checked) obj.style.textDecorationLineThrough = "true";
	else obj.style.textDecorationNone = "true";
}

function initLen(t,l,len)
{
	if (t)
	{
		if (t.value.length>len) t.value=t.value.substring(0,len);
		var obj=FIND(l);
		if (obj) obj.value=len-t.value.length;
	}
}

function checkLen(t,l,len)
{
	if (t)
	{
		initLen(t,l,len);
		t.focus();
	}
}

function put_em(u,d) { document.write(u+String.fromCharCode(16*4)+d); }

