 function onclick_head_sch_top() {
    var node;

    node = document.getElementById('type_sch_top_list');

    if(node.style.display == "") {
       node.style.display = "none";
    } else {
       node.style.display = "";
    }
 }

 function onover_cel_sch_top(obj,type_sch_top_value) {
    var select_head;

    select_head = InputForm_TOP.select_head.value

    if(select_head != type_sch_top_value) {
       obj.style.backgroundColor = "#ffffff";
    }
 }

 function onout_cel_sch_top(obj,type_sch_top_value) {
    var select_head;

    select_head = InputForm_TOP.select_head.value

    if(select_head != type_sch_top_value) {
       obj.style.backgroundColor = "#ffffff";
    }
 }

 function onclick_cel_sch_top(obj,type_sch_top_value) {
    var i, arrCode;

    arrCode = type_sch_top_value //def_op_code.split(",");
    InputForm_TOP.select_head.value = type_sch_top_value;

    //for(i=0;i<arrCode.length;i++) {
    //    document.getElementById('type_sch_top_'+arrCode[i]).style.backgroundColor = "#ffffff";
    //}
	document.getElementById('type_sch_top_'+arrCode).style.backgroundColor = "#ffffff";
    document.getElementById('type_sch_top_'+type_sch_top_value).style.backgroundColor = "#ffffff";
    document.getElementById('type_sch_top_select').innerText = obj.innerText;
    document.getElementById('type_sch_top_list').style.display = "none";
 }

 ///////////
 function SetHomepage_SCH(obj) {
    obj.style.behavior='url(#default#homepage)';
	obj.SetHomepage_SCH('http://www.style.co.kr');
 }

 function ST_SearchIt_SCH() {
	var select_head, KW;

    select_head = InputForm_TOP.select_head.value
	KW = InputForm_TOP.KW.value

    if(KW == "") {
	   alert("검색어를 입력해 주세요.");
	   InputForm_TOP.KW.focus();
	   return;
	}

    SearchForm_TOP.CH.value = select_head
    SearchForm_TOP.KW.value = KW
	SearchForm_TOP.srh_page.value = ""

    SearchForm_TOP.submit()
 }

 function ST_SearchIn_SCH(frm_obj) {
    var s_intext;

	/*s_intext = frm_obj.s_intext.value;
	if(s_intext == "") {
	   alert("재검색할 검색어를 입력해 주세요.");
       frm_obj.s_intext.focus();
	   return;
	}*/

	SearchForm_TOP.srh_page.value = ""
	SearchForm_TOP.submit();

	return false;
 }

 function ST_SearchMore_SCH(op_code) {
    SearchForm_TOP.MG.value = op_code;
	SearchForm_TOP.submit()
 }

 function ST_SearchKeyword_SCH(keyword) {
    InputForm_TOP.select_head.value = "";
	SearchForm_TOP.CH.value = "T";
	document.getElementById('type_sch_top_select').innerText = "통합검색";
	InputForm_TOP.KW.value = keyword;

	ST_SearchIt_SCH();
 }


 function ST_SearchMore_SCH_ORD(ord_code) {
    SearchForm_TOP.ORD.value = ord_code;
	SearchForm_TOP.srh_page.value = "1"
	SearchForm_TOP.submit()
 }

 function ST_SearchMore_SCH_CH(ch_code) {
    SearchForm_TOP.CH.value = ch_code;
	SearchForm_TOP.ORD.value = "0";
	SearchForm_TOP.MG.value = "";
	SearchForm_TOP.srh_page.value = ""
	SearchForm_TOP.submit()
 }


 function ST_MovePage_SCH(page) {
    SearchForm_TOP.srh_page.value = page
	SearchForm_TOP.submit()
 }

 function ST_AutoEnter1_SCH() {
 	var keycode = event.keyCode;

	if(keycode==13) {
	   ST_SearchIt_SCH()
	   event.returnValue = false;
	}
 }

 function ST_AutoEnter2_SCH(frm_obj) {
 	var keycode = event.keyCode;

	if(keycode==13) {
	   ST_SearchIt_SCH(frm_obj)
	   event.returnValue = false;
	}
 }
/*
 SCH_E_MOUSEOUT = function(e,obj,eid,stat) {
   var t = e ? e.relatedTarget : event.toElement;
   while(t){
    if(t == obj) return;
    t = t.parentNode;
   }
   document.getElementById(eid).style.display = stat;
 }
 */



