    var m20 = document.getElementById("m20").value;
        var m21 = document.getElementById("m21").value;
        var m22 = document.getElementById("m22").value;
        m.set(m00, m01, m02, 1, m10, m11, m12, 1, m20, m21, m22, 1, 0, 0, 0, 1);
        q.setFromRotationMatrix(m);
    }
    else if (inputMode == 1)
    {
        q = new THREE.Quaternion(document.getElementById("q0").value, 
            document.getElementById("q1").value, 
            document.getElementById("q2").value, 
            documen