function ClickButtonOnEnter(buttonName,evt)
{
 evt = (evt) ? evt : event;
 var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
 if (charCode == 13 || charCode == 3)
 {
  var btn = document.all[buttonName];
  if (typeof(btn) != undefined)
  {
   btn.click();
  }
  return false;
 }
 return true;
}

function setScroll(val) {
	document.getElementById('scrollPos').value = val.scrollTop;
}

function scrollTo(what) {
	document.getElementById(what).scrollTop = document.getElementById('scrollPos').value;
}

function dgSelect(tr) 
{
	tr.style.backgroundColor='white';
	tr.style.color='#000000';
} 

function dgMouseOver(tr) 
{
	if (tr.style.backgroundColor != 'white')
	{
		tr.style.backgroundColor='#64dcfa';
		tr.style.color='#000000';
		tr.style.cursor = 'hand';
	}
} 

function dgMouseOut(tr)
{
	if (tr.style.backgroundColor != 'white')
	{
		tr.style.backgroundColor='#113355';
		tr.style.color='#e9e9e9';
		tr.style.cursor = '';
	}
}