/* This function returns the absolute position of an element on a form */
function getPos(el){
	var rd = {x:0,y:0};
	do{
	
		rd.x += el.offsetLeft;
		rd.y += el.offsetTop;
		el = el.offsetParent;
		} while(el)
		return rd
}

/* This function shows and hides a dive */
function PleaseShowMe(me)
{
	var obj = document.getElementById(me);
	if (obj.style.display == "none")
		obj.style.display = "";
	else
		obj.style.display = "none";
}
function ShowReport(FileName)
	{
		window.open('ReportFiles/' + FileName, null, 'width=500, height=500');
}
	
/* Kyle - 08/20/2010 - copied from old Default.aspx page */	
function SetFocusToCtrl()
{
	var Obj = new String(document.getElementById("hidCtrlToSetFocus").value);
	var Parms = Obj.split("$");
	var Ctrl = Parms[0];
	var Slct = Parms[1];
	if (Ctrl != "")
	{
		document.getElementById(Ctrl).focus();
		if (Slct == "1")
		{
			document.getElementById(Ctrl).select();
		}
	}
}

