// Logo Image Hover
if (document.images)
   {
     pic1on= new Image(69,44);
     pic1on.src="/image/HomeButtonOn.jpg";  

     pic1off= new Image(69,44);
     pic1off.src="/image/HomeButtonOff.jpg";
     
     pic2on= new Image(131,44);
     pic2on.src="/image/CompanyButtonOn.jpg";  

     pic2off= new Image(131,44);
     pic2off.src="/image/CompanyButtonOff.jpg";
     
     pic3on= new Image(74,44);
     pic3on.src="/image/SupportButtonOn.jpg";  

     pic3off= new Image(74,44);
     pic3off.src="/image/SupportButtonOff.jpg";
     
     pic4on= new Image(78,44);
     pic4on.src="/image/ProductsButtonOn.jpg";  

     pic4off= new Image(78,44);
     pic4off.src="/image/ProductsButtonOff.jpg";
     
     pic5on= new Image(83,44);
     pic5on.src="/image/SolutionsButtonOn.jpg";  

     pic5off= new Image(83,44);
     pic5off.src="/image/SolutionsButtonOff.jpg";
     
     pic6on= new Image(103,44);
     pic6on.src="/image/ContactButtonOn.jpg";  

     pic6off= new Image(103,44);
     pic6off.src="/image/ContactButtonOff.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;
    }
 }
 
 
// QuickLaunch
function GoFormSelect_QuickLaunch()
{

    if(document.getElementById('SelectQuickLaunch').value != " ")
    {
        location=document.getElementById('SelectQuickLaunch').value
    }

}


// Login Validation
function LoginValidate()
{
    if (document.getElementById("Username").value.length <= 3)
    {
	   	alert("Username - Please provide a valid entry");
	    return false;
    }
    if (document.getElementById("Password").value.length <= 1)
    {
	   	alert("Password - Please provide a valid entry");
	    return false;
    }
    if (document.getElementById("Type").value.length <= 1)
    {
        alert("Please select a proper login destination from the drop-down list provided");
        return false;
    }
	else
	{
		return true;
	}
}


function chkFormLogin(theForm)
{
	var f;
	var c;
	
	if (theForm.txtmbrid.value == "")
	{
		alert("You must enter a User ID.");
		theForm.txtmbrid.focus();
		return (false);
	}
	
	if (theForm.txtmbrid.value.length > 64)
	{
		alert("User ID cannot be longer than 64 characters.");
		theForm.txtmbrid.focus();
		return (false);
	}
	
	if (theForm.txtmbrpassword.value == "")
	{
		alert("You must enter a Password.");
		theForm.txtmbrpassword.focus();
		return (false);
	}
	
	if (theForm.txtmbrpassword.value.length > 64)
	{
		alert("Password cannot be longer than 64 characters.");
		theForm.txtmbrpassword.focus();
		return (false);
	}
	
	// Set the screen
	SetScreen();
	
	//Clean return
	return (true);
	
}


// Form Direction
function FormDirection()
{
    if (document.getElementById("Type").value == "Content Management System")
    {
        window.location = document.getElementById("Type").value;
    }
    if (document.getElementById("Type").value == "http://www.op247.com/GO/OP/OP-Main.asp?Action=Home")
    {
        window.location = document.getElementById("Type").value;
    }
}