
function myplugin(model, wnd) {

    // speciaal door PHP-uitgevulde variabelen
    var p = escape("");
    var pi = escape("");

    url = "connect.php?webcam=" + model;

    // ter inspectie:
    // alert(url);

    if (! wnd) wnd = window;
    wnd.open(url);
}

function profiel(model, v_width, v_height, wnd) {
    params = '?model='+ model;

    v_width = (v_width) ? v_width : 650;
    v_height = (v_height) ? v_height : 315;
    url = './profiel.php' + params;

    if (!wnd) wnd = window;

    var params = new Array(
                    "left=" + (screen.availWidth/2 - v_width/2),
                    "top=" + (screen.availHeight/2 - v_height/2),
                    "width=" + v_width,
                    "height=" + v_height,
                    "border=0",
                    "scrollbars=1",
                    "resize=0",
                    "status=0",
                    "toolbar=0",
                    "menubar=0",
                    "location=0"
                );

    wnd.open(url , 'popupvenster', params.join(","));
}