function checkSearch()
{
   var tsf = document.totalSearchForm;
   var tstype = tsf.tschtype.value;
   var tschname = 'tschname'+tstype;
   var tschwhere = 'where'+tstype;

   if(isEmpty(tsf[tschname]))
   {
      alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä~! ^^');
      tsf[tschname].focus();
      return false;
   }
   else
   {
      tsf.tschwhere.value = tsf[tschwhere].value;
      tsf.tschname.value = tsf[tschname].value;
      return;
   }
}

function recomSearch(value)
{
   var tsf = document.totalSearch
   document.totalSearchForm.tschname.value = value;
   document.totalSearchForm.submit();
}

//var arrMenu = new Array("ecard", "eletter", "mobile", "charac");
var arrMenu = new Array("ecard", "eletter", "flashgame");
function searchMoreList(type,subtype)
{
   for(i=0;i<arrMenu.length;i++)
   {
      if(type == 'all' || arrMenu[i] == type) {
         document.all[arrMenu[i]+'Layer'].style.display = 'block';
         if(type != 'all') document.all['backLayer'].style.display = 'block';
      }else
         document.all[arrMenu[i]+'Layer'].style.display = 'none';
   }

   if(type != 'all') {
      if(subtype) var param = '&subtype='+subtype;
      document.all['search_'+type].src = document.all['search_'+type].src+'&more=1'+param;
   }
}

function changeSubmitValue(type)
{
   document.totalSearchForm.tschtype.value = type;
}