﻿//取得查询条件
function getAry()
{
  var j=0;
  var ary = new Array();

  var coll = document.getElementsByTagName("select");
  for (i=0; i< coll.length; i++)
  {
    if(!coll.item(i).options.item(0).selected)
    {
        
      for(j=1;j<coll.item(i).options.length;j++)
      {
        if(coll.item(i).options.item(j).selected)
        ary = ary.concat(coll.item(i).options.item(j).value);
      }
    }
    else
    {
      ary = ary.concat("");
    }
  }

  var text = document.getElementsByTagName("input");
   
  for(i=0;i<text.length;i++)
  {
    if(text.item(i).type=="text")
      ary = ary.concat(text.item(i).value);
  }
  
  return ary;
}

function getHref(current,count)
{
  ary = getAry();

  window.location.href=encodeURI("/rent/ls.aspx?search=" + ary + "&current=" + current + "&count=" + count);
}

