function KeyDownHandler(btn)
{
	if (event.keyCode==13)
	{
		event.returnValue = false;
		event.cancel = true;
		document.getElementById(btn).click();
	}
}
function TabOn(tab)
{
	tab.style.background = "#CCCCFF";
	tab.style.cursor = "hand";
	return true;
}
function TabOff(tab,alt)
{
	if (alt==1)
	{
		tab.style.background = "#D0C883";
	}
	else
	{
		tab.style.background = "beige";
	}
	tab.style.cursor = "pointer";
	return true;
}
function Lo(row,showhand)
{
	row.style.background = "#CCCCFF";
	if(showhand)
	{
		row.style.cursor = "hand";
	}
	return true;
}
function Lo1(row)
{
	row.style.background = "#CCCCFF";
	return true;
}
function Lf(row,alt)
{
	if (alt==1)
	{
		row.style.background = "beige";
	}
	else if(alt==2)
	{
		row.style.background = "white";
	}
	else if(alt==3)
	{
		row.style.background = "#ff6633";
	}
	else if(alt==4)
	{
		row.style.background = "#66CC33";
	}
	row.style.cursor = "pointer";
	return true;
}	
function Po(item)
{
	item.style.cursor = "hand";
	return true;
}
function Pf(item)
{
	item.style.cursor = "pointer";
	return true;
}	
function PointerOn(sItem)
{
	document.getElementById(sItem).style.cursor = "hand";
	return true;
}
function PointerOff(sItem)
{
	document.getElementById(sItem).style.cursor = "pointer";
	return true;
}
function TabHOn( sId )
{
	var oObject;
	oObject = document.getElementById( sId + 'left' );
	if (oObject!=null)
	{
		oObject.src = 'images/tabstrip/tab_hover_left.gif';
	}
	setCellBGimage( sId + 'bg','images/tabstrip/tab_hover_bg.gif' );
	oObject = document.getElementById( sId + 'right' );
	if (oObject!=null)
	{
		oObject.src = 'images/tabstrip/tab_hover_right.gif';
	}
}
function TabHOff( sId )
{
	var oObject;
	oObject = document.getElementById( sId + 'left' );
	if (oObject!=null)
	{
		oObject.src = 'images/tabstrip/tab_unsel_left.gif';
	}
	setCellBGimage(sId + 'bg','images/tabstrip/tab_unsel_bg.gif' );
	oObject = document.getElementById( sId + 'right' );
	if (oObject!=null)
	{
		oObject.src = 'images/tabstrip/tab_unsel_right.gif';
	}
}