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

    pic1off= new Image(79,42);
    pic1off.src="/image/HomeButtonOff.jpg";
    
    pic2on= new Image(150,42);
    pic2on.src="/image/MemberServicesButtonOn.jpg";  

    pic2off= new Image(150,42);
    pic2off.src="/image/MemberServicesButtonOff.jpg";
    
    pic3on= new Image(116,42);
    pic3on.src="/image/CommercialButtonOn.jpg";  

    pic3off= new Image(116,42);
    pic3off.src="/image/CommercialButtonOff.jpg";
    
    pic4on= new Image(136,42);
    pic4on.src="/image/SafetyCenterButtonOn.jpg";  

    pic4off= new Image(136,42);
    pic4off.src="/image/SafetyCenterButtonOff.jpg";
    
    pic5on= new Image(195,42);
    pic5on.src="/image/CommunityResourcesButtonOn.jpg";  

    pic5off= new Image(195,42);
    pic5off.src="/image/CommunityResourcesButtonOff.jpg";
    
    pic6on= new Image(136,42);
    pic6on.src="/image/NewsInfoButtonOn.jpg";  

    pic6off= new Image(136,42);
    pic6off.src="/image/NewsInfoButtonOff.jpg";
    
    pic7on= new Image(138,42);
    pic7on.src="/image/CompanyButtonOn.jpg";  

    pic7off= new Image(138,42);
    pic7off.src="/image/CompanyButtonOff.jpg";
    
    pic8on= new Image(274,132);
    pic8on.src="/image/BillPayOn.jpg";  

    pic8off= new Image(274,132);
    pic8off.src="/image/BillPayOff.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 = "";
}


// Leaving Site Alert
function Leaving(address)
{
    var r = confirm("You are now leaving Lynches River Electric Cooperative's web site and are going to a web site that is not operated by the cooperative. Lynches River Electric Cooperative is not responsible for the content or availability of linked sites. Please be advised that Lynches River Electric Cooperative 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 Lynches River Electric Cooperative.");

    if (r == true)
    {
	window.open(address);
    }
    else
    {
	alert("You have chosen not to leave Lynches River Electric Cooperative's web site.");
    }
}
