function menupuc_rep(imgid,action) {

	target = "document.all['"+imgid+"'].src=";
	//alert (target);

	if (action == "on") {
		eval(target+"\"images/csillagb.gif\"");
	} else {
		eval(target+"\"images/csillag.gif\"");
	}
}

function popup(url,width,height) {
	window.open(url,null,'width='+width+', height='+height+', menubar=no, scrollbars=no, resize=no');
}

function popup_rand(url,width,height) {
	var rand = Math.floor(Math.random() * 100000);
	window.open(url,rand,'width='+width+', height='+height+', menubar=no, scrollbars=no, resize=no');
}

function popup_rand_center(url,width,height) {
	var rand = Math.floor(Math.random() * 100000);
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	window.open(url,rand,'width='+width+', height='+height+', top='+wint+', left='+winl+', menubar=no, scrollbars=no, resize=no');
}


function popup_wbar(url,width,height) {
	window.open(url,null,'width='+width+', height='+height+', menubar=no, scrollbars=yes, resize=no');
}

function switcher(object) {
	
	var itemlist = "hidden_01,hidden_02,hidden_03,hidden_04,hidden_05,hidden_06,hidden_07,hidden_08,hidden_09,hidden_10,hidden_11";
	var items = itemlist.split(",");

	for (x=0; x<items.length; x++) {
		if (object.checked == "0" ) {
			document.all[items[x]].style.visibility = 'hidden';	
		} else {
			document.all[items[x]].style.visibility = 'visible';
		}
	}	
	
}

