	var searchtype = 1;

	function setType(obj,type) {

	    if(type==1){

	      obj.src="http://www.cctv.com/homepage/images/btn1_c.gif"

		  document.all.searchtop_2.src="http://www.cctv.com/homepage/images/btn2.gif"	

		  formSearch.method="post";

		  formSearch.action="http://vsearch.cctv.com/tvsearch.jsp";	  

		}else{

	      obj.src="http://www.cctv.com/homepage/images/btn2_c.gif"		

		  document.all.searchtop_1.src="http://www.cctv.com/homepage/images/btn1.gif"		

		  formSearch.method="get";

		  formSearch.action="http://web.search.cctv.com/websearch.php";		  		  

		}

		searchtype = type;

	}

	function setSearchBottomType(obj,type) {

	    if(type==1){

	      obj.src="http://www.cctv.com/homepage/images/bottom_search_tv_c.gif"

		  document.all.searchbotoom_2.src="http://www.cctv.com/homepage/images/bottom_search_page.gif"		

		}else{

	      obj.src="http://www.cctv.com/homepage/images/bottom_search_page_c.gif"		

		  document.all.searchbotoom_1.src="http://www.cctv.com/homepage/images/bottom_search_tv.gif"				  

		}

		searchtype = type;

	}	

	function form_2(){
	  var qtext=document.all.query_bottom.value
	  document.all.formSearch.query.value=qtext	  
	  document.all.formSearch.q.value=qtext
	  return form_1(document.all.formSearch);
	}

	function form_1(form1){
		if (searchtype==1) {
			form1.q.value = form1.query.value;
		} else if (searchtype==2) {
			form1.q.value=form1.query.value;
			form1.sort.value='';
			form1.content.value=form1.query.value;
			form1.title.value='';
			form1.from_date.value='';
			form1.to_date.value='';
		}
		form1.submit();
		return false;
	}

	function checkAction() {
		var form1 = formSearch;
		if (searchtype==1) {
			form1.q.value = form1.query.value;
		} else if (searchtype==2) {
			form1.content.value=form1.query.value;
			form1.title.value='';
			form1.from_date.value='';
			form1.to_date.value='';
		}
	}

	var now = new Date();

	var now_hour = now.getHours();

	var helloword = "";

	if (now_hour > 4 && now_hour < 10) {

		helloword = "早上";

	} else if (now_hour >= 10 && now_hour < 12) {

		helloword = "上午";

	} else if (now_hour >= 12 && now_hour < 14) {

		helloword = "中午";

	} else if (now_hour >= 14 && now_hour < 18) {

		helloword = "下午";

	} else if (now_hour >= 18 || now_hour < 14) {

		helloword = "晚上";

	}

	var weekday=["日","一","二","三","四","五","六"]