<!--
function open_window(link, win_name, x, y, scrollbar) {
   if ( !scrollbar ) { scrollbar = 'yes' }
   winRef = window.open(link,win_name,'width='+x+',height='+y+',toolbar=0,directories=0,menubar=0,status=1,resizable=1,location=0,scrollbars='+scrollbar+',copyhistory=0,screenX=50,screenY=25,left=50,top=25');
   winRef.focus();
}

function popUp(url) {
   open_window(url,'popupwin',800,600,'yes');
}

// alias open_window funktsioonile
function openwin(link, win_name, x, y, scrollbar) {
   open_window(link, win_name, x, y, scrollbar);
}

function open_printwin(link, win_name, x, y, scrollbar) {
   if ( !scrollbar ) { scrollbar = 'yes' }
   winRef = window.open(link,win_name,'width='+x+',height='+y+',toolbar=0,directories=0,menubar=1,status=1,resizable=1,location=0,scrollbars='+scrollbar+',copyhistory=0,screenX=50,screenY=25,left=50,top=25');
   winRef.focus();
}

function toggle_div(id, show_hide) {
	var show;
	if ( show_hide == 'show' ) {
		show = "";
	} 
	else if ( show_hide == 'hide' ) {
		show = "none";
	} 
	else {
		if (document.getElementById(id).style.display == ""){
			show = "none";
		} else {
			show = "";
		}
	}
	document.getElementById(id).style.display = show;
}

function changemenus()
{
	if(document.getElementById('langmenus').className == "langmenus_hide"){
		$newlang = "langmenus_show";
	}
	else{
		$newlang = "langmenus_hide";
	}
	document.getElementById('langmenus').className = $newlang;
}
// -->