function popup() {
    var width = 550;
    var height = 400;
    var args = popup.arguments;
    if (args.length == 3) {
        width = args[1];
        height = args[2];
    }
    var features = "width=" + width + ", height=" + height;
    window.open(args[0], args[0], features)
}

