﻿function rowOverEffect(object)
{
    object.className = 'tab_top_list_hover';  
}
function rowOutEffect(object,j) 
{
  {
  if (object.className == 'tab_top_list_hover') 
  {
     if (j%2 == 0)
     { object.className = 'tab_top_list1';}
     else {object.className = 'tab_top_list2';}
  }
}
}
// ***** Begin Search ******

function do_search_tab() {
	var frm = document.frm_search;
	kw = document.getElementById("keyword").value;
	if (!kw) alert('Bạn chưa nhập từ khóa');
	else {
		kw = encodeURIComponent(kw);
		type = document.getElementById("t").value;
		last_url = '';
		window.location.href = '#Search/'+type+'/'+kw+'/1/Page.html';
	}
	return false;

}
function setValue(obj)
{
		var str = 'Tìm là có mò là thấy !!';   
			if(obj.value == '')
			{
				obj.value = str;
				obj.style.color = '#848484';
			}
			else if(obj.value == str)
			{
				obj.value = '';
				obj.style.color = '#000000';
			}
}
function applyType(obj, value)
{
					var arrType = document.getElementsByName('searchType');
					for (var i = 0; i < arrType.length; i++) {
						arrType[i].className = '';
					}
					obj.className = 'curent';
					//$('t').value = value;
					document.getElementById('t').value = value;
}
// ***** End Search *****