
/* ====  headers used to communicate with dsurveySetup addon */


/* Direct URLS */
var getSectionTemplate='/dsurvey/admins/sectionPlus/';

var getDescriptorXML='/dsurvey/admins/setups/descriptor.xml';

var getControlXML_1='/dsurvey/instruments/$NAME$/control.xml';
var getSpecXML_1='/dsurvey/instruments/$NAME$/specs/spec.xml';
var getSpecDefaultsXML_1='/dsurvey/instruments/$NAME$/specs/';
var getSpecDefaultsXML_2='/dsurvey/instruments/$NAME$/';

var getInstXML='/dsurvey/instruments/';

var getParamsXML='/dsurvey/instruments/$NAME$/';

var getModuleXML_1='/dsurvey/instruments/$NAME$/modules/';
var getModuleXML_2='/dsurvey/instruments/$NAME$/';

var getLibFiles='/dsurvey/instruments/$NAME$/lib/';

var newName,newDesc,newCallFor,newNoVuTasks=0 ;

/* modified URLS: $NAME$ is replaced by the instrument name */
/* GET strings */
var getInstrumentsURL='/dsurvey/dsurveySetup?todo=1';


/* getInstrumentFilesList
   Return a string containing files in specs and modules directory of a session
   Names will be relative to the session directory
   The following is appended:
        session=sessname
   or
        session=sessname&ext=aext
   if you must want to get files ending with aext

*/
getInstrumentFilesList='/dsurvey/dsurveySetup?todo=921&';

/* delete an instruments file: append &name=instName&file=relFile, where relFile is 
a relative file (i.e. specs/foo.xml)  */
deleteInstrumentFile='/dsurvey/dsurveySetup?todo=923';
restoreInstrumentFile='/dsurvey/dsurveySetup?todo=925';

/* POST header */
var postFileURL='/dsurvey/dsurveySetup';

/* post new instrument files: do NOT escape stuff to save (instead, put it on a new line) */
postInstrumentFileHeader2='todo=76';

/* POST content */

var postControlFile='todo=171';

/* getCustomJoinList
   Request a list of custom joine files. 
   Returns a space delimited string of all XML files in the /dsurvey/admins/customJoin directory
*/
var getCustomJoinURL='/dsurvey/dsurveySetup?todo=56&';




