  document.getElementById("r1").value,
            document.getElementById("r2").value);
        var angle = toRad(axis.length());
        axis.normalize();
        q.setFromAxisAngle(axis, angle);
    }
    else if (inputMode == 4)
    {
        var e = new THREE.Euler(toRad(document.getElementById("e0").value), 
            toRad(document.getElementById("e1").value),
            toRad(document.getElementById("e2").value),
            document.getElementById("euler").value);
        q.setFromEuler(e);
    