function prod_spec(i){
   document.getElementById('spec1').className = 'spec_2';
   document.getElementById('spec2').className = 'spec_2';
   document.getElementById('spec3').className = 'spec_2';
   document.getElementById(i).className = 'spec_3';
   document.getElementById('spec1x').className = 'spec_6';
   document.getElementById('spec2x').className = 'spec_6';
   document.getElementById('spec3x').className = 'spec_6';
   document.getElementById(i+'x').className = 'spec_5';
}

function pss_search_form(i,ii){
   var theForm = document.getElementById(ii);
   if(!theForm.value){
      if(i==2){
         theForm.className = 'search_2';
      }else{
         theForm.className = 'search_1';
      }
   }else{
      theForm.className = 'search_2';
   }
}

function pss_submit_form(i){
   document.getElementById(i).submit();
}

function pss_tab_forum(i){
   for(a=1;a<=3;a++){
      document.getElementById('forumtab'+a).className = 'forum_tab_1';
   }
   document.getElementById('forumtab'+i).className = 'forum_tab_2';
}

function pss_goURL(i){
   location.href = i;
}

function showthenhide(i){
   var theDiv = document.getElementById(i).style;
   var theCount = document.getElementById('cal_count').value;
   for(a=1;a<=theCount;a++){
      document.getElementById('desc'+a).style.display = "none";
   }
   theDiv.display = "block";
}

function tab_publikasi(i){
   var tabPub = document.getElementById('pub'+i);
   for(a=1;a<=4;a++){
      document.getElementById('pub'+a).style.backgroundColor = "#f1f1f1";
      document.getElementById('pub'+a).style.color = "#444444";
      document.getElementById('pubx'+a).style.display = "none";
   }
   document.getElementById('pub'+i).style.backgroundColor = "#ff4000";
   document.getElementById('pub'+i).style.color = "#ffffff";
      document.getElementById('pubx'+i).style.display = "block";
}
