function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function getElem(div) {
	return document.getElementById ? document.getElementById(div) : document.all[div]
}

function collapse(item,max) {
	if (item == 'all') {
		for (i=0; i<=max; i++) {
			var x = getElem("item"+i);
			if (x) x.style.display = '';
		}
	} else {
		var x = getElem(item);
		if (x.style.display == 'none') x.style.display = '';
			else x.style.display = 'none';
	}
}

function goto_url(url) {
	location.replace (url);
}

function del_confirm(caption) {
	alert (caption);
}

function ct_form() {
	if ((document.form_ct.e_mail.value == '') || (document.form_ct.e_password.value == '')) {
			alert ('E-mail cím és jelszó megadása kötelező!');
			return false;
	} else return true;
}

function confirm_del(param1,param2) {
	if (confirm ("Valóban törölni akarod ezt a bejegyzést?")) location.replace ("?"+param1+".del."+param2);
}

function open_window(url,wth,hgt) {
        if('full' == wth){
                pwindow = window.open(url);
        } else {
                if (wth) {
                        mywidth=wth;
                } else {
                        mywidth=600;
                }

                if (hgt) {
                        myheight=hgt;
                } else {
                        myheight=600;
                }

                pwindow = window.open(url,'Name', 'top=100,left=100,resizable=yes,width='+mywidth+',height='+myheight+',scrollbars=no,menubar=no')
        }
        pwindow.focus();
}


function openwindow(ablak) {
	open_window('photos.php?' + ablak);
}

var blinkColours = new Array('007102','90EE90');
var blinkIndex = 0;
function blink() {
	blinkIndex = (blinkIndex+1) & 1;
	document.getElementById('menu13').style.color = '#'+blinkColours[blinkIndex];
	document.getElementById('menu14').style.color = '#'+blinkColours[blinkIndex];
	setTimeout("blink()",1000);
}

