var projectId = '[ENTER PROJECT ID FROM QUESTER HERE]'; // i.e. 'EXAMPLE-flGNpfoYD6rTrIESiFkg8JabMG9k3c-NOT-VALID' var code = [ENTER QUESTION CODE HERE]; // i.e. EXAMPLE-Q2-NOT-VALID var responseId = '[ENTER RESPONSE ID HERE]'; // i.e. 'EXAMPLE-138281192ID-NOT-VALID' !function(window,undefined){"use strict";var EMPTY="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet";var util={has:function(str1,str2){return str2.toLowerCase().indexOf(str1.toLowerCase())!==-1},lowerize:function(str){return str.toLowerCase()}};var mapper={rgx:function(){for(var result,i=0,j,k,p,q,matches,match,args=arguments;i0){if(q.length==2){if(typeof q[1]==FUNC_TYPE){result[q[0]]=q[1].call(this,match)}else{result[q[0]]=q[1]}}else if(q.length==3){if(typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)){result[q[0]]=match?q[1].call(this,match,q[2]):undefined}else{result[q[0]]=match?match.replace(q[1],q[2]):undefined}}else if(q.length==4){result[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):undefined}}else{result[q]=match?match:undefined}}break}}if(!!matches)break}return result},str:function(str,map){for(var i in map){if(typeof map[i]===OBJ_TYPE&&map[i].length>0){for(var j=0;j'):'')}}itbData.widget=data.widget;if($itb.data('events')||$._data($itb[0],'events')){if(data.widget===1){widget='TextArea'}else if(data.widget===0){widget='None'}$itb.trigger('change.itb',{widget:widget})}else{if(data.widget===1){$response.show().focus()}else if(data.widget===0){$response.hide();$send.focus()}}}},_responseError:function(jqXHR,textStatus,errorThrown){$response.val('');methods.destroy();itbData.jsFunction.call(this,'10.0')}};return{init:methods.init}}Quester.loadITB=(function($){var itb,scripts,regex,match,protocol,domain,path,host,servletUrl,i,loadITB=function(itbVars,debug){debug=debug||false;var jsFunction=$.getFunction(itbVars.jsFunction);itb=$.extend({"theme":"Blank - AJAX"},$.clientVariables(),itbVars);if($.type(jsFunction)==='undefined'){if(debug){alert('Quester.loadITB(): jsFunction could not be found - '+itb.jsFunction)}Survey.submit();return}itb.jsFunction=jsFunction;if(!itb.questionId||$('#'+itb.questionId).length===0){if(debug){alert('Quester.loadITB(): questionId element could not be found - '+itb.questionId)}Survey.submit();return}if(!itb.responseId||$('#'+itb.responseId).length===0){if(debug){alert('Quester.loadITB(): responseId element could not be found - '+itb.responseId)}Survey.submit();return}if(!itb.sendId||$('#'+itb.sendId).length===0){if(debug){alert('Quester.loadITB(): sendId element could not be found - '+itb.sendId)}Survey.submit();return}if((itb.projectId&&itb.respondentId)||(!itb.projectId&&!itb.respondentId)||(itb.projectId&&!itb.externalId)){jsFunction('3.0');Survey.submit();return}itb.host='https://www.socratesinsights.com/itb/ajax/1.0.0';clientITB($).init(itb)};return loadITB}(jQuery));function handleResponse(xml){var xmlDoc;try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(xml)}catch(e){try{parser=new DOMParser();xmlDoc=parser.parseFromString(xml,"text/xml")}catch(e){alert(e.message);return}}var status=null;var respondentId=null;var conversation=[];var conversationTag=null;status=xmlDoc.getElementsByTagName("status")[0].childNodes[0].nodeValue;if(status!=null&&(status=="1.0"||status=="1.1")){respondentId=xmlDoc.getElementsByTagName("respondentId")[0].childNodes[0].nodeValue;conversationTag=xmlDoc.getElementsByTagName("conversation");for(i=0;i