// Logo Image Hover
if (document.images)
{
    pic1on= new Image(93,28);
    pic1on.src="/image/HomeButtonOn.jpg";  

    pic1off= new Image(93,28);
    pic1off.src="/image/HomeButtonOff.jpg";

    pic2on= new Image(131,28);
    pic2on.src="/image/ServicesButtonOn.jpg";  

    pic2off= new Image(131,28);
    pic2off.src="/image/ServicesButtonOff.jpg";

    pic3on= new Image(141,28);
    pic3on.src="/image/ProductsButtonOn.jpg";

    pic3off= new Image(141,28);
    pic3off.src="/image/ProductsButtonOff.jpg";

    pic4on= new Image(101,28);
    pic4on.src="/image/LoansButtonOn.jpg";  

    pic4off= new Image(101,28);
    pic4off.src="/image/LoansButtonOff.jpg";

    pic5on= new Image(99,28);
    pic5on.src="/image/RatesButtonOn.jpg";  

    pic5off= new Image(99,28);
    pic5off.src="/image/RatesButtonOff.jpg";

    pic6on= new Image(131,28);
    pic6on.src="/image/AboutButtonOn.jpg";  

    pic6off= new Image(131,28);
    pic6off.src="/image/AboutButtonOff.jpg";
    
}

function lightup(imgName)
{
    if (document.images)
    {
        imgOn=eval(imgName + "on.src");
        document[imgName].src= imgOn;
    }
}

function turnoff(imgName)
{
    if (document.images)
    {
        imgOff=eval(imgName + "off.src");
        document[imgName].src= imgOff;
    }
}

function showclick(imgName)
{
    if (document.images)
    {
        imgClick=eval(imgName + "click.src");
        document[imgName].src= imgClick;
    }
}


// Form Validation
function SearchValidate()
{
    if (document.SearchForm.Search.value.length <= 2)
	{
		alert("Search Selection - Please provide a valid entry");
		return false;
	}
	else if (document.SearchForm.Search.value == 'Search Phrase')
	{
	    alert("Search Selection - Please provide a valid entry");
	    return false;
	}
	else
	{
		return true;
	}
}


// Form Input Clear - All
function RemoveSearch()
{
    document.SearchForm.Search.value = "";
}

function RemoveBankingName()
{
    document.frmInput.Name.value = "";
}

function RemoveBankingPassword()
{
    document.frmInput.Password.value = "";
}


// Leaving Site Alert
function Leaving(address)
{
    var r = confirm("You are now leaving Health Facilities FCU's web site and are going to a web site that is not operated by the credit union. Health Facilities FCU is not responsible for the content or availability of linked sites. Please be advised that Health Facilities FCU does not represent either the third party or you, the member, if you enter into a transaction. Further, the privacy and security policies of the linked site may differ from those practiced by Health Facilities FCU.");

    if (r == true)
    {
	window.open(address);
    }
    else
    {
	alert("You have chosen not to leave Health Facilities FCU's web site.");
    }
}


// Quicklaunches
function GoFormSelect_Select1()
{
    if(document.getElementById('Select1').value != " ")
    {
        location=document.getElementById('Select1').value
    }
}

function GoFormSelect_Select2()
{
    if(document.getElementById('Select2').value != " ")
    {
        location=document.getElementById('Select2').value
    }
}

function GoFormSelect_Select3()
{
    if(document.getElementById('Select3').value != " ")
    {
        location=document.getElementById('Select3').value
    }
}