var _POPUP_FEATURES = '';

function x_p(obj,features) {
    target=obj.target;
    url=obj.href;
    if (isUndefined(features)) features = _POPUP_FEATURES;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function link_popup(src, features) {
    return x_p(src.href, src.target || '_blank', features);
}

function isUndefined(a) { return typeof a == 'undefined' }
