function openPopup(src, height) {
    _openPopup(src, height, 660);
}

function openPopup2(src, height) {
    _openPopup(src, height, 900);
}

function _openPopup(src, height, width) {
    var sLoc = "";
    if (screen.availWidth) {
        sLoc += "left=" + ((screen.availWidth - width) / 2) + ",";
    }
    height += 104;
    if (screen.availHeight) {
        sLoc += "top=" + ((screen.availHeight - height) / 2) + ",";
    }
    alert('asdf');
    top.popup = window.open(src, "new", sLoc + "width=" + width + ",height=" + height + "");
    //,toolbars=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no
    if (!top.popup.opener) {
        top.popup.opener = self;
    }
    top.popup.focus();
}
