//Abrechnungen anzeigen Admin
function show_payo_a(payo)
 {
 winheight = 500;
 winwidth = 580;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('_payout_show.php?lfnr=' + payo + '','payo','height=' + winheight + ',width=' + winwidth + ',scrollbars=yes,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 }

//Testzugang erstellen Admin
function open_acce(site)
 {
 winheight = 200;
 winwidth = 400;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('_acce.php?site=' + site + '','acce','height=' + winheight + ',width=' + winwidth + ',scrollbars=no,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 }

//Abrechnungen anzeigen
function show_payo(payo)
 {
 winheight = 500;
 winwidth = 580;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('web-site/payout.php?lfnr=' + payo + '','payo','height=' + winheight + ',width=' + winwidth + ',scrollbars=yes,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 }

//Dateien anzeigen
function show_file(file)
 {
 winheight = 300;
 winwidth = 400;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('' + file + '','file','height=' + winheight + ',width=' + winwidth + ',scrollbars=yes,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 }

//Code anzeigen
function show_code(nr)
 {
 winheight = 250;
 winwidth = 300;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('web-site/showcode.php?account=' + nr + '','code','height=' + winheight + ',width=' + winwidth + ',scrollbars=no,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 }
 
//Code anzeigen
function show_banners()
 {
 winheight = 400;
 winwidth = 500;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('banner.php','banner','height=' + winheight + ',width=' + winwidth + ',scrollbars=yes,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 }

//Löschen der Site bestätigen
function del_s()
 {
 check = confirm("Soll die Website wirklich gelöscht werden?\n\nAlle zugehörigen Zugänge werden ebenfalls gelöscht und bestehende revolvierende Mitgliedschaften gekündigt. Bitte entfernen Sie eventuell noch bestehende User manuell aus Ihrer Passwortdatei.");
 return check;
 }

//Löschen des Zugangs bestätigen
function del_a()
 {
 check = confirm("Soll der Zugang wirklich gelöscht werden?\n\nBestehende revolvierende Mitgliedschaften werden gekündigt.");
 return check;
 }

//Löschen des Users bestätigen
function del_u()
 {
 check = confirm("Soll der User wirklich gelöscht werden?\n\nDieser hat danach keinen Zugang zur Seite mehr.");
 return check;
 }

//Laufzeiten checken
function check_lfz()
 {
 if(document.lfzform.a_lfzt[0].checked != true && document.lfzform.a_lfzz.value == "")
  {
  alert("Bitte wählen Sie einen Wert für Minuten, Stunden oder Tage.");
  return false;
  }
 else return true;
 }
 
//Admin: Speichern der News bestätigen
function save_n()
 {
 check = confirm("News jetzt speichern?");
 return check;
 }

/////////////
// PAYMENT //
/////////////

function payment_telecall()
 {
 winheight = 320;
 winwidth = 400;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('windows/telecall.php','payment','height=' + winheight + ',width=' + winwidth + ',scrollbars=no,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 history.back();
 }

function payment_telecall1()
 {
 winheight = 320;
 winwidth = 400;
 posX = (screen.Width-winwidth)/2;
 posY = (screen.Height-winheight)/2;
 window.open('windows/telecall1.php','payment','height=' + winheight + ',width=' + winwidth + ',scrollbars=no,screenX=' + posX + ',screenY=' + posY + ',top=' + posY + ',left=' + posX + '');
 history.back();
 }