﻿// *************************************************************************
// *                                                                       *
// * Pentia A/S                                                            *
// * http://www.pentia.dk/                                                 *
// *                                                                       *
// * Authors: as/Asim J Sikandar                                           *
// *          ts/Thomas Stern                                              *
// *                                                                       *
// * E-Mail: dev@pentia.dk                                                 *
// *                                                                       *
// *                                                                       *
// * Copyright(C) Pentia, 1998 - 2008. All rights reserved (R).            *
// *                                                                       *
// *                                                                       *
// * LEGAL NOTICE: This is unpublished proprietary source code of Pentia.  *
// * The contents of this file are protected by copyright laws and         *
// * international copyright treaties, as well as other intellectual       *
// * property laws and treaties. These contents may not be extracted,      *
// * copied, modified or redistributed either as a whole or part thereof   *
// * in any form, and may not be used directly in, or to assist with, the  *
// * creation of derivative works of any nature without prior written      *
// * permission from Pentia. The above copyright notice does not           *
// * evidence any actual or intended publication of this file.             *
// *                                                                       *
// *************************************************************************

function HideAndShow(id,lastid){
 
 for(i=1; i<lastid+1; i++){
  //The Mouse is over id'element so show submenu+id hide all other
  if(id==i)
   document.getElementById('submenu'+i).style.display='block';
 else
   document.getElementById('submenu'+i).style.display='none';
  }
   
}