<!--
<!-- This script determines which screen to navigate to choose based on the selection
<!-- 
function selectnewwin(screen,restore)
  { eval("parent.location='"+screen.options[screen.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
  }
<!--
<!-- opening a fixed-size window
<!--
  function openWindow(url, name, width, height, left, top) 
    {window.open(url, name, 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ', toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0')}
//-->

<!--
<!-- This script opens a new window to display a list of business for the 'business type' selected
function BusinessSearch() 
{ var bt  = document.SearchForm1.BusinessType.options[document.SearchForm1.BusinessType.selectedIndex].value;
  var url = 'businesssearch.asp?bus=' + bt;
  window.open(url, 'bussearchpage', 'width=900,height=500,left=10,top=30,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1')
  }
//-->
<!--
<!-- This script opens a new window to display a list of business for the 'business name' selected
function NameSearch() 
{ var id  = document.SearchForm2.BusinessName.options[document.SearchForm2.BusinessName.selectedIndex].value;
  var url = 'namesearch.asp?recordid=' + id;
  window.open(url, 'namesearchpage', 'width=700,height=300,left=10,top=30,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1')
  }
//-->
<!--
<!-- This script opens a new window to display a list of business for the 'business name' selected
function StringSearch() 
{ var s1="OFF";
  var s2="OFF";
  var s3="OFF";
  var str  = document.SearchForm3.search_string.value;

  if (str <= "") 
    { alert("Search field is empty") }
  else
    {
      if (document.SearchForm3.search_in_comp_name.checked)     { s1="ON"; }
      if (document.SearchForm3.search_in_business_type.checked) { s2="ON"; }
      if (document.SearchForm3.search_in_contact_name.checked)  { s3="ON"; }

      if ((s1 == "ON") || (s2 == "ON") || (s3 == "ON"))
        {
          var url = 'strsearch.asp?lookfor=' + str + '&s1=' + s1 + '&s2=' + s2 + '&s3=' + s3;
          window.open(url, 'stringsearchpage', 'width=900,height=500,left=10,top=30,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1')
        }
      else
        { alert("At least one of the check boxes needs to be ticked") }
     }
}
//-->