function NewWindow(mypage, myname, w, h, scroll)
{
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 1) { win.window.focus();}
}

if (document.layers){
    window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
    window.onmousedown=rightclick;
    window.onmouseup=rightclick;

    function rightclick(e) {
    if (e.which == 3) {
    // Put right mouse code here
    alert('ohne dieses Skript würde sich jetzt der Kontext öffnen');
    return false;
    }
    else {
        return true;
        }
    }
}

if (document.all){
    function click() {
    if (event.button==2) {
    alert('Contact: info@profi-line-gotha.de')
    }

    if (event.button==3) {
    alert('Contact: info@profi-line-gotha.de')}
    }
    document.onmousedown=click
}

function winopen() {
    // Here resize the PopUp
    var popUpSizeX=545;
    var popUpSizeY=700;

    // Here move it to any poiny on screen
    var popUpLocationX=25;
    var popUpLocationY=02;

    // URL of the popUp
    var popUpURL="http://www.profi-line-gotha.de/tinc?key=2CdDSNpF&formname=TESTSWOPPER";


    splashWin = window.open("",'x','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0');

    splashWin.blur();
    window.focus();

    splashWin.resizeTo(popUpSizeX,popUpSizeY);
    splashWin.moveTo(popUpLocationX,popUpLocationY);
    splashWin.location=popUpURL;
    splashWin.focus();
}
