function checkSecurity(secVal, aHref, operID, relID)
{
	var okToGo = true;
	//alert("sec: " + secVal);
	if (secVal == "N")
	{
		okToGo = false;
		aHref.href = window.location;
		aHref.target = "_self";
		alert("You do not have access to this option.");
	}
	else if (secVal == "O")
	{
		//alert("operID: " + operID + " - relID: " + relID);
		if (operID != relID)
		{
			okToGo = false;
			aHref.href = window.location;
			aHref.target = "_self";
			alert("You do not have access to this option.");
		}
	}
	return okToGo;
}

function printVis(secVal)
{
	var secValue = parseFloat(secVal);
	//var secValue = parseInt(secVal, 10);
	//alert("security: " + secValue);
	if (secValue < 1)
	{
		document.writeln('<style type=\"text/css\" media=\"print\">');
		document.writeln('body { visibility: hidden; display: none }');
		document.writeln('</style>');
	}
}
