function FLIP (id1,id2)
{
	if (document.getElementById("FLIP_" + id1).style.display == 'none')	{
		document.getElementById("FLIP_" + id1).style.display = "";
		document.getElementById("FLIP_" + id2).style.display = "none";
	}	
}


function popUp(URL,x,y,s) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars= '+ s +',location=0,statusbar=0,menubar=1,resizable=0,width="+ x +",height=" + y +",left = 192,top = 144');");
}
var loading1;
function popUp1(url){ 
loading1=window.open(url, 'loading1', 'width=400,height=50,left=22,top=22'); 
}
function MM_confirm(msg, url) { //v1.0
  if(confirm(msg)) location.replace(url);
}

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 confirmDeleteVod(id) {
	Check = confirm("Dieses Video wirklich loeschen?");
	if (Check == true)
  	self.location.href='index.php?modid=8&a=delvod&id='+id;
}
function confirmDeleteVod1(id) {
	Check = confirm("Dieses Video wirklich loeschen?");
	if (Check == true)
  	self.location.href='../index.php?modid=8&a=delvod&id='+id+'&q=1';
}
function confirmDeleteSend(id,vod) {
	Check = confirm("Diese Weiterempfehlung wirklich loeschen?");
	if (Check == true)
  	self.location.href='index.php?modid=8&a=delsend&id='+id+'&vod='+vod;
}

function confirmActivateVod(id,mode) {
	if(mode == 0)
		var reason = "Deactivate this vod?";
	else
		var reason = "Activate this vod?";
	Check = confirm(reason);
	if (Check == true)
		self.location.href='index.php?modid=8&a=activatevod&mode='+mode+'&id='+id;
}

function confirmActivateVod1(id,mode) {
	if(mode == 0)
		var reason = "Deactivate this vod?";
	else
		var reason = "Activate this vod?";
	Check = confirm(reason);
	if (Check == true)
		self.location.href='../index.php?modid=8&a=activatevod&mode='+mode+'&id='+id+'&q=1';
}

function confirmDeactivateUser(id,name) {
	Check = confirm("Wollen sie "+name+" wirklich deaktivieren?");
	if (Check == true)
  	self.location.href='index.php?modid=8&a=deactivateuser&id='+id;
}
function confirmActivateUser(id,name) {
	Check = confirm("Wollen sie "+name+" wirklich aktivieren?");
	if (Check == true)
  	self.location.href='index.php?modid=8&a=activateuser&id='+id;
}
function confirmDeleteUser(id,name) {
	Check = confirm("Wollen sie "+name+" wirklich löschen?");
	if (Check == true)
  	self.location.href='index.php?modid=8&a=deleteuser&id='+id;
}
