/**
 * Kalaydo:
 * jwpopup method for showing external ads
 * @param URL
 * @param JWNAME
 */

// Breite des Fensters
var width = 795;
var border = 10;
var height = window.screen.availHeight - (2 * border);
var x = window.screen.availWidth - (width + border);
var y = border;
var nw = null;

if (navigator.platform.search(/linux/i) != -1) {
  height = height-25;
}

// Netscape v4.x
if (document.layers) {
    height = height - 30;
    x = x - border;
}

function jwpopup(URL,JWNAME) {
    if (JWNAME != "extern") {
        if ( (JWNAME != "jwCAMPUSTOPLINE") && (JWNAME != "jwAZUBITOPLINE") ) {
                window.name = 'stellenmarkt';
        }
    }
    nw = window.open(URL,JWNAME,'dependent=no,titlebar=yes,toolbar=no,status=no,menubar=no,location=no,hotkeys,directories=no,resizable,scrollbars,height='+height+',width='+width+',left='+x+',top='+border);
    nw.focus();
    if(nw) {
        return false;
    } else {
        return true;
    }
}

