function searchformvalidator(theForm)
{
  if (theForm.searchterm.value == "")
  {
    alert("Please enter a value for the Search field.");
    theForm.searchterm.focus();
    return (false);
  }

  if (theForm.searchterm.value.length < 3)
  {
    alert("Please enter at least 3 characters in the Search field.");
    theForm.searchterm.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f'.";
  var checkStr = theForm.searchterm.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and whitespace characters in the Search field.");
    theForm.searchterm.focus();
    return (false);
  }
	
  return (true);
}

function formvalidator(theForm)
{
  if (theForm.searchterm.value == "")
  {
    alert("Please enter a value for the Search field.");
    theForm.searchterm.focus();
    return (false);
  }

  if (theForm.searchterm.value.length < 3)
  {
    alert("Please enter at least 3 characters in the Search field.");
    theForm.searchterm.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f'.";
  var checkStr = theForm.searchterm.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and whitespace characters in the Search field.");
    theForm.searchterm.focus();
    return (false);
  }
	
  return (true);
}

var myChoice, mySelection;
function Menu1ItemRedirectPage(){
myChoice = document.form1.Menu1.selectedIndex; 
mySelection=document.form1.Menu1.options[myChoice].value; 
location.href = mySelection
}

<!--
function validatedicsearch(theForm)
{
  if (theForm.dicterm.value == "")
  {
    alert("Please enter a value for the Search field.");
    theForm.dicterm.focus();
    return (false);
  }

  if (theForm.dicterm.value.length < 3)
  {
    alert("Please enter at least 3 characters in the Search field.");
    theForm.dicterm.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f'.";
  var checkStr = theForm.dicterm.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and whitespace characters in the Search field.");
    theForm.dicterm.focus();
    return (false);
  }
	
  return (true);
}

function show(object) {
	var targetdiv = document.getElementById(object);
	targetdiv.style.visibility="visible";
  return (true);
}

function hide(object) {
	var targetdiv = document.getElementById(object);
	targetdiv.style.visibility="hidden";
  return (true);
}

function upmenu(product,highlightUID) {
window.open("menu" + product + ".asp?h=" + highlightUID,"treeframe");
}

function cssearchvalidator(theForm)
{
  if (theForm.searchterm.value == "")
  {
    alert("Please enter a value for the Search term field.");
    theForm.searchterm.focus();
    return (false);
  }

  if (theForm.searchterm.value.length < 2)
  {
    alert("Please enter at least 2 characters in the Search term field.");
    theForm.searchterm.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f";
  var checkStr = theForm.searchterm.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and whitespace characters in the Search term field.");
    theForm.searchterm.focus();
    return (false);
  }
  return (true);
}

function CopyText(theElement) {
var tempval = document.getElementById(theElement);
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand("Copy");
}

function copypage() {
var div = document.getElementById('pagecontent');
div.contentEditable = 'true';
var controlRange;
if (document.body.createControlRange) {
controlRange = document.body.createControlRange();
controlRange.addElement(div);
controlRange.execCommand('Copy');
}
div.contentEditable = 'false';
}

function go(control) {
url = document.getElementById(control).value;
if (url != "-")
{window.location = url;}
else
 {return false;}
}

