function setfocus(fieldid)
{
	var x=document.getElementById(fieldid);
	if ((x != null) && (x.focus != null))
	{
		x.focus();
	}
}
