  // scroller news
/*  
  var tScroll;
  var mustScroll = 0;
  var curPos = 170;


function divScroller() {
	  
   
   var theDiv = document.getElementById("boxNews");


   if (mustScroll == 1)
   {
     curPos += 2;

     if (curPos > theDiv.scrollHeight - 180)
       curPos = 0;

     theDiv.scrollTop = curPos;
   }
   

   
   if (mustScroll == -1)
   {
     curPos -= 2;

     if (curPos > theDiv.scrollHeight - 180)
       curPos = 190;

     theDiv.scrollTop = curPos;
   }
   
   
   tScroll = window.setTimeout("divScroller();", 100);
  
  if (mustScroll == 0){
    theDiv.scrollTop = curPos;
    }

}

window.onunload = new Function("clearTimeout(tScroll)");
*/ 
// show menu
 
function showMenu(idVoiceMenu){
 
var statusMenu = document.getElementById(idVoiceMenu).style.display;
 

  if (statusMenu == 'none'){
    statusMenu = 'block';
  
  return;
  }
 
  if (statusMenu == 'block'){
    statusMenu = 'none';
  
  return;
  }
 
}

function validSearch () {
string = document.getElementById('string').value;
    if (string == '')
    {
      alert('insert text please');
      return false;
    }
  
   return true;
  
}

function switchBox(idBox1, idBox2, idBox3) {
  document.getElementById(idBox1).style.display="block";
  document.getElementById(idBox2).style.display="none";
  document.getElementById(idBox3).style.display="none";
}