function searchfor(which)
{
  document.search.which.value=which;
  var searchfor = "";
  if (which == "chemical") searchfor = search3.value;
  if (which == "cas") searchfor = search4.value;
  if (which == "inci") searchfor = search2.value;
  if (searchfor == "")
  {
    alert("please enter something to search for");
  } else
  {
    document.search.criteria.value=searchfor;
    document.search.submit();
  }

}

function question(which)
{
  if (which == "1") document.getElementById("questionarea").innerHTML = 'If you know the name of the chemical you are looking for simply enter it in the field provided and click on the Search button.<br><br>If you don’t know the exact name of the chemical you are looking for but do know some of the letters it contains ie az then you can use a wildcard in your search: ie   *az* will display all the chemicals on our database containing the letters az.<br><br>If you know that the product you are looking starts with Anti then you can enter anti* and all of our products starting with the letter Anti will be displayed.';
  if (which == "2") document.getElementById("questionarea").innerHTML = 'If you know the INCI name of the chemical you are looking for simply enter it in the field provided and click on the Search button.<br><br>If you don’t know the exact INCI name you are looking for but do know some of the letters it contains ie az then you can use a wildcard in your search: ie   *az* will display all the chemicals on our database containing the letters az.<br><br>If you know that the product you are looking starts with Anti then you can enter anti* and all of our products starting with the letter Anti will be displayed.';
  if (which == "3") document.getElementById("questionarea").innerHTML = 'If you know the CAS Number of the chemical you are looking for simply enter it in the field provided and click on the Search button.<br><br>If you don’t know the exact CAS number of the chemical you are looking for but do know that it contains the number 764 then you can use a wildcard in your search: ie   *764* will display all the chemicals on our database containing the Cas Number 764.<br><br>If you know that the CAS Number you are looking for starts with 552 then you can enter 552* and all of our products starting with the CAS Number 552 will be displayed.';

}

function answered()
{
  document.getElementById("questionarea").innerHTML = "";
}

function Q1text()
{
  document.getElementById("questionarea").innerHTML = 'If you know the name of the chemical you are looking for simply enter it in the field provided and click on the Search button.<br><br>If you don’t know the exact name of the chemical you are looking for but do know some of the letters it contains ie az then you can use a wildcard in your search: ie   *az* will display all the chemicals on our database containing the letters az.<br><br>If you know that the product you are looking starts with Anti then you can enter anti* and all of our products starting with the letter Anti will be displayed.';
}

function Q2text()
{
  document.getElementById("questionarea").innerHTML = 'If you know the CAS Number of the chemical you are looking for simply enter it in the field provided and click on the Search button.<br><br>If you don’t know the exact CAS number of the chemical you are looking for but do know that it contains the number 764 then you can use a wildcard in your search: ie   *764* will display all the chemicals on our database containing the Cas Number 764.<br><br>If you know that the CAS Number you are looking for starts with 552 then you can enter 552* and all of our products starting with the CAS Number 552 will be displayed.';
}
