var Test = {
    addWindow: function(class_name, id, title, taal) {
        if(taal == 1){
            baseUrl = "http://bankshopper.be";
        }else if(taal == 4){
            baseUrl = "http://comparebanque.be";
        } else {
            baseUrl = "http://bankshopper.be";
        }


        var win = new Window({
            className:"alphacube",
            title: title,
            top:70,
            left:100,
            width:800,
            height:400,
            url: baseUrl+"/custom_output?action=tablecomment&id="+id+"&class="+class_name+"&title="+escape(title),
            showEffectOptions: {duration:1.5}
        });

        win.showCenter();
    },

    addMessage: function(content){
        Dialog.alert(content, {width:300, okLabel: "close",ok:function(win) {return true;}});        
    },

    addProductWindow: function(class_name, taal){
        if(taal == 1){
            baseUrl = "http://bankshopper.be";
        }else if(taal == 4){
            baseUrl = "http://comparebanque.be";
        } else {
            baseUrl = "http://bankshopper.be";
        }

        var get_url = "custom_output?action=productview&class="+class_name;

        //Dialog.alert(url, {width:300, height:100, okLabel: "close",ok:function(win) {return true;}});
        Dialog.alert({url: get_url, options: {method: 'get'}}, {className: "alphacube", width:540, okLabel: "Close"});
    }
}