<!--
function func_SetFocus(strID,bFindCtrl)
{
	var pgIdx,idx,nPos,ctl,ctlParent,htmlCol;
	if(bFindCtrl==false)
		ctl=document.getElementById(strID);
	else
	{
		htmlCol=document.getElementsByTagName("*");
		for(idx=0;idx<htmlCol.length;idx++)
		{
			ctl=htmlCol[idx];
			if(typeof(ctl.id)!="undefined")
			{
				nPos=ctl.id.indexOf(strID);
				if(nPos!=-1&&ctl.id.substr(nPos)==strID)
					break;
			}
			else
				ctl=null;
		}
	}

	if(ctl==null||typeof(ctl)=="undefined")
		return false;

	if(typeof(ctl.parentElement)!="undefined")
	{
		ctlParent=ctl.parentElement;
		while(ctlParent!=null&&ctlParent.tagName!="PageView")
			ctlParent=ctlParent.parentElement;
		if(ctlParent!=null&&ctlParent.tagName=="PageView")
		{
			pgIdx=ctlParent.PageIndex;
			ctlParent=ctlParent.parentElement;
			if(ctlParent!=null&&ctlParent.tagName=="MultiPage")
			{
				ctlParent.selectedIndex=pgIdx;
				htmlCol=document.getElementsByTagName("TabStrip");
				for(idx=0;idx<htmlCol.length;idx++)
				{
					if(htmlCol[idx].targetID==ctlParent.id)
					{
						htmlCol[idx].selectedIndex=pgIdx;
						break;
					}
				}
			}
		}
	}

	if(ctl.tagName=="TABLE")
	{
		ctl=ctl.cells(0);
		ctl=ctl.firstChild;
	}

	ctl.focus();
	if(ctl.type=="text"||ctl.tagName=="TEXTAREA")
		ctl.select();

	return false;
}
//-->
