﻿function doShowHide(pPositionName)
{
	var bCurrentlyShowing = ((document.getElementById(pPositionName).style.display=='none')?true:false);
	var TheThTags = document.getElementsByTagName('th');
	for(var i = 0; i <  TheThTags.length; i++)
		if(TheThTags[i].className == pPositionName && TheThTags[i].id != '')
			document.getElementById('tr' + TheThTags[i].id).style.display = ((bCurrentlyShowing)? 'none' : '');
	document.getElementById(pPositionName).style.display = ((bCurrentlyShowing)? '': 'none');
}
// JavaScript Document
				function openWindow(url, name, width, height, center, resize, scroll, posleft, postop)
				{
					center = 1;
					
					if (posleft != 0) { X = posleft; }
					if (postop  != 0) { Y = postop; }
				
					if (!width) { width = 790; }
					if (!height) { height = 600; }
					if (!resize) { resize = 0; }

					if (center)
					{
						X = (screen.width - width) / 2;
						Y = (screen.height - height) / 2;
					}
				
					if (scroll != 0) scroll = 1;
					if (resize != 0) resize = 1;
					
					var features = 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no';

					win2 = window.open(url,name,features);
					win2.focus();
				}
// Highlights the main buttons.
// An Example:
//<tr onMouseOut="javascript: lowlightRow(this);" onMouseOver="javascript: highlightRow(this);">
		function highlightRow(row)
				{
					row.style.backgroundColor = "#DE8704";
				}

		function lowlightRow(row)
				{
					row.style.backgroundColor = "#ECAC4A";
				}
// Highlights the table or item the mouse is on.transparent
// An Example:
//<tr onMouseOut="javascript: lowlightCell(this);" onMouseOver="javascript: highlightCell(this);">ECAC4A,DE8704

		function highlightCell(row)
				{
					row.style.backgroundColor = "#E8E8E8";
				}

		function lowlightCell(row)
				{
					row.style.backgroundColor = "#fff";
				}
