// JavaScript Document
function setCookie(c_name,value,expiredays,path)//写Cookie
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+
((path==null)?"":";path="+path);
}
function getCookie(c_name)//获取Cookie
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 ;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return ""
}

function GoPage(Myself){window.location.href=Myself+"Page="+document.formDel.SkipPage.value;}

//复选表单全选事件 form：表单名
function CheckAll(form)  {
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
		if (e.name != 'chkall'&&e.type=="checkbox")
		{
			e.checked = form.chkall.checked;
		}
	}

}

//导航搜索[
function showSearchHover(){
	document.getElementById("search_store").style.display="block";
	document.getElementById("search_news").style.display="block";
	document.getElementById("search_shop").style.display="block";

	document.getElementById("search_select_s").style.height="auto";
	document.getElementById("search_select_s").style.overflow="auto";
	
}
function outSearchHover(){
	//document.getElementById("search_store").style.display="none";
	//document.getElementById("search_news").style.display="none";
	document.getElementById("search_select_s").style.height="29px";
	document.getElementById("search_select_s").style.overflow="hidden";
}

//点击品牌按钮
function brand(){

	var searcContent = "<a class='A_search_select_s search_mark' id='search_brand' onclick='brand(),outSearchHover()'>品&nbsp;&nbsp;牌</a><a class='A_search_select_s none' id='search_store' onclick='store(),outSearchHover()'>专卖店</a><a class='A_search_select_s none' id='search_news' onclick='news(),outSearchHover()'>资&nbsp;&nbsp;讯</a><a class='A_search_select_s none' id='search_shop' onclick='shop(),outSearchHover()'>网&nbsp;&nbsp;店</a>";
	document.getElementById("search_s").action="http://www.yeebao.com/company/brandlist.asp";
	document.getElementById("search_select_s").innerHTML=searcContent;


}

//点击专卖店按钮
function store(){
	document.getElementById("search_store").style.display="block";
	var searcContent = "<a class='A_search_select_s search_mark' id='search_store' onclick='store(),outSearchHover()'>专卖店</a><a class='A_search_select_s none' id='search_brand' onclick='brand(),outSearchHover()'>品&nbsp;&nbsp;牌</a><a class='A_search_select_s none' id='search_news' onclick='news(),outSearchHover()'>资&nbsp;&nbsp;讯</a><a class='A_search_select_s none' id='search_shop' onclick='shop(),outSearchHover()'>网&nbsp;&nbsp;店</a>";
	document.getElementById("search_s").action="http://www.yeebao.com/store/storelist.asp";
	document.getElementById("search_select_s").innerHTML=searcContent;

}

//点击资讯按钮
function news(){
	document.getElementById("search_news").style.display="block";
	var searcContent = "<a class='A_search_select_s search_mark' id='search_news' onclick='news(),outSearchHover()'>资&nbsp;&nbsp;讯</a><a class='A_search_select_s none' id='search_brand' onclick='brand(),outSearchHover()'>品&nbsp;&nbsp;牌</a><a class='A_search_select_s none' id='search_store' onclick='store(),outSearchHover()'>专卖店</a><a class='A_search_select_s none' id='search_shop' onclick='shop(),outSearchHover()'>网&nbsp;&nbsp;店</a>";
	document.getElementById("search_s").action="http://www.yeebao.com/news/list.asp";
	document.getElementById("search_select_s").innerHTML=searcContent;

}


//点击网店按钮
function shop(){
	document.getElementById("search_news").style.display="block";
	var searcContent = "<a class='A_search_select_s search_mark' id='search_shop' onclick='shop(),outSearchHover()'>网&nbsp;&nbsp;店</a><a class='A_search_select_s none' id='search_news' onclick='news(),outSearchHover()'>资&nbsp;&nbsp;讯</a><a class='A_search_select_s none' id='search_brand' onclick='brand(),outSearchHover()'>品&nbsp;&nbsp;牌</a><a class='A_search_select_s none' id='search_store' onclick='store(),outSearchHover()'>专卖店</a>";
	document.getElementById("search_s").action="http://www.yeebao.com/showNav.asp";
	document.getElementById("search_select_s").innerHTML=searcContent;

}







//]
