function menuOver(DOMitem)
{
	DOMitem.className='tdhover';

	if (submenu = document.getElementById(DOMitem.id+"_sub"))
	{
		submenu.style.display = '';
		if (submenu.clientWidth < DOMitem.clientWidth)
			submenu.style.width = DOMitem.clientWidth + 'px';
		x = 0;
		y = 0;		
		
		tempitem = DOMitem;
		while (tempitem.offsetParent)
		{
			x += tempitem.offsetLeft;
			tempitem = tempitem.offsetParent;
		}
		tempitem = DOMitem;
		while (tempitem.offsetParent)
		{
			y += tempitem.offsetTop;
			tempitem = tempitem.offsetParent;
		}
		y += DOMitem.clientHeight;
		submenu.style.left = x + 'px';
		submenu.style.top = y + 'px';
	}
	
}

function go(DOMitem) {

  if(DOMitem.firstChild.href != undefined) {
   location.href=DOMitem.firstChild.href;
  }

}

function menuOut(DOMitem)
{
	
	DOMitem.className='out';
  

	if (submenu = document.getElementById(DOMitem.id+"_sub"))
	{
		submenu.style.display = 'none';
	}
}

function changeClass(DOMitem, className)
{
  DOMitem.className = className;
}

/* w menu.js też to dodać */

function Form_OnSubmit(DOMitem) {
  
  /*
  var nick = DOMitem.nick.value;
  var password = DOMitem.passphrase.value;
  
   
  if (nick == '' || password.length < 6) {
  
    alert('nick: ' + nick + ', password: ' + password);
    return false;
    
  }
  */
  
  return true;
  
}
