function getQuickFindParameters() {
  var url = "";
  
  var visible = readCookie("SearchVisible");
  var advsearch = (visible == "visible") ? "on" : "off";
  url = "&advsearch=" + advsearch;
  
  var txtfldCode = document.getElementById("txtfldCode");
  var txtfldGenus = document.getElementById("txtfldGenus");
  var txtfldSpecies = document.getElementById("txtfldSpecies");
  var txtfldComm = document.getElementById("txtfldComm");

  var url = url + 
            "&txtfldCode=" + txtfldCode.value + 
            "&txtfldGenus=" + txtfldGenus.value + 
            "&txtfldSpecies=" + txtfldSpecies.value + 
            "&txtfldComm=" + txtfldComm.value;	  
  return url;
}

function getSLFormParameters() {
  var url = "&show=" + document.nsform.show.value + 
            "&String=" + document.nsform.String.value + 
            "&Where=" + document.nsform.Where.value + 
            "&Type=" + document.nsform.Type.value + 
            "&Category=" + document.nsform.Category.value + 
            "&Month=" + document.nsform.Month.value + 
            "&Year=" + document.nsform.Year.value;            
  return url;
}

function getPrefParameters() {
  var url = "&advsearch=" + getEl("advsearch").value
}

function constructParameters() {
  var url = "quickFindStockLabels.php?op=search" + getQuickFindParameters() +
            getSLFormParameters() + document.getElementById("sortbycolumn").value + 
            getUserPreferenceParam();
  
  a = constructParameters.arguments;
  if (a.length > 0)
    url += a[0];
    
  sendQuickFindAJAX(url);
}

