function ColumnOver(columnName)
{
	var vCol = document.getElementById(columnName);
	if(vCol != null)
		vCol.className = "PaneSelected";
}
function ColumnOff(columnName)
{
	var vCol = document.getElementById(columnName);
	if(vCol != null)
		vCol.className = "NoPaneSelected";
}
function OpenLinkPage(ParentUrl, NewUrl)
{
	window.location.href = ParentUrl;
	window.open(NewUrl);
}
function EditModulePopUp(strUrl)
{
	modWindow= window.open (strUrl,'Modules')//,
	//'left=20,top=20,width=750,height=600,location=0,toolbar=0,scollbars=1,menubar=0,resizable=1,status=1');

}
function EditTabPopUp(strUrl)
{
	modWindow= window.open (strUrl,'Pages',
	'left=20,top=20,width=500,height=250,location=0,toolbar=0,scollbars=1,menubar=0,resizable=1,status=1');
}

function RefreshParent()
{
	if (window.opener && !window.opener.closed)
	{
		window.opener.window.location.href = window.opener.window.location.href;
	}

}

function RefreshParent2(strUrl)
{
	if (window.opener && !window.opener.closed)
	{
		window.opener.window.location.href = strUrl;
	}
}

function RefreshSelf(strUrl)
{
	window.opener.window.location.href = strUrl;
}

function CloseWindow()
{
	window.close();
}

function ShowHideElement(strObj)
{
	var obj = document.getElementById(strObj); 
	if(obj != null)
	{
		if (obj.style.display == '')
		{
			obj.style.display = 'none';
		}
		else
		{
			obj.style.display = '';
		}
	}
}

function BeforePrint()
{
	var obj1 = document.getElementById('tableBannerId');
	obj1.style.display = 'none';
}

function AfterPrint()
{
	var obj1 = document.getElementById('tableBannerId');
	obj1.style.display = '';
}
function ResizeContent()
{
	var obj = document.getElementById('<%= this.bodyMain.ClientID %>');
	var content = document.getElementById('divContent');
	//alert("Body: " + obj);
	//alert("content: " + content);
	var banner = document.getElementById('tableBannerId');
	//alert("banner: " + banner);
	//alert(obj.clientHeight);
	content.style.height = (obj.clientHeight - banner.clientHeight) - 14;
	//content.style.height = content.style.height - 5;
}

