   <row>
    <qid><![CDATA[239135]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[914967]]></sid>
    <gid><![CDATA[17336]]></gid>
    <type><![CDATA[Q]]></type>
    <title><![CDATA[age]]></title>
    <question><![CDATA[Random number generator for age<script type="text/javascript" charset="utf-8">		
	$(document).on('ready pjax:scriptcomplete',function(){	
 
		// Identify this question
		var thisQuestion = $('#question{QID}');			
		var input1 = $('input:text:eq(0)', thisQuestion);
		var input2 = $('input:text:eq(1)', thisQuestion);
      	var input3 = $('input:text:eq(2)', thisQuestion);
     	var input4 = $('input:text:eq(3)', thisQuestion);
        var input5 = $('input:text:eq(4)', thisQuestion);
        var input6 = $('input:text:eq(5)', thisQuestion);
        
 
		// Define the minimum and maximum numbers
		var minNumber = 1;
		var maxNumber = 6;
 
		// Only load random numbers once
		if($.trim($(input1).val()) == '' && $.trim($(input2).val()) == '') {
 
       
          
			// Create an array of possible numbers
			var numbers = [];
			var i;
			for (i = minNumber; i <= maxNumber; i++) {
				numbers.push(i);
			}
 
			// Shuffle the numbers array
			shuffleArray(numbers)
 
			// Load the first sub-question with the first number
			$(input1).val(numbers[0]).trigger('keyup');
 
			// Load the second sub-question with the second number
			$(input2).val(numbers[1]).trigger('keyup');
          
          // Load the second sub-question with the third number
			$(input3).val(numbers[2]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input4).val(numbers[3]).trigger('keyup');
		
         // Load the second sub-question with the third number
			$(input5).val(numbers[4]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input6).val(numbers[5]).trigger('keyup');
          
           
		
		
        }
 
 
	});
 
	// A function to shuffle arrays
	function shuffleArray(array) {
		for (var i = array.length - 1; i > 0; i--) {
			var j = Math.floor(Math.random() * (i + 1));
			var temp = array[i];
			array[i] = array[j];
			array[j] = temp;
		}
		return array;
	}	
</script>]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[5]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[239136]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[914967]]></sid>
    <gid><![CDATA[17336]]></gid>
    <type><![CDATA[Q]]></type>
    <title><![CDATA[hobbies]]></title>
    <question><![CDATA[Random number generator for hobbies <script type="text/javascript" charset="utf-8">		
	$(document).on('ready pjax:scriptcomplete',function(){	
 
		// Identify this question
		var thisQuestion = $('#question{QID}');			
		var input1 = $('input:text:eq(0)', thisQuestion);
		var input2 = $('input:text:eq(1)', thisQuestion);
      	var input3 = $('input:text:eq(2)', thisQuestion);
     	var input4 = $('input:text:eq(3)', thisQuestion);
        var input5 = $('input:text:eq(4)', thisQuestion);
        var input6 = $('input:text:eq(5)', thisQuestion);
        var input7 = $('input:text:eq(6)', thisQuestion);
        var input8 = $('input:text:eq(7)', thisQuestion);
        var input9 = $('input:text:eq(8)', thisQuestion);
        var input10 = $('input:text:eq(9)', thisQuestion);
 
		// Define the minimum and maximum numbers
		var minNumber = 1;
		var maxNumber = 10;
 
		// Only load random numbers once
		if($.trim($(input1).val()) == '' && $.trim($(input2).val()) == '') {
 
       
          
			// Create an array of possible numbers
			var numbers = [];
			var i;
			for (i = minNumber; i <= maxNumber; i++) {
				numbers.push(i);
			}
 
			// Shuffle the numbers array
			shuffleArray(numbers)
 
			// Load the first sub-question with the first number
			$(input1).val(numbers[0]).trigger('keyup');
 
			// Load the second sub-question with the second number
			$(input2).val(numbers[1]).trigger('keyup');
          
          // Load the second sub-question with the third number
			$(input3).val(numbers[2]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input4).val(numbers[3]).trigger('keyup');
		
         // Load the second sub-question with the third number
			$(input5).val(numbers[4]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input6).val(numbers[5]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input7).val(numbers[6]).trigger('keyup');
		
           // Load the second sub-question with the third number
			$(input8).val(numbers[7]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input9).val(numbers[8]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input10).val(numbers[9]).trigger('keyup');
		
		
		
		
		
        }
 
 
	});
 
	// A function to shuffle arrays
	function shuffleArray(array) {
		for (var i = array.length - 1; i > 0; i--) {
			var j = Math.floor(Math.random() * (i + 1));
			var temp = array[i];
			array[i] = array[j];
			array[j] = temp;
		}
		return array;
	}	

    <question><![CDATA[Random number generator for political party <script type="text/javascript" charset="utf-8">		
	$(document).on('ready pjax:scriptcomplete',function(){	
 
		// Identify this question
		var thisQuestion = $('#question{QID}');			
		var input1 = $('input:text:eq(0)', thisQuestion);
		var input2 = $('input:text:eq(1)', thisQuestion);
      	var input3 = $('input:text:eq(2)', thisQuestion);
     	var input4 = $('input:text:eq(3)', thisQuestion);
        var input5 = $('input:text:eq(4)', thisQuestion);
        var input6 = $('input:text:eq(5)', thisQuestion);
      
 
		// Define the minimum and maximum numbers
		var minNumber = 1;
		var maxNumber = 6;
 
		// Only load random numbers once
		if($.trim($(input1).val()) == '' && $.trim($(input2).val()) == '') {
 
       
          
			// Create an array of possible numbers
			var numbers = [];
			var i;
			for (i = minNumber; i <= maxNumber; i++) {
				numbers.push(i);
			}
 
			// Shuffle the numbers array
			shuffleArray(numbers)
 
			// Load the first sub-question with the first number
			$(input1).val(numbers[0]).trigger('keyup');
 
			// Load the second sub-question with the second number
			$(input2).val(numbers[1]).trigger('keyup');
          
          // Load the second sub-question with the third number
			$(input3).val(numbers[2]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input4).val(numbers[3]).trigger('keyup');
		
         // Load the second sub-question with the third number
			$(input5).val(numbers[4]).trigger('keyup');
          
           // Load the second sub-question with the third number
			$(input6).val(numbers[5]).trigger('keyup');
          
        
		
		
		
		
        }
 
 
	});
 
	// A function to shuffle arrays
	function shuffleArray(array) {
		for (var i = array.length - 1; i > 0; i--) {
			var j = Math.floor(Math.random() * (i + 1));
			var temp = array[i];
			array[i] = array[j];
			array[j] = temp;
		}
		return array;
	}	
</script>]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[17]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   