function brandonSearch()
{
    var s = '';
    var o=document.getElementById("Select1");
	for (var i=0;i<o.options.length;i++){
        if(o.options[i].selected)
		{
		id=o.value;
		var typeurl = "http://wwww.zgbfw.com/";
			if(id == "sale")
			{ 
				strURL = "http://www.zgbfw.com/Search/search.asp?type=trade&zgbfw=供求商机&length=40&KeyWord=" +  document.getElementById("keyword1").value+ "";
				window.open(strURL);
			}
			else if(id == "buy")
			{
				strURL = "http://www.zgbfw.com/Search/search.asp?type=trade1&zgbfw=求购商机&length=40&KeyWord=" +  document.getElementById("keyword1").value;
			    window.open(strURL);
		
			}
			else if(id == "companys")
			{
			  
				strURL = "http://www.zgbfw.com/Search/search.asp?type=company&zgbfw=企业名录&length=40&KeyWord=" +  document.getElementById("keyword1").value;
				  window.open(strURL);
			}
			else if(id == "price")
			{
			  
				strURL = "http://www.zgbfw.com/Search/search.asp?type=price&zgbfw=产品报价&length=40&KeyWord=" +  document.getElementById("keyword1").value;
				  window.open(strURL);
			}
			else if(id == "exhibition")
			{
			  
				strURL = "http://www.zgbfw.com/Search/search.asp?type=exhibition&zgbfw=展会&length=40&KeyWord=" +  document.getElementById("keyword1").value;
				  window.open(strURL);
			}
			else if(id == "products")
			{
		
				strURL = "http://www.zgbfw.com/Search/search.asp?type=product&zgbfw=产品查询&length=16&KeyWord=" +  document.getElementById("keyword1").value + "";
				  window.open(strURL);
			}
			else if(id == "ability")
			{
			    strURL = "http://www.zgbfw.com/Search/search.asp?type=job&zgbfw=企业招聘&length=40&KeyWord=" +  document.getElementById("keyword1").value + "";
				  window.open(strURL);
			}
			else if(id == "news")
			{
				strURL = "http://www.zgbfw.com/Search/search.asp?type=news&zgbfw=信息资讯&length=40&KeyWord=" +  document.getElementById("keyword1").value + "";
			      window.open(strURL);
			}
			else if(id == "job")
			{strURL = "http://www.zgbfw.com/Search/search.asp?type=job&length=40&KeyWord=" +  document.getElementById("keyword1").value + "";
			      window.open(strURL);
			}
			else if(id == "info")
			{
				strURL = "http://www.zgbfw.com/Search/search.asp?type=job&length=40&KeyWord=" +  document.getElementById("keyword1").value + "";
			      window.open(strURL);
			}
		}
		}
    }
function checkisnull()
{
       if(document.getElementById("txtname").value=="")
       {
          alert("用户名不能为空");
          document.all("txtname").focus();
		  return false;
       }
       if(document.getElementById("txtpass").value=="")
       {
          alert("密码不能为空");
          document.all("txtpass").focus();
		  return false;
       }
}