// JavaScript Document
        function countLength(a,b,c) {
    var box = document.getElementById(a);
    var divCount = document.getElementById(b);
        divCount.innerHTML = "" + box.value.length + "/"+c;
        if (box.value.length > c) {
                box.value = box.value.substring(0, c);
        }
        }
function ShowHideLayer(boxID) {
        /* Obtain reference for the selected boxID layer and its button */
        var box = document.getElementById("box"+boxID);
        var boxbtn = document.getElementById("btn"+boxID);
        /* If the selected box is currently invisible, show it */
        if(box.style.display == "none" || box.style.display=="") {
                box.style.display = "block";
                boxbtn.src = "/images/collapse.gif";
        }
        /* otherwise hide it */
        else {
                box.style.display = "none";
                boxbtn.src = "/images/expand.gif";
        }
}


function stabs(src,unsrc){
document.getElementById(src).style.display="block";
document.getElementById(unsrc).style.display="none";

}

function mvis(src){
document.getElementById(src).style.display="block";
}
function mremovis(src){
document.getElementById(src).style.display="none";
}
function stoperror(){
return true
}



function rsscat(fid)
{

        childWindow = window.open("/rsscat.php?fid="+fid, "rsscat", "status=1,width=400,height=400,scrollbars=1,resizable=1");
    if (childWindow.opener == null) childWindow.opener = self;
    if(!childWindow.opener)
    alert('We have detected that you are using popup blocking software.\n Please disable to choose a categorie!');

}

function choosecat(fid)
{

        childWindow = window.open("/cat.php?fid="+fid, "choosecat", "status=1,width=400,height=400,scrollbars=1,resizable=1");
    if (childWindow.opener == null) childWindow.opener = self;
    if(!childWindow.opener)
    alert('We have detected that you are using popup blocking software.\n Please disable to choose a categorie!');

}