function WindowClose()
{
  // Routine to close the current window...
  close();
  return;
}


function WindowOpen(sURL, iWidth, iHeight)
{
  // Routine to show a window from a link within the help page
  // based on the sURL...
  window.open (sURL,'', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + iWidth + ',height=' + iHeight + ',top=0,left=0');
}

function WindowStaticOpen(sURL, iWidth, iHeight)
{
  // Routine to show a window from a link within the help page
  // based on the sURL...
  window.open (sURL,'', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + iWidth + ',height=' + iHeight + ',top=0,left=0');
}

function WindowPrint()
{
  // Print the window...
  window.print();
}

function LinkStyleSet(objElement, bHighlight)
{
	// Function to turn on and off the link
	// highlighting...
	if (bHighlight == 1)
		{
			objElement.style.textDecoration = "underline";
			objElement.style.color = "#ff0000";
		}
	else
		{
			objElement.style.textDecoration = "none";
			objElement.style.color = "#ffffff";
		}
}

function LinkStyleSet2(objElement, bHighlight)
{
	// Function to turn on and off the link
	// highlighting...
	if (bHighlight == 1)
		{
			objElement.style.color = "#FF6601";
			objElement.style.textDecoration = "underline";
		}
	else
		{
			objElement.style.color = "#497BBF";
			objElement.style.textDecoration = "underline";
		}
}

function LinkCursorSet(objElement)
{
	// Function to set the cursor on a link to a "hand"...
	objElement.style.cursor = "hand";
}

/*
function tabSelected(sControl, sKey)
{
    // Function to submit the page when a tab is "clicked"...
    if (document.all[sControl] != undefined) 
        {
            document.all[sControl].value = sKey;
            document.forms[0].submit();
        }
}
*/

function tabSelected(sControl, sKey)
{
    // Function to submit the page when a tab is "clicked"...
    //if (document.all[sControl] != undefined) 
    //    {
    //        document.all[sControl].value = sKey;
    //        document.forms[0].submit();
    //    }
    obj = document.getElementById(sControl)
    if (typeof obj != "undefind")
        {
            obj.value = sKey;
            document.forms[0].submit();
        }
}

function borderChange(oElement, bHighlight)
{
    // Function to change the border color of the passed element...
    // Function to turn on and off the toolbar
	// highlighting...
	if (oElement.style.borderColor != "")
	    {
	        if (bHighlight == 1)
			    oElement.style.border = "#cc0000 1px solid";
	        else
			    oElement.style.border = "#cccccc 1px solid";
		}
}

