function shObject(idm, menuid)
{
	var colmenupunts=7
	var objmenupanel;
	for(i=1; i<=colmenupunts;i++)
	{
		if(i==idm){continue;}
		objmenupanel = document.getElementById("subsidemenu"+i);
		objmenupanel.style.display='none';
		/*if(i==idm){continue;}*/
			
			/*if(objmenupanel.style.display=='block'){objmenupanel.style.display='none';}*/

	}

	var obj = document.getElementById('subsidemenu'+idm);
	if(obj.style.display=='block')	{obj.style.display='none';}/*obj.style.display='block';*/
	else{obj.style.display='block';}/*obj.style.display='none';*/

	var objmenus;
	for(i=1; i<=colmenupunts;i++)
	{
		if(i==menuid){continue;}
		objmenus = document.getElementById('sidemenu_'+i);
		if(objmenus.className == 'sidemenu_sel'){objmenus.className = 'sidemenu_notsel';}
	}
	var objmenu = document.getElementById('sidemenu_'+menuid)

	if(objmenu.className == 'sidemenu_notsel'){objmenu.className = 'sidemenu_sel';}
	else{objmenu.className = 'sidemenu_notsel';}

}

function ChngBgClr(obj, color)
{
	obj.style.backgroundColor = color;
}

function curdata()
{
	var current_date;
	var format = 1;
	d = new Date();
	hour=d.getHours();
	min=d.getMinutes();
	sec=d.getSeconds();
	if (hour < 10) hour = "0"+hour;
	if (min < 10) min = "0"+min;
	if (sec < 10) sec = "0"+sec;
	
	if (format == 0){ str = hour+":"+min+":"+sec;}
	else if (format == 1){ str = hour+":"+min;}

	day = d.getDate();
	month = d.getMonth();
	month++;
	year = d.getYear();
	year = getLongYear(year);

	if (day < 10){day = "0" + day;}
	if (month <10){month = "0" + month;}

	current_date = day + '.' + month + '.' + year;
	document.getElementById('dt').value = current_date;
}
function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}
function newwinapp(url)
{
w=screen.width/2;
h=screen.height/2+10;
t=0.5*(screen.height-h);
l=0.5*(screen.width-w);
nw=window.open(url, 'newwin', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbars=1, Resizable=1, Copyhistory=0, Width='+w+', Height='+h+', Top='+t+', Left='+l);
nw.focus();
//nw.resizeTo(w,h);//window
nw.moveTo(t,l);
}

