﻿// JScript 文件

function checkSearchText()
{
  var basepath= document.location.pathname.substring(document.location.pathname.indexOf('/')) ;
  basepath= basepath.substring(0,basepath.indexOf('/'));
  if(basepath == "")
    basepath = "/";
  else
    basepath = "/" + basepath + "/";

  var searchText = "";
  var txtKey = document.getElementById("txtKey").value;
  var lineType1 = document.getElementById("lineType1").value;
  if(txtKey != "")
    searchText = searchText + "&key=" + txtKey;
  if(lineType1 != "")
    searchText = searchText + "&type=" + lineType1;
  if(searchText.length>0)
    window.open(basepath + 'Lines/Lines.aspx?' + encodeURI(searchText.substring(1)));
  else
    window.open(basepath + 'Lines/Lines.aspx');

  return false;
  
  lineType1 = null;
  txtKey = null;
  searchText = null;
  basepath = null;
  CollectGarbage();
}
