var maxdiv=5;

function show(index)
      {
	for (i=1;i<=maxdiv;i++) {
	  if(document.getElementById('div'+i)!=null){
            document.getElementById('div'+i).className='divoff';
          }
          if(document.getElementById('div'+index)!=null){ 
	    document.getElementById('div'+index).className='divon';
	  }
	}
}

function hide(index)
	{
	    if(document.getElementById('div'+index)!=null){
	    	document.getElementById('div'+index).className='divoff';
	    }
	}