
function OpenPopUp(uName, uBreite, uHoehe, uLeft, uTop, uScrollbar, uResize, uCaption, uMenubar)
{
	locPath=uName;

	if (locPath!="") 
	{
		locWindow = window.open(locPath,"DW","left="+uLeft+",top="+uTop+",width="+uBreite+",height="+uHoehe+",scrollbars="+uScrollbar+",resizable="+uResize+",caption="+uCaption+",menubar="+uMenubar);
		locWindow.focus();
	}
}


function loadFrames(uTemplateFrame, uMetaFrame) 
{ // Frames laden
	// Template-Frame überprüfen
	var link;
	link = parent.template.location.href;
	var substring = link.lastIndexOf(uTemplateFrame);
	if (substring == -1) 
	{
		parent.template.location.href = uTemplateFrame;
	}

	// Meta-Frame überprüfen
	//link = parent.meta.location.href;
	//substring = link.lastIndexOf(uMetaFrame);
	parent.meta.location.href = uMetaFrame;
}


// Abfrage ob eine Seite gelöscht werden soll
function sendDelFormCMSEDIT(uPage, uChangeID) 
{
	var locCheck = confirm("Wollen Sie diese Seite wirklich löschen?");
	if (locCheck == true)
	{
		window.location.href = uPage + "?send=delete&delete=true&changeID=" + uChangeID;
	}
}

function switchImgVoting(uBildName, uBild, uChoosen) 
{ // Bilder Rollover
	if ((uChoosen == "") && (uBildName != ""))
	{ // nur tauschen, wenn noch nichts ausgewählt wurde
		document.images[uBildName].src = uBild;
	}
}