function toggleMP(eID){
	var b_del = false;
	f.eID.value = eID;
	a_openIDs = f.openIDs.value.split(",");
	for(i=0;i<a_openIDs.length;i++){
		if(a_openIDs[i]==eID){
			a_openIDs.splice(i,1);
			b_del = true;
			break;
		}
	}
	if(!b_del) a_openIDs[i] = eID;
	f.openIDs.value = a_openIDs.join(",");	
}

function openContent(eID,mode){
	var cf = top.frames.content.document.forms[0];
	if(mode) cf.f_act.value = "save";
	cf.eID.value = eID;
	cf.registerNr.value = 0;
	cf.submit();
	f.eID.value = eID;
	f.submit();
}

function popup(url, target, width, height, top, left, menu, loc, status, scroll, tool, resize, center){
	if(window.screen){
	 	if(center){
		  left = (screen.width-width)/2;
		  top = (screen.height-height)/2;
		}
	}
	return window.open(url, target, ((width >= 0)?"width=" + width + ",":"") + ((height >= 0)?"height=" + height + ",":"") + "top=" + top + ",left=" + left + ",menubar=" + menu + ",location=" + loc + ",status=" + status + ",toolbar=" + tool + ",scrollbars=" + scroll + ",resizable=" + resize);
}			

function showFullEntry(str,mode){
	document.getElementById("FullEntryName").style.top = event.y + 30;
	document.getElementById("FullEntryName").innerHTML = str;
	document.getElementById("FullEntryName").style.visibility = (mode?"visible":"hidden");
}
