// Menu Function
function showMenubox1() 
{
  document.getElementById("menubox1").className='go1';
}
function hideMenubox1() 
{ 
  document.getElementById("menubox1").className='pop1';
}
function showMenubox2() 
{
  document.getElementById("menubox2").className='go';
}
function hideMenubox2() 
{ 
  document.getElementById("menubox2").className='pop';
}
function showMenubox3() 
{
  document.getElementById("menubox3").className='go';
}
function hideMenubox3() 
{ 
  document.getElementById("menubox3").className='pop';
}
function showMenubox4() 
{
  document.getElementById("menubox4").className='go';
}
function hideMenubox4() 
{ 
  document.getElementById("menubox4").className='pop';
}
function showMenubox5() 
{
  document.getElementById("menubox5").className='go';
}
function hideMenubox5() 
{ 
  document.getElementById("menubox5").className='pop';
}
function showMenubox6() 
{
  document.getElementById("menubox6").className='go';
}
function hideMenubox6() 
{ 
  document.getElementById("menubox6").className='pop';
}
function showMenubox7() 
{
  document.getElementById("menubox7").className='go';
}
function hideMenubox7() 
{ 
  document.getElementById("menubox7").className='pop';
}
function showMenubox8() 
{
  document.getElementById("menubox8").className='go';
}
function hideMenubox8() 
{ 
  document.getElementById("menubox8").className='pop';
}
function showMenubox9() 
{
  document.getElementById("menubox9").className='go';
}
function hideMenubox9() 
{ 
  document.getElementById("menubox9").className='pop';
}
function showMenubox10() 
{
  document.getElementById("menubox10").className='go';
}
function hideMenubox10() 
{ 
  document.getElementById("menubox10").className='pop';
}
function showMenubox11() 
{
  document.getElementById("menubox11").className='go';
}
function hideMenubox11() 
{ 
  document.getElementById("menubox11").className='pop';
}
function showMenubox12() 
{
  document.getElementById("menubox12").className='go';
}
function hideMenubox12() 
{
  document.getElementById("menubox12").className='pop';
}

//Search Function
function KeyDownHandlerOfGenericSearch(event, btn)
{    
  if (!(document.all && document.getElementById))
  {        
    if (event.which == 13)             
    {        
      // cancel the default submit
      event.returnValue=false;
      event.cancel = true;
      // submit the form by programmatically clicking the specified button            
      //btn.click();            
      gotourl();
    }
  }
  else
  {        
    if (event.keyCode == 13)             
    {        
    // cancel the default submit
    event.returnValue=false;
    event.cancel = true;
    // submit the form by programmatically clicking the specified button            
    //btn.click();
    gotourl();
    }
  }
} 

function gotourl()
{
  var sb;      
  var x;
  sb = document.getElementById('newsearchbox_new');     
  var Uxrbsite = document.getElementById('siteOption');
  if(Uxrbsite.checked == true)
  {
    x="http://www.hindustantimes.com/Search/Search.aspx?q="+sb.value;                               
    window.location=x;
  }
  else
  {
    x = "http://www.hindustantimes.com/Search/Search.aspx?q="+sb.value+"&engine="+"Google"; 
    window.location=x;
  }
}