function makevisible(control, flag)
{
	if (flag == 0)
	{
		control.filters.alpha.opacity = 100;
	}
	else
	{
		control.filters.alpha.opacity = 50;
	}
}
function IsReturnKey()
{
	if (window.event.keyCode == 13)
	{
		window.event.keyCode = 0;
		return true;
	}
	return false;
}
function DoPostBack(code)
{
	var frm = document.frmMain;
	frm.hdAction.value = code;
	frm.submit();
}
function ReturnKeySearch()
{
	if (IsReturnKey())
	{
		DoPostBack(1);
	}
}
function ViewAdvisor()
{
	var frm = document.frmMain;
	DoPostBack(2);
}
function Print()
{
	//	TitleBar.style.display = "none";
	window.print();
	//    TitleBar.style.display = "";
}
function PopupWindow(name, link)
{
	var popup = window.open(link, name, 'resizable=yes,menubar=1,toolbar=0, location=0,status=0,scrollbars=yes,width=790,height=540,top=0,left=0,screenx=0,screeny=0', false);
	if (popup != null)
	{
		popup.focus();
	}
}
function ResizeImage()
{
	var img = document.frmMain.imgPicture;
	if (img != null && img.width > 200)
	{
		img.style.width = 200;
	}
}
function Back()
{
	parent.mainFrm.history.back();
}
function ChangeImages()
{
	if (document.images)
	{
		for (var i = 0; i < ChangeImages.arguments.length; i += 2)
		{
			document[ChangeImages.arguments[i]].src = ChangeImages.arguments[i + 1];
		}
	}
}
function ChangePage(link)
{
	top.location.href = link;
}

