﻿// JScript File
//debugger;

function showTooltip(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = event.clientY + document.documentElement.scrollTop + 15;
        tt.style.left = event.clientX + document.documentElement.scrollLeft;
        tt.style.visibility="visible";
        tt.style.border="thin solid gray";
        tt.style.width="500px";
        tt.style.background="#ffffff";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#0c1132";  
    }
}

 
function hideTooltip()
{
    var tt = document.getElementById("Tooltip");
    
    if (tt != null)
    {
    tt.innerHTML = "";
    tt.style.visibility = "hidden";
    tt.top = "-10000";
    }
}

function SubmitSelect()
{	
	// ignore if not a carriage return
	if (window.event.keyCode == 13)
	{
	// search through the form looking for the first submit button.  
		var collInput;		
		collInput = document.all.tags("INPUT");
		for (var i=0; i < collInput.length; i++)
		{
		    // modify below for name of input button to fire
			if (collInput(i).name == "WQ" || collInput(i).name == "Submit")
			{	
				collInput(i).click();
				break;
			} 
		}
	}
}


function showTooltip2(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "210px";
        tt.style.left = "660px";
        tt.style.visibility="visible";
        tt.style.border="thin solid gray";
        tt.style.width="250px";
        tt.style.background="#ffffff";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#0c1132";  
    }
}

function showTooltip3(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "285px";
        tt.style.left = "55px";
        tt.style.visibility="visible";
        tt.style.border="thin solid gray";
        tt.style.width="300px";
        tt.style.background="#ffffff";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#0c1132";     
    }
} 

function showTooltip5(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "410px";
        tt.style.left = "235px";
        tt.style.visibility="visible";
        tt.style.border="thin solid gray";
        tt.style.width="300px";
        tt.style.background="#ffffff";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#0c1132";     
    }
} 
 
function showTooltip6(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "380px";
        tt.style.left = "290px";
        tt.style.visibility="visible";
        tt.style.border="thin solid gray";
        tt.style.width="300px";
        tt.style.background="#ffffff";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#0c1132";     
    }
}  

function showTooltip7(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "430px";
        tt.style.left = "660px";
        tt.style.visibility="visible";
        tt.style.border="thin solid gray";
        tt.style.width="250px";
        tt.style.background="#ffffff";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#0c1132";  
    }
}

function showTooltip8(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "412px";
        tt.style.left = "590px";
        tt.style.visibility="visible";
        tt.style.border="thin solid #544f2f";
        tt.style.width="290px";
        tt.style.background="#c7c3b3";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#000033";  
    }
}

function showTooltip9(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "336px";
        tt.style.left = "590px";
        tt.style.visibility="visible";
        tt.style.border="thin solid #544f2f";
        tt.style.width="290px";
        tt.style.background="#c7c3b3";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#000033";  
    }
}
 
function showTooltip10(value)
{
    var tt = document.getElementById("Tooltip");
    if (tt != null)
    {
        tt.innerHTML = value;
        tt.style.position="absolute";
        tt.style.zIndex="999999";
        tt.style.top = "274px";
        tt.style.left = "590px";
        tt.style.visibility="visible";
        tt.style.border="thin solid #5d5736";
        tt.style.width="290px";
        tt.style.background="#c7c3b3";
        tt.style.padding="3 3 3 3";
        tt.style.fontFamily="verdana";
        tt.style.fontSize="10px";        
        tt.style.textAlign="left";      
        tt.style.color="#000033";  
    }
} 
 
function hideTooltip()
{
    var tt = document.getElementById("Tooltip");
    
    if (tt != null)
    {
    tt.innerHTML = "";
    tt.style.visibility = "hidden";
    tt.top = "-10000";
    }
}

function SubmitSelect()
{	
	// ignore if not a carriage return
	if (window.event.keyCode == 13)
	{
	// search through the form looking for the first submit button.  
		var collInput;		
		collInput = document.all.tags("INPUT");
		for (var i=0; i < collInput.length; i++)
		{
		    // modify below for name of input button to fire
			if (collInput(i).name == "WQ" || collInput(i).name == "Submit")
			{	
				collInput(i).click();
				break;
			} 
		}
	}
}
	
function doClick(buttonName,e)
{
//the purpose of this function is to allow the enter key to 
//point to the correct button to click.
    var key;

    if(window.event)
        key = window.event.keyCode;     //IE
    else
        key = e.which;     //firefox
    
        if (key == 13)
        {
            //Get the button the user wants to have clicked
            var btn = document.getElementById(buttonName);
            if (btn != null)
            { //If we find the button click it
                btn.click();
                event.keyCode = 0
            }
        }
 }

