﻿	   function selectId(checked)
	   {
	        j('input[name=ids]').attr('checked',checked);
	        j('input[name=checkId]').attr('checked',checked);
	   }
	   function checkIds()
	   {
	        var objs = j('input[name=ids]');
	        var isChecked = false;
	        objs.each(function(o){
	            if(j(this).attr('checked'))
	            {
	                isChecked = true;
	                return false;
	            }
	        });
	        if(!isChecked)
	        {
	            alert('Please select the information inquiry!');
	            return false;
	        }
	        return true;
	   }
	   function setbg()
	   {
	       if (document.getElementById("bgbh")) {
	           var obj = document.getElementById("bgbh");
	           var objs = obj.getElementsByTagName("ul");
	           for (var i = 0; i < objs.length; i++) {
	               objs[i].value = i;
	               objs[i].onmouseover = function() { this.style.backgroundColor = "#ebf4fc"; }
	               objs[i].onmouseout = function() { this.style.backgroundColor = ""; }
	           } 
	       }
	   }
	   function go_search(path,kw)
	   {
	       var url = '/sell-offers-keywords.aspx?path=' + path + '&kw=' + kw + '&days=' + j('#search_exTime').val() + '&model=' + j('#search_model').val();
	        document.location.href = url;
	   }
        window.onload = function()
        {
            setbg();
        }
