function showAdyenScreen(url) {
    if ($('adyenDiv')) {
        Element.remove($('adyenDiv'));
    }
    var adyenDiv = document.createElement('div');
    adyenDiv.id = 'adyenDiv';
    var s = adyenDiv.style;
    s.border = '0px';
    s.position = 'relative';
    s.left = '0px';
    s.top = '10px';
    s.width = '100%';
    s.height = '730px';
    s.zIndex = '10000';
    s.backgroundColor = '#c5c3bc';
    $('portalContentBoxContent').appendChild(adyenDiv);

    var adyenFrame = document.createElement('iframe');
    adyenFrame.id = 'adyenFrame';
    adyenFrame.src = url;
    adyenFrame.style.width = '100%';
    adyenFrame.style.height = '100%';
    adyenFrame.style.border = '0px';
    adyenFrame.setAttribute('allowtransparency', 'true');
    adyenFrame.style.backgroundColor = 'transparent';
    adyenFrame.name = 'adyenFrame';
    adyenDiv.appendChild(adyenFrame);
}

function closeAdyenScreen(onloadAction) {
    Element.remove($('adyenDiv'));
    var u = window.location.href;
    u = u.substring(0, u.lastIndexOf('/') + 1) + '?a=' + onloadAction;
    window.location.href = u;
}