s)';
        }
    }
}
function update(mode)
{
    inputMode = mode;
    var q = new THREE.Quaternion();
    if (inputMode == 0)
    {
        var m = new THREE.Matrix4();
        var m00 = document.getElementById("m00").value;
        var m01 = document.getElementById("m01").value;
        var m02 = document.getElementById("m02").value;
        var m10 = document.getElementById("m10").value;
        var m11 = document.getElementById("m11").value;
        var m12 = document.getElementById("m12").value;
    