
    var copytoclip=1;

    function Copy2Clipboard(theField)
    {
        var tempval = eval("document."+theField);
        tempval.focus();
        tempval.select();
        if (document.all && copytoclip==1)
        {
            therange=tempval.createTextRange();
            therange.execCommand("Copy");
            window.status = "Contents highlighted and copied to clipboard!";
            setTimeout("window.status=''", 2400);
        }
    }

    function submitter(formular)
    {
        formular.disabled = true;
    }

    function check(cb, sub)
    {
        sub.disabled = cb.checked ? false : true;
    }

    function pop(fn)
    {
        w = 400;
        h = 300;
        windowdef = 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h;
        xpos = (screen.width / 2) - w/2;
        ypos = (screen.height / 2) - h/2;
        if (navigator.appName.indexOf('icrosoft') == -1) { windowdef = windowdef + ',screenX='+xpos+',screenY='+ypos; }
                                                    else { windowdef = windowdef + ',left='+xpos+',top='+ypos; }
        window.open(fn, 'pop', windowdef);
    }

    function pop_wh(fn, w, h)
    {
        windowdef = 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h;
        xpos = (screen.width / 2) - w/2;
        ypos = (screen.height / 2) - h/2;
        if (navigator.appName.indexOf('icrosoft') == -1) { windowdef = windowdef + ',screenX='+xpos+',screenY='+ypos; }
                                                    else { windowdef = windowdef + ',left='+xpos+',top='+ypos; }
        window.open(fn, 'pop', windowdef);
    }

