var formdeal = {/** * function: All input to the form is set to editable * @param the ID of the form to manipulate */formwritable:function (FORMID) {$ ("#" +formid + "Input,textarea"). Removeattr ("ReadOnly"); $ ("#" +formid+ "Input,textarea"). CSS (' backgroundcolor ', ' #FFF ');},/** * Function: Sets the given input as an editable * @param array of arrays, The ID */inputwriteable:function (array) {for (Var i=0;i<array.length;i++) {$ (' # ' +array[i]) that contains the input to be manipulated. removeattr ("ReadOnly"); $ (' # ' +array[i]). CSS (' backgroundcolor ', ' #FFF ');}},/** * Function: All input to the form is set to read-only * @param the i */formreadonl to manipulate the form Y:function (formId) {$ ("#" +formid+ "Input,textarea"). attr ("ReadOnly", true); $ ("#" +formid+ "Input,textarea"). CSS (' backgroundcolor ', ' #ececec '); },/** * Function: Sets the given input as read-only * @param array of array, holding the ID of input to be manipulated */inputreadonly:function (array) { for (Var i=0;i<array.length;i++) {$ (' # ' +array[i]). attr ("ReadOnly", true); $ (' # ' +array[i]). CSS (' backgroundcolor ', ' #ececec '); } }};