﻿		function ShowBusy(item,anaus){
		  var e=document.getElementById(item);
		  if (!e) return true;
		  if(anaus==true){
		      e.style.display = "block";
		  } else {
		      e.style.display = "none";
		  }
		  return true;
		}

    /**
     * Generates random number that is >= 0 and < i
     * @return int
     * @access private
     */
    function GetRnd(i) {
        return Math.floor(Math.random() * i);
    }

function SeoSeitenbewertung(id) {
    fenster = window.open('/admin/Seo_Seitenbewertung.aspx?id='+id, 'SEOBewertung', 'top=0,left=0,width=1024,height=700,locationbar=no,menuebar=no,resizable=yes,status=no,scrollbars=yes');
    fenster.focus();
}

function asChatLogin() {
    fenster = window.open('/aschat/login.aspx', 'aschat', 'top=0,left=0,width=970,height=768,locationbar=no,menuebar=no,resizable=yes,status=no,scrollbars=yes');
    fenster.SetFocus;
    self.location.href = self.location.href;
}

function ZeigeHilfe(hilfenr) {
    var fenster;
    Fenster = window.open("http://www.netkobold.de/default.aspx?hpseite=" + hilfenr, "hilfefenster", "width=1000,height=700,locationbar=no,menuebar=no,screenX=0,screenY=0,resizable=yes,status=no,dependent=yes,scrollbars=yes,hotkeys=no");
    Fenster.focus();
}

function Fenster(url, titel, breite, hoehe) {

    var fenster;
    Fenster = window.open(url, titel, "width=" + breite + ",height=" + hoehe + ",locationbar=no,menuebar=no,screenX=0,screenY=0,resizable=yes,status=no,dependent=yes,scrollbars=yes,hotkeys=no");
    Fenster.focus();
}

function Grusskarte(x) {

    var bild;
    bild = x.src.toLowerCase();
    bild = bild.replace("t__", "");
    bild = bild.replace("/thumbs/", "/");

    bild = bild.replace(/(http:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");
    bild = bild.replace(/(https:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");


    location.href = "http://www.grusskobold.de/versand/ausfuellen.aspx?bild=" + bild + "&backlink=" + location.href.replace("http://", "")
}

function Grusskarte3(x) {

    var bild;
    bild = x.src.toLowerCase();
    bild = bild.replace("t__", "");
    bild = bild.replace("/thumbs/", "/");

    bild = bild.replace(/(http:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");
    bild = bild.replace(/(https:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");


    //location.href = "http://www.grussbote.org/webtools/grussbote/ausfuellen.aspx?bild=" + bild + "&amp;backlink=" + location.href.replace("http://", "")
    location.href = "/webtools/grussbote/ausfuellen.aspx?bild=" + bild + "&backlink=" + location.href.replace("http://", "")
}

function GrusskarteVideo(x) {

    var bild;
    bild = x.src.toLowerCase();
    bild = bild.replace("t__", "");
    bild = bild.replace("/thumbs/", "/");

    //bild = bild.replace(/(http:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");
    //bild = bild.replace(/(https:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");

    //location.href = "http://www.grussbote.org/webtools/grussbote/ausfuellen.aspx?video=1&bild=" + bild + "&amp;backlink=" + location.href.replace("http://", "")
    location.href = "/webtools/grussbote/ausfuellen.aspx?video=1&bild=" + bild + "&backlink=" + location.href.replace("http://", "")
}

function GrusskarteGruesse(x) {
    var bild;
    bild = x.src.toLowerCase();
    bild = bild.replace("t__", "");
    bild = bild.replace("/thumbs/", "/");

    bild = bild.replace(/(http:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");
    bild = bild.replace(/(https:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");


    location.href = "http://www.gruesse.de/grussbote/versand/ausfuellen.aspx?bild=" + bild + "&backlink=" + location.href.replace("http://", "")
}


function Grusskarte2(x) {

    var bild;
    bild = x.toLowerCase();
    bild = bild.replace("t__", "");
    bild = bild.replace("/thumbs/", "/");


    bild = bild.replace(/(http:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");
    bild = bild.replace(/(https:\/\/)1\.\d+\.\d+\.\d+\/bmi\//gi, "$1");


    location.href = "http://www.grusskobold.de/versand/ausfuellen.aspx?bild=" + bild + "&amp;bb=800&amp;backlink=" + location.href.replace("http://", "")
}


