var cstrDateFormat = "dd/mm/yyyy";

function right(e) 
{
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 
	{
		alert("Copyright: NA PROD");
		return false;
	}
	return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;		
//  End -->

function SwapImage(objImg, strPath)
{
	objImg.src = strPath;
}

function HighLight(objRow)
{
	objRow.style.color = 'black';
	objRow.style.backgroundColor = '#CDCDCD';
}

function UnHighLight(objRow)
{
	objRow.style.color = 'black';
	objRow.style.backgroundColor = 'white';
}

function OnClose()
{
	window.close();
}

function OnLogin()
{
	var aw = (screen.availWidth / 2) - 353;
	var ah = (screen.availHeight / 2) - 232;
	var strWinSettings = "left=" + aw + ", top=" + ah + ",resizable=no,height=465px,width=707px,status=no,help=no";
	window.open("Login.aspx", "Login", strWinSettings);
}