function ShowAllRefs() {
    obj=document.getElementById("RefWindow");
    obj2=document.getElementById("RefArrowUp");
    obj3=document.getElementById("RefArrowDown");

    if (obj.style.height == '249px') {
        obj.style.height = "399px";
        obj2.style.display = "block";
        obj3.style.display = "block";
    } else {
        obj.style.height = "249px";
        obj2.style.display = "none";
        obj3.style.display = "none";
    }
}

function ScrollUp() {
        RefFrame.scrollBy(0, -1);
        active_up = window.setTimeout("ScrollUp()", 40);
}

function ScrollDown() {
        RefFrame.scrollBy(0, 1);
        active_down = window.setTimeout("ScrollDown()", 40);
}

function rm_divdisplay(divdisplayid) {
        if (divdisplayid.style.top == '150px') {
           divdisplayid.style.top = "-1000px";
        } else {
           divdisplayid.style.top = "150px";
        }
}

function rm_renewcaptcha() {
        now = new Date();
        var codeimg = document.getElementById("SecurityCode");
        codeimg.src = "../system/sys_captcha.php?foo=" + now.getTime();
}

////////////////////////////
// Only for RM Guestboook //
////////////////////////////
function Left() {
   text=prompt('Bitte gebe den Text ein, der nach links ausgerichtet werden soll:','');
   document.bookform.entry.value+='[left]' + text + '[/left]';
   }
   function Center() {
   text=prompt('Bitte gebe den Text ein, der zentriert werden soll:','');
   document.bookform.entry.value+='[center]' + text + '[/center]';
   }
   function Right() {
   text=prompt('Bitte gebe den Text ein, der nach rechts ausgerichtet werden soll:','');
   document.bookform.entry.value+='[right]' + text + '[/right]';
   }
   function Justify() {
   text=prompt('Bitte gebe den Text ein, der als Blocksatz ausgerichtet werden soll:','');
   document.bookform.entry.value+='[justify]' + text + '[/justify]';
   }
   function Bold() {
   text=prompt('Bitte gebe den Text ein, der Fett sein soll:','');
   document.bookform.entry.value+='[b]' + text + '[/b]';
   }
   function Italic() {
   text=prompt('Bitte gebe den Text ein, der Kursiv sein soll:','');
   document.bookform.entry.value+='[i]' + text + '[/i]';
   }
   function Underline() {
   text=prompt('Bitte gebe den Text ein, der unterstrichen werden soll:','');
   document.bookform.entry.value+='[u]' + text + '[/u]';
   }
   function Strike() {
   text=prompt('Bitte gebe den Text ein, der durchgestrichen dargestellt werden soll:','');
   document.bookform.entry.value+='[s]' + text + '[/s]';
   }
////////////////////////////
// Only for RM Guestboook //
////////////////////////////

function DropdownfieldMonth() {
    obj=document.getElementById("DropdownMonth");

    if (obj.style.display == 'block') {
        obj.style.display = "none";
    } else {
        obj.style.display = "block";
    }
}
function DropdownfieldYear() {
    obj=document.getElementById("DropdownYear");

    if (obj.style.display == 'block') {
        obj.style.display = "none";
    } else {
        obj.style.display = "block";
    }
}

function NavIn(objekt) {
 objekt.style.backgroundImage="url(../img/navigation/rollout_on.gif)";
}

function NavOut(objekt) {
 objekt.style.backgroundImage="url(../img/navigation/rollout_off.gif)";
}

function FormIn(objekt) {
 objekt.style.backgroundColor="#32353D";
}

function FormOut(objekt) {
 objekt.style.backgroundColor="transparent";
}
function OpenGalPic(galID,picID,SID) { window.open('galpic.php?galID='+galID+'&picID='+picID+'&SID='+SID+'',''+picID+'','width=690,height=700,toolbar=no,menubar=no,scrollbars=yes');
}
