+/*
+ * Swap two rules
+ */
+ "function SwapRules(ra, rb) { \n"
+ " \n"
+ " var things = new Array(); \n"
+ " things[0] = 'hfield'; \n"
+ " things[1] = 'compare'; \n"
+ " things[2] = 'htext'; \n"
+ " things[3] = 'action'; \n"
+ " things[4] = 'fileinto'; \n"
+ " things[5] = 'redirect'; \n"
+ " things[6] = 'final'; \n"
+ " \n"
+ " for (i=0; i<7; ++i) { \n"
+ " tempval=$(things[i]+ra).value; \n"
+ " $(things[i]+ra).value = $(things[i]+rb).value; \n"
+ " $(things[i]+rb).value = tempval; \n"
+ " } \n"
+ " \n"
+ "} \n"