/*A projekthez tartozó összes JS funkció gyűjtője*/

function toggleIt(node) {
	if (document.getElementById(node).style.display == "none") {
		document.getElementById(node).style.display = "block";
	} else {
		document.getElementById(node).style.display = "none";
	}
}

function popUp(url, windowName, height, width) {
	var wnd = window.open(url, windowName, "height="+height+",width="+width+",status=no,menubar=no,resizable=no,directories=no,locationbar=no");
	wnd.focus();
}

function popUpScroll(url, windowName, height, width) {
	var wnd = window.open(url, windowName, "height="+height+",width="+width+",status=no,menubar=no,resizable=no,directories=no,locationbar=no,scrollbars=yes");
	wnd.focus();
}

function blurAnchors() { 
	if (document.getElementsByTagName) { 
		var a = document.getElementsByTagName("a"); 
		//collect all anchors A 
		for (var i = 0; i < a.length; i++) { 
			// mouse onfocus, blur anchors 
			a[i].onfocus = function(){this.blur();}; 
		} 
	}
}