<!--
function play(id,width,height) {
        var Win = window.open('player.php?id=' + id + '',"Player",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=no,menubar=no' );
}

function clear(id,width,height) {
        var Win = window.open('clear_vote.php?id=' + id + '',"ClearVote",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=no,menubar=no' );
}

function FlyImg(id,width,height) {
        var Win = window.open('fly_image.php?img_id=' + id + '',"FlyImage",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=no,menubar=no,top=300,left=300' );
}

function addnews(width, height) {
        var Win = window.open('add_news.php',"displayWindow",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}

function adv(location, width, height) {
        var Win = window.open(''+ location +'',"displayWindow",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}

function forum(width, height) {
        var Win = window.open('./forum/index.php',"Forum",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}

function addgallery(width, height) {
        var Win = window.open('add_gallery.php',"displayWindow",'width=' + width +
',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,top=250,left=250' );
}

var confirmMsg  = 'Действително ли желаете да';

function confirmLink(theLink, theSqlQuery)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
    if (is_confirmed) {
        theLink.href += '&confirmed=1';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

// -->
