function fnEnableBtns(){document.getElementById("tblRepeaterTd").style.display="block";document.getElementById("btns").style.display="block"}function fnShowButtons(){$("#btnNext")!=null&&$("#btnNext").show();$("#btnPrevious")!=null&&$("#btnPrevious").show();$("#btnFinish")!=null&&$("#btnFinish").show();$("#lblProcessing")!=null&&$("#lblProcessing").hide();$("#SaveNResume")!=null&&$("#SaveNResume").attr("disabled",!1)}function setmaxch(n,t){var i=n.value.length;i>=t&&(n.value=n.value.substring(0,t))}function fnCheck(n){var i="+",r="-",t="0";return n.lastIndexOf(r)!=0&&n.lastIndexOf(r)!=-1&&(t="1"),n.lastIndexOf(i)!=0&&n.lastIndexOf(i)!=-1&&(t="1"),t=="1"?!1:!0}function fnf5(n){var i=0,t;if(document.layers||document.getElementById&&!document.getElementById){if(n.which=="116"&&(n.which="8",i=1),i==1&&n.which=="8")return n.cancelBubble=!0,n.returnValue=!1,n.keycode=0,!1}else if(t=event.keyCode,t=="116"&&(t="8",i=1),i==1&&t=="8")return t.cancelBubble=!0,t.returnValue=!1,t.keycode=0,!1}function fnRefresh(){if(window.opener!=null)try{if(window.opener!="undefined"){alert("hi1");try{window.opener.closed||opener.location.reload()}catch(n){}}}catch(t){return}}function fnHideRepeater(){return document.getElementById("tblRepeater").style.display="none",document.getElementById("tblGreeting").style.display="",!1}function fnEnterKey(n){if(document.layers||document.getElementById&&!document.getElementById)return n.which=="9"&&(document.getElementById("hidEnterKey").value="0"),!0;var t;return t=window.event?window.event.keyCode:n.which,t==9&&(document.getElementById("hidEnterKey").value="0"),!0}function fnrdoCheck(n){var t="S2txtBox"+n;document.getElementById(t).focus()}function fnchkCheck(n){var t="S3txtBox"+n,i="S3txtchk"+n;document.getElementById(i).checked==!0&&document.getElementById(t).focus()}function showRepeater(){document.getElementById("tblRepeater").style.display="";document.getElementById("tblGreeting").style.display="none"}function ChangePageOption(n){fnHideButtons();document.getElementById("txtPageOperation").value=n}function getsum(n){for(var h=document.getElementById("SurveyEndUser"),o="S17Qns"+n,s=document.getElementById(o),u=s.getElementsByTagName("INPUT"),r=0,e,f,i,t=0;t<u.length;t++)u[t].type=="text"&&(i=u[t].id,e=i.substr(0,11),e!="S17txtTotal"&&(f=trim(document.getElementById(i).value),f!=""&&isWhitespace(document.getElementById(i).value)==!1&&fnIsAlphaNumericDecimalNegative(f)==!0&&(r=trim(f)=="-"?parseFloat(r)+parseFloat(-0):trim(f)=="."?parseFloat(r)+parseFloat(0):parseFloat(r)+parseFloat(trim(document.getElementById(i).value)))));if(r==0)document.getElementById("S17txtTotal"+n).value="";else if(document.getElementById("S17txtTotal"+n).value=r,r==document.getElementById("hidS17Qns"+n).value)for(t=0;t<u.length;t++)u[t].type=="text"&&(i=u[t].id,(document.getElementById(i).value==null||document.getElementById(i).value=="")&&(document.getElementById(i).value=0))}function optOutNoMsg(){alert("You have chosen NOT to opt out");window.opener=this;window.close()}function optOutYesMsg(){document.getElementById("tblRepeater").style.display="none";alert("You have successfully opted out of taking this survey. This survey will not be sent to you again.");window.opener=this;window.close()}function disableRightClick(){if(event.button==2||event.button==3)return!1}function loadSettings(){var u,f,t,n,e,i,r,o,s,h;if(window.history.forward(1),settings=document.frmPreview.hidSettings.value.split(","),u=document.getElementById("tblGreeting"),f=document.getElementById("tblRepeater"),settings[3]=="2"?document.getElementById("hidshowtblRepeater").value=="0"?(u.style.display="",f.style.display="none"):(u.style.display="none",f.style.display=""):(u.style.display="none",f.style.display=""),t=$(".PageTitleHeader .tblProgress"),n=$(".PageTitleHeader .tdpage"),e=$(".PageTitleHeader .tdpage1"),i=$(".PageTitleHeader .tdTotPage"),r=$(".PageTitleHeader .tdOf"),o=$(".PageTitleHeader .tdPageHead"),s=$(".PageTitleHeader .tdPageno"),h=$(".PageTitleHeader #tdheight"),$(".tdProgress,.tdpage,.tdpage1,.tdTotPage,.tdOf").css("visibility","hidden"),settings[2]=="9"&&settings[4]=="9")settings[5]=="1"&&(t.css("visibility","visible"),n.css("visibility","hidden"),n.css("visibility","hidden"),r.css("visibility","hidden"),i.css("visibility","hidden")),settings[5]=="2"&&(e.css("visibility","visible"),t.css("visibility","visible"),n.css("visibility","visible"),i.css("visibility","hidden"),r.css("visibility","hidden")),settings[5]=="3"&&(n.css("visibility","visible"),e.css("visibility","visible"),t.css("visibility","visible"),i.css("visibility","visible"),r.css("visibility","visible")),settings[5]=="4"&&(t.css("visibility","hidden"),n.css("visibility","hidden"),e.css("visibility","hidden"),i.css("visibility","hidden"),r.css("visibility","hidden")),settings[5]=="5"&&(t.css("visibility","visible"),o.css("visibility","hidden"),s.css("visibility","hidden"),n.css("visibility","hidden"),e.css("visibility","hidden"),r.css("visibility","hidden"),i.css("visibility","hidden"),h.css("visibility","hidden")),settings[5]=="6"&&(t.css("visibility","hidden"),o.css("visibility","hidden"),s.css("visibility","hidden"),n.css("visibility","hidden"),e.css("visibility","hidden"),r.css("visibility","hidden"),i.css("visibility","hidden"),h.css("visibility","hidden"));else{switch(settings[2]){case"0":$(".tdProgress").hide();break;case"1":case"9":$(".PageTitleHeader .tdProgress").css("visibility","visible");$(".p_btm .tdProgress").hide();break;case"2":$(".PageTitleHeader .tdProgress").hide();$(".p_btm .tdProgress").css("visibility","visible");break;case"3":$(".tdProgress").css("visibility","visible")}switch(settings[6]){case"1":case"9":settings[4]=="1"?$(".PageTitleHeader").find(".tdpage1,.tdpage").css("visibility","visible"):$(".PageTitleHeader").find(".tdpage,.tdTotPage,.tdOf,.tdpage1").css("visibility","visible");break;case"2":settings[4]=="1"?($(".p_btm").find(".tdpage,.tdpage1").css("visibility","visible"),$(".tdOf,.tdTotPage").hide()):$(".p_btm").find(".tdpage,.tdTotPage,.tdOf,.tdpage1").css("visibility","visible");break;case"3":settings[4]=="1"?($(".tdpage,.tdpage1").css("visibility","visible"),$(".tdOf,.tdTotPage").hide()):$(".tdpage,.tdTotPage,.tdOf,.tdpage1").css("visibility","visible")}}["2","3"].indexOf(settings[6])==-1&&["2","3"].indexOf(settings[2])==-1&&$(".p_btm .tablePageNavigation").hide();settings[0]=="1"&&window.history.forward(1);document.getElementById("hidshowtblRepeater").value=="0"?(u.style.display="",f.style.display="none"):(u.style.display="none",f.style.display="")}function KeyCache(n){if(document.getElementById("hidEnterKey").value!="3"){var t=0;if(document.layers||document.getElementById&&!document.getElementById){if(n.which=="116"&&(n.which="8",t=1),t==1&&n.which=="8")return n.cancelBubble=!0,n.returnValue=!1,!1;if(n.which=="13"){if(document.getElementById("tblGreeting").style.display!="none"){if(document.getElementById("lnkGreeting")!=null&&(document.getElementById("hidEnterKey").value!="1"?(document.getElementById("lnkGreeting").onClick=showRepeater(),document.getElementById("hidEnterKey").value="1"):document.getElementById("hidEnterKey").value="0"),document.getElementById("lnkGreetingClose")!=null)return document.getElementById("lnkGreetingClose").onClick=fnclose(),document.getElementById("hidEnterKey").value="1",!1}else document.getElementById("hidEnterKey").value="0";return document.getElementById("lnkNext")!=null&&document.getElementById("hidEnterKey").value!="1"&&(document.getElementById("lnkNext").onClick=fnGeneric()),document.getElementById("lnkFinish")!=null&&document.getElementById("hidEnterKey").value!="1"&&(document.getElementById("lnkFinish").onClick=fnGeneric()),!1}}else{if(window.event&&window.event.keyCode==116&&(window.event.keyCode=8,t=1),t==1&&window.event&&window.event.keyCode==8)return window.event.cancelBubble=!0,window.event.returnValue=!1,!1;if(window.event.keyCode==13){if(document.getElementById("tblGreeting").style.display!="none"){if(document.getElementById("lnkGreeting")!=null&&(document.getElementById("hidEnterKey").value!="1"?(document.getElementById("lnkGreeting").onClick=showRepeater(),document.getElementById("hidEnterKey").value="1"):document.getElementById("hidEnterKey").value="0"),document.getElementById("lnkGreetingClose")!=null)return document.getElementById("lnkGreetingClose").onClick=fnclose(),document.getElementById("hidEnterKey").value="1",!1}else document.getElementById("hidEnterKey").value="0";return document.getElementById("lnkFinish")!=null&&document.getElementById("hidEnterKey").value!="1"&&document.getElementById("lnkFinish").click(),!1}}}else return!0}function fnclose(){window.opener=this;window.close()}function CompletionSettings(){var n,t;n=document.getElementById("tblGreeting");t=document.getElementById("tblRepeater");trim(document.getElementById("lblGreeting").innerText)!=""?(document.getElementById("tblGreeting").style.display="",document.getElementById("tblRepeater").style.display="none"):(document.getElementById("tblGreeting").style.display="none",document.getElementById("tblRepeater").style.display="")}function fnDisableEnter(n){if(document.layers||document.getElementById&&!document.getElementById){if(n.which=="13"||n.keycode=="13")return!1}else{var t;if(t=window.event?window.event.keyCode:n.which,t=="13")return!1}}function fnsetfocus(){document.getElementById("lblGreeting").innerText==""&&(document.getElementById("btnNext")!=null?document.getElementById("btnNext").focus():document.getElementById("btnFinish")!=null&&document.getElementById("btnFinish").focus())}function clickIE4(){if(event.button==2)return!1}function clickNS4(n){if((document.layers||document.getElementById&&!document.getElementById)&&(n.which==2||n.which==3))return alert(message),!1}function fnAnonymousSurvey(n){n==1?(tb_show("","#TB_inline?height=235&width=345&inlineId=AnonymousSurvey",null),$("#TB_window").css({marginLeft:"-279px",width:"365px",marginTop:"-115px;"})):tb_show("","#TB_inline?height=235&width=550&inlineId=AnonymousSurvey",null)}function fnCloseAnonymousSurvey(){document.getElementById("AnonymousSurvey").style.visibility="hidden"}function chkJavascript(){document.getElementById("hidJS").value="Yes"}function hasNumbers(n){var t=new RegExp("[0-9]");return t.test(n)}function isEmpty(n){return n==null||n.length==0}function replace(n,t,i){var r=0,u="",f="";return isEmpty(n)||n.indexOf(t)<0?n:(r=n.indexOf(t),u=n.substring(0,r),r+=t.length,f=n.substring(r),u+i+f)}function isWhitespace(n){var t,i;if(isEmpty(n))return!0;for(t=0;t<n.length;t++)if(i=n.charAt(t)," \t\n\r ".indexOf(i)==-1)return!1;return!0}function isValidEmail_New(n){var i="@",t=".",r=n.indexOf(i),u=n.length,f=n.indexOf(t);return n.indexOf(i)==-1?!1:n.indexOf(i)==-1||n.indexOf(i)==0||n.indexOf(i)==u?!1:n.indexOf(t)==-1||n.indexOf(t)==0||n.indexOf(t)==u?!1:n.indexOf(i,r+1)!=-1?!1:n.substring(r-1,r)==t||n.substring(r+1,r+2)==t?!1:n.indexOf(t,r+2)==-1?!1:n.indexOf(" ")!=-1?!1:!0}function fnIsAlphaNumericDecimalNegative(n){var r,i,t;for(i=0,temp=n.length,t=0;t<temp;t++)r=n.substring(t,t+1),"-.0123456789".indexOf(r)==-1&&(i=1);return i==1||isNaN(n)?!1:!0}function fnIsNumericInteger(n){var r,i,t;for(i=0,temp=n.length,t=0;t<temp;t++)r=n.substring(t,t+1),"0123456789".indexOf(r)==-1&&(i=1);return i==1?!1:!0}function IsInternationalPhone(n){if(n.length==0)return!1;for(Count=0;Count<n.length;Count++)if(TempChar=n.substring(Count,Count+1),"1234567890-+() ".indexOf(TempChar,0)==-1)return!1}function IsInternationalPhoneSF(n){if(n.length==0)return!1;for(Count=0;Count<n.length;Count++)if(TempChar=n.substring(Count,Count+1),"1234567890-+(), ".indexOf(TempChar,0)==-1)return!1}function IsUSPhone(n){var t=0;return(t!=1&&n.charAt(3)=="-"&&n.charAt(7)=="-"&&(n=strip("*() -./_\n\r\t\\",n),n.length==10&&fnIsNumericInteger(n)==!0&&(t=1)),t!=1&&n.length==10&&fnIsNumericInteger(n)==!0&&(t=1),t!=1&&n.length==13&&n.charAt(0)=="("&&n.charAt(4)==")"&&n.charAt(8)=="-"&&(n=strip("*() -./_\n\r\t\\",n),n.length==10&&fnIsNumericInteger(n)==!0&&(t=1)),t!=1&&n.length==14&&n.charAt(0)=="("&&n.charAt(4)==")"&&n.charAt(9)=="-"&&n.charAt(5)==" "&&(n=strip("*() -./_\n\r\t\\",n),n.length==10&&fnIsNumericInteger(n)==!0&&(t=1)),t!=1&&n.length==12&&n.charAt(3)==" "&&n.charAt(7)==" "&&(n=strip("*() -./_\n\r\t\\",n),n.length==10&&fnIsNumericInteger(n)==!0&&(t=1)),t==0)?!1:!0}function trim(n){for(var t=0,t=0;t<n.length;)if(n.charAt(t)==" ")n=n.substring(t+1,n.length);else break;for(t=n.length-1;t>=0;t=n.length-1)if(n.charAt(t)==" ")n=n.substring(0,t);else break;return n}function strip(n,t){for(var r,u="",f=t.length,i=0;i<f;i++)r=t.charAt(i),n.indexOf(r)<0&&(u+=r);return u}function CreateUploader(){var n;$("#ctl00_cphMain_txtURL").val("");n=$("[id$=ctl00_cphMain_txtURL]").val();n!=""&&$("[id$=ctl00_cphMain_txtURL]").empty();surveyIdMain=$("#ctl00_cphMain_hidSurveyID").attr("value");var t=$("[id$=fileUploadsize]").val(),i=$("[id$=allowtypes]").val(),r=new qq.FileUploader({element:document.getElementById("fileLoader"),action:"FileUpload.ashx?serverpath="+$(".fileuploadserverpath").val()+"&filesize=1&RestrictedSize="+t+"&SurveyID="+surveyIdMain,debug:!0,onComplete:function(n,t,i){try{hideTooltip()}catch(u){}if(i.success){$("#ctl00_cphMain_txtURL").text("");$(".loader img:last-child").remove();$(".loader").html("");var r=document.createElement("img");r.src=i.path;r.onload=function(){$this=$("#ctl00_cphMain_divloader").parent();$this.css("border","2px solid gray");ImageDimensionsForPreviewBox(i.path,r);HideLogingImg();$(".fileuploadimg").val(i.path);$(".txtImgPath").text(i.name);$("[id$=UploadedImagePath]").val(i.path);$(".imgPreview").focus();$(".qq-uploader ul").remove();$(".imagePreview").hide();$("[id$=divloader]").show();$("[id$=rqfImg]").hide();$("[id$=divremoveImage]").css("display","inline");$("#ctl00_cphMain_btnUpload").removeAttr("disabled");$("#ctl00_cphMain_btnUpload").css("color","#013369");hideProcessingDiv();$("#TB_overlayForPopup").css({display:"none"})}}else $("#ctl00_cphMain_txtURL").text(""),$("#ctl00_cphMain_btnUpload").attr("disabled","disabled"),$("#ctl00_cphMain_btnUpload").css("color","gray"),$(".loader").css("background-image","none"),PreviewMessageInvalidImgSize(),$(".txtImgPath").text(""),hideProcessingDiv(),$("#TB_overlayForPopup").css({display:"none"}),HighlightPreviewDiv();$("#ctl00_cphMain_txtURL").attr("value","")},showMessage:function(){$("#ctl00_cphMain_btnUpload").attr("disabled","disabled");$("#ctl00_cphMain_btnUpload").css("color","gray");$(".loader").css("background-image","none");PreviewMessageInvalidImgSize();$(".txtImgPath").text("");HighlightPreviewDiv();hideProcessingDiv();$("#TB_overlayForPopup").css({display:"none"})}})}function setFontToEventDetails(){var n,t,i;n=document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2"?"16px":$(".Questions").css("font-size");t=$(".Questions").css("font-family");i=$(".Questions").css("color");$(".spnEventTitle").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).css("line-height","normal");$(this).removeClass("font7")});$(".spnEventDesc").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("line-height","normal");$(this).css("font-weight","normal");$(this).css("color",i);$(this).removeClass("font7");(document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2")&&this.style.setProperty("font-size","14px","important")});$(".spnEventDate").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).removeClass("font7")});$(".spnEventTime").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).removeClass("font7")});$(".spnEventTimeZone").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).removeClass("font7")});$(".spnEventLocation").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).css("line-height","normal");$(this).removeClass("font7");(document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2")&&this.style.setProperty("font-size",n,"important")});$(".spanEventAddress").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).css("line-height","normal");$(this).removeClass("font7");(document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2")&&this.style.setProperty("font-size",n,"important")});$(".spnEventDetailsText").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).removeClass("font7")});$(".spnContactNumber").each(function(){$(this).css("font-size",n);$(this).css("font-family",t);$(this).css("color",i);$(this).removeClass("font7")})}function fnDeleteFile(n,t,i,r){var f="fileUploadName"+t,e,u;if(n=="1")return e=window.location.href,document.getElementById("MsgText"+t).innerHTML='&nbsp<a href="#pt'+r+'" onclick="fnDeleteFile(2,'+t+","+i+');" target="_top"><font size="2px" color="blue">'+Lang.l93+"<\/font><\/a>",!1;u={QuestionId:t,SurveyID:document.getElementById("hidSurveyId").value,FileSize:i,RespId:document.getElementById("hidResId").value,fileStatus:0};$.ajax({type:"POST",url:"Preview.aspx/DeleteFileUploaded",data:JSON.stringify(u),contentType:"application/json; charset=utf-8",dataType:"json",success:function(){if(document.getElementById("NoFiletext"+t).innerHTML="("+Lang.l84+")",document.getElementById("MsgText"+t).innerHTML="",document.getElementById("btnChoose"+t).value=Lang.l82,document.getElementById("S24QnsMan"+t).value=0,document.getElementById(f).value="",$('input[type="file"]#fileLoader'+t).val(""),document.getElementById("uploadedFile").value.includes(t)){var n=document.getElementById("uploadedFile").value;document.getElementById("uploadedFile").value=n.replace(t,0)}return}})}function displayFileName(n,t,i,r,u){var e="btnChoose"+t,o="NoFiletext"+t,f="MsgText"+t,s="fileUploadName"+t,h;u=="1"?(h=window.location.href,n!=""?(document.getElementById(e).value=Lang.l91,document.getElementById("fileUploadsize").value=i,document.getElementById(o).innerHTML=n,document.getElementById(s).value=n,document.getElementById(f).innerHTML='&nbsp;<img src="\\images\\questions\\delete.png" />&nbsp;<a href="javascript:void();" onclick="fnDeleteFile(1,'+t+","+i+","+r+');"  target="_self"><font size="2px" color="blue">'+Lang.l92+"<\/font><\/a>",document.getElementById(f).style.visibility="visible"):(document.getElementById(e).value=Lang.l82,document.getElementById(o).innerHTML="("+Lang.l84+")",document.getElementById(f).innerHTML="",document.getElementById(f).style.visibility="hidden"),document.getElementById(s).value=n,document.getElementById("fileUploadQId").value=t,document.getElementById("fileUploadQNo").value=r):(document.getElementById(e).value=Lang.l82,document.getElementById(o).innerHTML="("+Lang.l84+")",document.getElementById(f).innerHTML="",document.getElementById(f).style.visibility="hidden")}function CheckBrowserCompatibility(){var n=!1,i="",t;return $.browser.mozilla?n=!0:$.browser.msie?GetIEVersion()>8&&(n=!0,i=GetIEVersion()):$.browser.webkit&&($.browser.safari?(t=$.browser.version.split("."),t[0]>532&&(n=!0)):(t=$.browser.version.split("."),t[0]>38&&(n=!0))),n+"-"+i}function GetIEVersion(){var n=window.navigator.userAgent,t=n.indexOf("MSIE");return t>0?parseInt(n.substring(t+5,n.indexOf(".",t))):navigator.userAgent.match(/Trident\/7\./)?11:0}function openfileDialog(n,t){var i=n,s=t,o="",h=0,c=0,l,f="btnChoose"+i,r="NoFiletext"+i,e="MsgText"+i,a="S24QnsMan"+i,v="S24ManFile"+i,u="fileUploadName"+i;$("#fileLoader"+i).value=null;$("#fileLoader"+i).click();var y=0,p=window.navigator.userAgent,w=p.indexOf("MSIE ")>-1||p.indexOf("Trident/")>-1;w==!1?$('input[type="file"]#fileLoader'+i).change(function(n){var k,w,tt,it,g,p,nt,ft;if(document.getElementById(r).innerHTML=Lang.l10.replace("'","'"),fnHideButtons(),n.target.value.length>0){o=n.target.files[0].name;fileSize=n.target.files[0].size;filePath=n.target.files;var rt=o.match(/\.[0-9a-z]+$/i),ut=o.indexOf("$~$"),b=document.getElementById("fileupload").value.split("#"),d="";if(b!="")for(k=0;k<b.length;k++)if(w=b[k].split("-"),parseFloat(w[0])==parseFloat(i)){if(w[1].toLowerCase()!=""&&(d="."+w[1].toLowerCase().replace(/,/g,",.")),tt=w[3].toLowerCase().trim(),h=tt=="kb"?parseFloat(w[2])*1024:parseFloat(w[2])*1048576,it=w[5].toLowerCase().trim(),c=it=="kb"?parseFloat(w[4])*1024:parseFloat(w[4])*1048576,document.getElementById("fileUploadsize").value=h,document.getElementById("allowtypes").value=w[1],document.getElementById("fileUploadQId").value=i,document.getElementById("fileUploadQNo").value=s,document.getElementById("hidIsGraceQuotaReached").value=="1"){p=Lang.l89;p=p.replace("[Allowed-File-Type-Extensions]",w[1].replace(/,/g,g));document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(d!=""&&d.toLowerCase().indexOf(rt.toString().toLowerCase())==-1){g=", ";p=Lang.l87;p=p.replace("[Allowed-File-Type-Extensions]",w[1].replace(/,/g,g));document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(ut>0){p=Lang.l96;document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(parseFloat(h)<=fileSize){p=Lang.l88;p=p.replace("[X]",w[2]+""+w[3].trim());document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(parseFloat(c)>=fileSize){p=Lang.l94;p=p.replace("[X]",w[4]+""+w[5].trim());document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}nt=new FormData;ft=new FormData;nt.append(document.getElementById("hidResId").value+"-"+i+"-"+n.target.files[0].name,n.target.files[0]);$.ajax({type:"POST",url:"/FileUploader.ashx",contentType:!1,processData:!1,data:nt,success:function(n){var c=window.location.href,h;y=1;l=i+"$~$"+o+"$~$"+fileSize+"$~$"+n;document.getElementById("uploadedFile").value.includes(i)&&(h=document.getElementById("uploadedFile").value,document.getElementById("uploadedFile").value=h.replace(i,0));document.getElementById("uploadedFile").value=document.getElementById("uploadedFile").value+"#"+l;document.getElementById(u).value=o;document.getElementById(r).innerHTML=o;document.getElementById(f).value=Lang.l91;document.getElementById(e).innerHTML='&nbsp;<img src="\\images\\questions\\delete.png" />&nbsp;<a href="#pt'+t+'" onclick="fnDeleteFile(1,'+i+","+fileSize+","+s+');"  target="_self"><font size="2px" color="blue">'+Lang.l92+"<\/font><\/a>";document.getElementById(e).style.visibility="visible";document.getElementById("uploadedFileStatus").value=1;document.getElementById(s).innerHTML="";document.getElementById(s).style.display="none";document.getElementById(a).value=1;document.getElementById(v).value=1;fnShowButtons();i=0},error:function(n){var c,o,s,h;if(n.status==403){for(c=document.getElementById("fileupload").value.split("#"),o=null,s=0;s<c.length;s++)if(h=b[s].split("-"),parseFloat(h[0])==parseFloat(i)){o=h;break}o!=null&&showUnsupportedFileTypeError(o,t,u,r,e,f,!0)}else n.status==500&&(document.getElementById(t).innerHTML='An error has occurred whilst processing your file, please click "Choose file" and try again.')}})}}else return document.getElementById(r).innerHTML=document.getElementById(u).value!=""?document.getElementById(u).value:"("+Lang.l84+")",document.getElementById(f).value=Lang.l82,fnShowButtons(),!1}):$('input[type="file"]#fileLoader'+i).live("click",function(n){setTimeout(function(){var k,w,nt,tt,it,p,g,ft;if(this.blur(),document.getElementById(r).innerHTML=Lang.l10.replace("'","'"),fnHideButtons(),n.target.value.length>0){o=n.target.files[0].name;fileSize=n.target.files[0].size;filePath=n.target.files;var rt=o.match(/\.[0-9a-z]+$/i),ut=o.indexOf("$~$"),b=document.getElementById("fileupload").value.split("#"),d="";if(b!="")for(k=0;k<b.length;k++)if(w=b[k].split("-"),parseFloat(w[0])==parseFloat(i)){if(w[1].toLowerCase()!=""&&(d="."+w[1].toLowerCase().replace(/,/g,",.")),nt=w[3].toLowerCase().trim(),h=nt=="kb"?parseFloat(w[2])*1024:parseFloat(w[2])*1048576,tt=w[5].toLowerCase().trim(),c=tt=="kb"?parseFloat(w[4])*1024:parseFloat(w[4])*1048576,document.getElementById("fileUploadsize").value=h,document.getElementById("allowtypes").value=w[1],document.getElementById("fileUploadQId").value=i,document.getElementById("fileUploadQNo").value=s,d!=""&&d.toLowerCase().indexOf(rt.toString().toLowerCase())==-1){it=", ";p=Lang.l87;p=p.replace("[Allowed-File-Type-Extensions]",w[1].replace(/,/g,it));document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(ut>0){p="Special characters";document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(parseFloat(h)<=fileSize){p=Lang.l88;p=p.replace("[X]",w[2]+""+w[3].trim());document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}if(parseFloat(c)>=fileSize){p=Lang.l94;p=p.replace("[X]",w[4]+""+w[5].trim());document.getElementById(t).innerHTML=p;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(u).value="";document.getElementById(r).innerHTML=Lang.l84;document.getElementById(e).innerHTML="";document.getElementById(f).value=Lang.l82;return}g=new FormData;ft=new FormData;g.append(document.getElementById("hidResId").value+"-"+i+"-"+n.target.files[0].name,n.target.files[0]);$.ajax({type:"POST",url:"/FileUploader.ashx",contentType:!1,processData:!1,data:g,success:function(n){var c=window.location.href,h;y=1;l=i+"$~$"+o+"$~$"+fileSize+"$~$"+n;document.getElementById("uploadedFile").value.indexOf(i)>-1&&(h=document.getElementById("uploadedFile").value,document.getElementById("uploadedFile").value=h.replace(i,0));document.getElementById("uploadedFile").value=document.getElementById("uploadedFile").value+"#"+l;document.getElementById(u).value=o;document.getElementById(r).innerHTML=o;document.getElementById(f).value=Lang.l91;document.getElementById(e).innerHTML='&nbsp;<img src="\\images\\questions\\delete.png" />&nbsp;<a href="#pt'+t+'" onclick="fnDeleteFile(1,'+i+","+fileSize+","+s+');"  target="_self"><font size="2px" color="blue">'+Lang.l92+"<\/font><\/a>";document.getElementById(e).style.visibility="visible";document.getElementById("uploadedFileStatus").value=1;document.getElementById(s).innerHTML="";document.getElementById(s).style.display="none";document.getElementById(a).value=1;document.getElementById(v).value=1;fnShowButtons();i=0},error:function(n){var c,o,s,h;if(n.status==403){for(c=document.getElementById("fileupload").value.split("#"),o=null,s=0;s<c.length;s++)if(h=b[s].split("-"),parseFloat(h[0])==parseFloat(i)){o=h;break}o!=null&&showUnsupportedFileTypeError(o,t,u,r,e,f,!0)}else n.status==500&&(document.getElementById(t).innerHTML='An error has occurred whilst processing your file, please click "Choose file" and try again.')}})}}else return document.getElementById(r).innerHTML=document.getElementById(u).value!=""?document.getElementById(u).value:"("+Lang.l84+")",document.getElementById(f).value=Lang.l82,fnShowButtons(),!1},0)})}function UploadToAWS(n){var t,i;$("#frmPreview").transloadit({wait:!0,fields:!0,autoSubmit:!1,triggerUploadOnFileSelection:!0,requireUploadMetaData:!0,params:{auth:{key:"53478dca24fd4c2a9eba89f38e03869d"},steps:{virus_scanned:{use:":original",result:!0,robot:"/file/virusscan",error_on_decline:!0}},template_id:"fb25a10f374243dc8a6e9c2976cf0fc1",image_import_url:n},onResult:function(n,i){$("#transloaditresult").val(i.original_id+","+i.ssl_url);t=i.original_id+","+i.ssl_url},onSuccess:function(n){$("#assemblyinfo").val(n.message+","+n.http_code);t=t+n.message+","+n.http_code},onError:function(n){$("#assemblyinfo").val(n.message+","+n.http_code);i=n.message+","+n.http_code}})}function cancelpasteventsdesign(){setTimeout(function(){$(".dvEventInformationMainContainer").each(function(){var r=$(this).height(),f=$(this).width(),n=$(this).parents(".tblPlain").find(".test").val(),t,i,u;(n=="undefined"||n==null)&&(n=$(this).parents(".tblPlain").find(".full").val());n==1||n==2?(t=$(this).parents(".tblPlain").find("#background"),i=$(this).parents(".tblPlain").find("#background").find("img"),t.css("height",r),t.css("width",f),u=r/2-i.height()/2,i.css("margin-top",u),$(this).parents(".ques_box").css("opacity",.6),$(this).parents(".tblPlain").find(".Answer_Body").find("input").prop("disabled",!0),document.getElementById("hidIsPastorCancel").value=n):eventsfulldesign(1)})},500)}function eventsfulldesign(n){setTimeout(function(){$(".dvEventInformationMainContainer").each(function(){var f=$(this).height(),e=$(this).width(),r=$(this).parents(".ques_box").find(".full").val(),i,t,u;r==3?(i=0,t="",n==1?(n=document.getElementById("hidEventFullIds").value,t=n.split("~$^")):(n=n+"~$^",t=n.split("~$^")),document.getElementById("hidIsPastorCancel").value=r,u=$(this).parents(".Question_Body").find("#background"),$(u).find('input[type="hidden"]').each(function(){for(i=$(this).attr("id").substring(7),x=0;x<t.length;x++)if(i==t[x]){$(this).parents(".Question_Body").find(".dvEventInformationMainContainer").css("opacity",.6);$(this).parents(".ques_box").find("a").removeAttr("onclick");$(this).parents(".ques_box").find("a").removeAttr("href");$(this).parents(".ques_box").find("#background").css("display","block");$(this).parents(".ques_box").find("#background").css("height",f);$(this).parents(".ques_box").find("#background").css("width",e);var n=$(this).parents(".ques_box").find(".dvEventInformationMainContainer").height()/2-$(this).parents(".ques_box").find("#background").find("img").height()/2;$(this).parents(".ques_box").find("#background").find("img").css("margin-top",n);$(this).parents(".tblPlain").find("#IsFullTr_"+t[x]).show();$(this).parents(".tblPlain").find("#IsFullTr_"+t[x]).find("div").css("padding-left","30px");$(this).parents(".tblPlain").find("#IsFullTr_"+t[x]).find("td").find("img").parent().css("padding-left","30px")}})):document.getElementById("hidIsPastorCancel").value=0})},200)}function showWarningImage(n){setTimeout(function(){$(".dvEventInformationMainContainer").each(function(){var u=$(this).parents(".ques_box").find(".full").val(),i,t,r;u==3&&(i=0,t="",n==1?(n=document.getElementById("hidInProgress").value,t=n.split("~$^")):(n=n+"~$^",t=n.split("~$^")),r=$(this).parents(".Question_Body").find("#background"),$(r).find('input[type="hidden"]').each(function(){for(i=$(this).attr("id").substring(7),x=0;x<t.length;x++)if(i==t[x]){var n=$(this).parents(".tblPlain").find(".Question_Body").find("#IsWarning_"+t[x]);n.css("display","block")}}))})},200)}function showAnswerDisable(n,t,r){var f,e,u="",s,h,o="";setTimeout(function(){$(".dvEventInformationMainContainer").each(function(){var y=$(this).height(),p=$(this).width(),v=$(this).parents(".ques_box").find(".full").val();if(v==3){for(n==1?(s=document.getElementById("hidMaxAttenAnswer1Ids").value,f=s.split("~$^")):(s=document.getElementById("hidMaxAttenAnswer1Ids").value+"~$^",f=s.split("~$^")),ii=0;ii<f.length;ii++)$(this).parents(".tblPlain").find(".Answer_Body").find("#S2rdoAnswer"+f[ii]).prop("disabled",!0),$(this).parents(".tblPlain").find(".AnsChoices").find('input[id="S2rdoAnswer'+f[ii]+'"]').prop("disabled",!0),$(this).parents(".tblPlain").find(".AnsChoices").find('label[for="S2rdoAnswer'+f[ii]+'"]').css("opacity",.6);for(t==1?(h=document.getElementById("hidMaxAttenAnswer2Ids").value,e=h.split("~$^")):(h=document.getElementById("hidMaxAttenAnswer2Ids").value+"~$^",e=h.split("~$^")),jj=0;jj<e.length;jj++)$(this).parents(".tblPlain").find(".Answer_Body").find("#S2rdoAnswer"+e[jj]).prop("disabled",!0),$(this).parents(".tblPlain").find(".AnsChoices").find('input[id="S2rdoAnswer'+e[jj]+'"]').prop("disabled",!0),$(this).parents(".tblPlain").find(".AnsChoices").find('label[for="S2rdoAnswer'+e[jj]+'"]').css("opacity",.6);for(r==1?(o=document.getElementById("hidMaxAttenAnswer3Ids").value,u=o.split("~$^")):r==2?(o=document.getElementById("hidDisableAnswer3").value,u=o.split("~$^")):(o=document.getElementById("hidMaxAttenAnswer3Ids").value+"~$^",u=o.split("~$^")),i=0;i<u.length;i++)if(u[i]>0)if(r==1){var l=$(this).parents(".tblPlain").find(".table_border"),c=0,a=0;$(l).find('.AnsChoices input[type="radio"]').each(function(){if(c=0,a++,c=$(this).attr("id").substring(11),c==u[i]){var n=$(l).find("tr").eq(a-1);$(n).css("display","")}})}else if(r==2)$(this).parents(".tblPlain").find("table[id^='Q2RandomVertical_']").find("tbody").find(".Answer_Body").find("#S2rdoAnswer"+u[i]).css("display",""),$(this).parents(".tblPlain").find(".AnsChoices").find('input[id="S2rdoAnswer'+u[i]+'"]').prop("disabled",!0),$(this).parents(".tblPlain").find(".AnsChoices").find('label[for="S2rdoAnswer'+u[i]+'"]').css("opacity",.6);else{var l=$(this).parents(".tblPlain").find(".table_border"),c=0,a=0;$(l).find('.AnsChoices input[type="radio"]').each(function(){if(c=0,a++,c=$(this).attr("id").substring(11),c==u[i]){var n=$(l).find("tr").eq(a-1);$(n).css("display","none")}})}}})},200)}function fnCheckAllNone(n,t,i,r){var u,e,c,f,o,h,s;if(r=="3"){var p=document.getElementById("hids3AnswerId"+n).value,l=p.split(","),v=document.getElementById("hids3AllNoneId").value.split("#");for(c=0;c<v.length;c++)if(u=v[c].split("-"),e=u.length>2?3:2,l[0]==n&&u[0]==n)if(i=="0"){for(h=1;h<=t;h++)$("#S3chkAnswer"+l[h]).parent("div").addClass("ez-checked"),$("#S3chkAnswer"+l[h]).attr("checked",!0);u[e-1].split("_")[0]=="N"&&document.getElementById("S3chkAnswer"+u[e-1].split("_")[1]).checked==!0&&($("#S3chkAnswer"+u[e-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("checked",!1),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("clicked",!1))}else if(i=="1"){for(s=1;s<=t;s++)$("#S3chkAnswer"+l[s]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+l[s]).attr("checked",!1),$("#S3chkAnswer"+l[s]).attr("clicked",!1);u.length>2?u[e-2].split("_")[0]=="A"&&document.getElementById("S3chkAnswer"+u[e-2].split("_")[1]).checked==!0&&($("#S3chkAnswer"+u[e-2].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+u[e-2].split("_")[1]).attr("checked",!1),$("#S3chkAnswer"+u[e-2].split("_")[1]).attr("clicked",!1)):u[e-1].split("_")[0]=="A"&&document.getElementById("S3chkAnswer"+u[e-1].split("_")[1]).checked==!0&&($("#S3chkAnswer"+u[e-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("checked",!1),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("clicked",!1))}else i=="2"&&(u.length>2?(document.getElementById("S3chkAnswer"+u[e-2].split("_")[1]).checked==!0&&($("#S3chkAnswer"+u[e-2].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+u[e-2].split("_")[1]).attr("checked",!1),$("#S3chkAnswer"+u[e-2].split("_")[1]).attr("clicked",!1)),document.getElementById("S3chkAnswer"+u[e-1].split("_")[1]).checked==!0&&($("#S3chkAnswer"+u[e-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("checked",!1),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("clicked",!1))):document.getElementById("S3chkAnswer"+u[e-1].split("_")[1]).checked==!0&&($("#S3chkAnswer"+u[e-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("checked",!1),$("#S3chkAnswer"+u[e-1].split("_")[1]).attr("clicked",!1)))}else if(r=="6"){var w=document.getElementById("hids6AnswerId"+n).value,a=w.split(","),y=document.getElementById("hids6AllNoneId").value.split("#");for(c=0;c<y.length;c++)if(f=y[c].split("-"),o=f.length>2?3:2,a[0]==n&&f[0]==n)if(i=="0"){for(h=1;h<=t;h++)$("#S6chkAnswer"+a[h]).parent("div").addClass("ez-checked"),$("#S6chkAnswer"+a[h]).attr("checked",!0);f[o-1].split("_")[0]=="N"&&document.getElementById("S6chkAnswer"+f[o-1].split("_")[1]).checked==!0&&($("#S6chkAnswer"+f[o-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("checked",!1),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("clicked",!1))}else if(i=="1"){for(s=1;s<=t;s++)$("#S6chkAnswer"+a[s]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+a[s]).attr("checked",!1),$("#S6chkAnswer"+a[s]).attr("clicked",!1);f.length>2?f[o-2].split("_")[0]=="A"&&document.getElementById("S6chkAnswer"+f[o-2].split("_")[1]).checked==!0&&($("#S6chkAnswer"+f[o-2].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+f[o-2].split("_")[1]).attr("checked",!1),$("#S6chkAnswer"+f[o-2].split("_")[1]).attr("clicked",!1)):f[o-1].split("_")[0]=="A"&&document.getElementById("S6chkAnswer"+f[o-1].split("_")[1]).checked==!0&&($("#S6chkAnswer"+f[o-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("checked",!1),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("clicked",!1))}else i=="2"&&(f.length>2?(document.getElementById("S6chkAnswer"+f[o-2].split("_")[1]).checked==!0&&($("#S6chkAnswer"+f[o-2].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+f[o-2].split("_")[1]).attr("checked",!1),$("#S6chkAnswer"+f[o-2].split("_")[1]).attr("clicked",!1)),document.getElementById("S6chkAnswer"+f[o-1].split("_")[1]).checked==!0&&($("#S6chkAnswer"+f[o-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("checked",!1),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("clicked",!1))):document.getElementById("S6chkAnswer"+f[o-1].split("_")[1]).checked==!0&&($("#S6chkAnswer"+f[o-1].split("_")[1]).parent("div").removeClass("ez-checked"),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("checked",!1),$("#S6chkAnswer"+f[o-1].split("_")[1]).attr("clicked",!1)))}}function fnCheckAllNoneMatrix(n,t,i,r,u){for(var w=document.getElementById("hids14AnswerId"+n).value,a=w.split(","),v=document.getElementById("hids14AllNoneId").value.split("#"),y=document.getElementById("hid14AllNoneId").value.split("#"),o,e,h,f,s,c,p=y.length>2?3:2,l=0;l<v.length;l++)for(o=v[l].split("-"),e=y[l].split("-"),h=e.length>2?2:1,f=0;f<o.length;f++)if(a[0]==n&&o[0]==n&&r==o[f].split("_")[1])if(i=="0"&&o[f].split("_")[0]=="A1"){for(s=1;s<=t-h;s++)$("#S14chkAnswer-"+n+"-"+u+"-"+s).parent("div").addClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+s).attr("checked",!0);e.length>2?e[h].split("_")[0]=="N"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+t).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+t).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("clicked",!1)):e[h-1].split("_")[0]=="N"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+t).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+t).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("clicked",!1));e[f].split("_")[0]=="N"&&a[f]==e[f].split("_")[1]&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+s).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+s).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+s).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+s).attr("clicked",!1))}else if(i=="1"&&o[f].split("_")[0]=="N1"){for(c=1;c<=t-h;c++)$("#S14chkAnswer-"+n+"-"+u+"-"+c).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+c).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+c).attr("clicked",!1);e.length>2?e[h-1].split("_")[0]=="A"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1)):e[h-1].split("_")[0]=="A"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1))}else i=="3"&&(o[f].split("_")[0]=="A1"&&o[f].split("_")[1]==r?e.length>2?(document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1)),document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+t).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+t).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("clicked",!1))):document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+t).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+t).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("clicked",!1)):o[f].split("_")[0]=="N1"&&o[f].split("_")[1]==r&&(e.length>3?(document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1)),document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+t).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+t).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("clicked",!1))):document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+t).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+t).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+t).attr("clicked",!1))))}function fnCheckAllNoneMatrixForMobile(n,t,i,r,u){for(var b=document.getElementById("hids14AnswerId"+n).value,a=b.split(","),v=document.getElementById("hids14AllNoneId").value.split("#"),y=document.getElementById("hid14AllNoneId").value.split("#"),f,o,h,e,w,s,c,p=y.length>2?3:2,l=0;l<v.length;l++)for(f=v[l].split("-"),o=y[l].split("-"),h=o.length>2?2:1,e=0;e<f.length;e++)if(w=f[0].substr(0,1),q14Id=w=="0"?f[0].substr(1,f[0].length):f[0],a[0]==n&&q14Id==n&&r==f[e].split("_")[1])if(i=="0"&&f[e].split("_")[0]=="A1"){for(s=0;s<t-h;s++)$("#S14chkAnswer-"+n+"-"+u+"-"+s).parent("div").addClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+s).attr("checked",!0);o.length>2?o[h].split("_")[0]=="N"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1)):o[h-1].split("_")[0]=="N"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1));o[e].split("_")[0]=="N"&&a[e]==o[e].split("_")[1]&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+s)!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+s).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+s).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+s).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+s).attr("clicked",!1))}else if(i=="1"&&f[e].split("_")[0]=="N1"){for(c=0;c<t-h;c++)$("#S14chkAnswer-"+n+"-"+u+"-"+c).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+c).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+c).attr("clicked",!1);o.length>2?o[h-1].split("_")[0]=="A"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("clicked",!1)):o[h-1].split("_")[0]=="A"&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("clicked",!1))}else i=="3"&&(f[e].split("_")[0]=="A1"&&f[e].split("_")[1]==r?o.length>2?(document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("clicked",!1)),document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1))):document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1)):f[e].split("_")[0]=="N1"&&f[e].split("_")[1]==r&&(o.length>3?(document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-2)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-2)).attr("clicked",!1)),document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1))!=""&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1))):document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1))!=null&&document.getElementById("S14chkAnswer-"+n+"-"+u+"-"+(t-1)).checked==!0&&($("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).parent("div").removeClass("ez-checked"),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("checked",!1),$("#S14chkAnswer-"+n+"-"+u+"-"+(t-1)).attr("clicked",!1))))}function fnExceptionAlert(){location.hash="exceptionpoint";var n=document.getElementById("hidSaveExceptionMsg").value;return document.getElementById("ExceptionMsg").innerHTML=n,document.getElementById("ExceptionMsg").style.display="block",document.getElementById("hidSaveException").value="0",!1}function RandomizeAnswerOptions(n,t,r,u,f){var h,l,c,a;try{var e=document.getElementById(r),u=u==-1?0:u,f=GetEndIndex(e,n,t,f),o=[],s=null;let y=n==1&&$(e).closest("tr").next().hasClass("trOtherOption"),v=null;for(y&&(v=$(e).find("option:last").val()),i=f;i>=u;i--)h=GetChildElement(e,n,t,i,-1),o.push(h),h.parentNode.removeChild(h);if(o.shuffle(o),t=="HRS")for(l=1,s=[],i=f;i>=u;i--)c=GetChildElement(e,n,t,i,l),s.push(c),c.parentNode.removeChild(c);if(o.shuffle(s),t=="HRS")for(e=e.tBodies[0],i=0;i<o.length;i++)e.rows[0].appendChild(o[i]),e.rows[1].appendChild(s[i]);else{for(i=0;i<o.length;i++)(n=="13"||n=="14"||n=="15"||n=="16")&&(o[i].className=i%2==0?"MatrixRow1":"MatrixRow2"),n=="2"&&t=="V"?e.appendChild(o[i]):n=="5"&&t=="V"?e.tBodies[0].insertBefore(o[i],e.tBodies[0].firstChild):n=="5"&&t=="H"?e.insertBefore(o[i],e.firstChild):n=="3"&&t=="V"?e.tBodies[0].insertBefore(o[i],e.tBodies[0].firstChild):n=="3"&&t=="H"?e.insertBefore(o[i],e.firstChild):n=="2"&&t=="H"?e.appendChild(o[i]):n=="6"&&t=="H"?e.appendChild(o[i]):n=="1"?e.appendChild(o[i]):e.tBodies[0].appendChild(o[i]);n=="1"&&v!=""&&(a=$(e).find("option[value='"+v+"']"),$(e).append(a))}}catch(v){}}function RandomizeAnswerOptionsMobile(n,t,i,r,u){var c,e,l,h,a,f,v,y,p;try{var s=document.getElementById(i),r=r==-1?0:r,u=GetEndIndex(s,n,t,u),o=[],h=0;let b=n==1&&$(s).closest("tr").next().hasClass("trOtherOption"),w=null;for(b&&(w=$(s).find("option:last").val()),f=u;f>=r;f--)if(a=GetChildElement(s,n,t,f,-1),n=="13"||n=="14"||n=="15"||n=="16"||n=="9"){if(n=="13")for(c=$("table[id='"+i+"']"),e=c.find("tbody").children("tr[class^='MatrixRow']"),f=e.length-1;f>0;f--)h=Math.floor(Math.random()*(f+1)),l=e[f].innerHTML,$(e[f]).html(e[h].innerHTML),$(e[h]).html(l);else if(n=="14")for(c=$("table[id='"+i+"']"),e=c.find("tbody").children("tr[class^='MatrixRow']"),f=e.length-1;f>0;f--)h=Math.floor(Math.random()*(f+1)),l=e[f].innerHTML,$(e[f]).html(e[h].innerHTML),$(e[h]).html(l);else if(n=="15")for(c=$("table[id='"+i+"']"),e=c.find("tbody").children("tr[class^='MatrixRow']"),f=e.length-1;f>0;f--)h=Math.floor(Math.random()*(f+1)),l=e[f].innerHTML,$(e[f]).html(e[h].innerHTML),$(e[h]).html(l);else if(n=="16")for(c=$("table[id='"+i+"']"),e=c.find("tbody").children("tr[class^='MatrixRow']"),f=e.length-1;f>0;f--)h=Math.floor(Math.random()*(f+1)),l=e[f].innerHTML,$(e[f]).html(e[h].innerHTML),$(e[h]).html(l);else if(n=="9")for(c=$("table[id='"+i+"']"),e=c.find("tbody").children("tr[class^='AnsChoice']"),f=e.length-1;f>0;f--)h=Math.floor(Math.random()*(f+1)),l=e[f].innerHTML,$(e[f]).html(e[h].innerHTML),$(e[h]).html(l)}else a=GetChildElement(s,n,t,f,-1),o.push(a),a.parentNode.removeChild(a);if(o.shuffle(o),n=="1"||n=="2"||n=="3"||n=="5"||n=="6"||n=="12"||n=="17")for(f=0;f<o.length;f++)v=parseInt(Math.random()*o.length),y=o[v],o[v]=o[f],o[f]=y;for(f=0;f<o.length;f++)(n=="13"||n=="14"||n=="15"||n=="16")&&(o[f].className=f%2==0?"MatrixRow1":"MatrixRow2",s.tBodies[0].appendChild(o[f])),n=="2"&&t=="V"?s.appendChild(o[f]):n=="5"&&t=="V"?s.tBodies[0].insertBefore(o[f],s.tBodies[0].firstChild):n=="5"&&t=="H"?s.insertBefore(o[f],s.firstChild):n=="3"&&t=="V"?s.appendChild(o[f]):n=="3"&&t=="H"?s.insertBefore(o[f],s.firstChild):n=="2"&&t=="H"?s.appendChild(o[f]):n=="6"&&t=="H"?s.appendChild(o[f]):n=="1"?s.appendChild(o[f]):s.tBodies[0].appendChild(o[f]);console.log("DONE");n=="1"&&w!=""&&(p=$(s).find("option[value='"+w+"']"),$(s).append(p))}catch(w){}}function GetChildElement(n,t,i,r,u){var f=null;try{switch(t){case"1":f=n.options[r];break;case"2":case"5":switch(i){case"H":f=n.childNodes[r];break;case"V":f=n.rows[r];break;case"HRS":f=n.tBodies[0].rows[u==1?u:0].cells[r]}break;case"3":case"6":switch(i){case"H":f=n.childNodes[r];break;case"V":f=n.rows[r]}break;case"9":case"10":case"12":case"13":case"14":case"15":case"16":case"17":f=n.rows[r]}return f}catch(e){return f}}function GetEndIndex(n,t,i,r){try{switch(t){case"1":r=n.options.length;break;case"2":switch(i){case"H":r=n.childNodes.length;break;case"V":r=n.rows.length;break;case"HRS":r=n.tBodies[0].rows[0].cells.length}break;case"5":switch(i){case"H":r=r=="9"?n.childNodes.length-9:r=="8"?n.childNodes.length-8:n.childNodes.length;break;case"V":r=r=="2"?n.rows.length-2:n.rows.length;break;case"HRS":r=n.tBodies[0].rows[0].cells.length}break;case"3":switch(i){case"H":r=r=="2"?n.childNodes.length-2:n.childNodes.length;break;case"V":r=r=="2"?n.rows.length-2:n.rows.length}break;case"6":switch(i){case"H":r=document.getElementById("hidIsAllNoneCnt").value=="1"?n.childNodes.length-1:n.childNodes.length;break;case"V":r=document.getElementById("hidIsAllNoneCnt").value=="1"?n.rows.length-1:n.rows.length}break;case"9":case"10":case"12":case"13":case"14":case"15":case"16":case"17":r=n.rows.length}return r-1}catch(u){return r-1}}function openWin3(n){window.open("/ContactUs_EndUser.aspx?"+n,"Window","width=1000,height=700,scrollbars=yes")}function fnHideButtons(){$("#btnNext")!=null&&$("#btnNext").hide();$("#btnPrevious")!=null&&$("#btnPrevious").hide();$("#btnFinish")!=null&&$("#btnFinish").hide();$("#lblProcessing")!=null&&($("#lblProcessing").show(),$("#lblProcessing").html(Lang.l10.replace("'","'")));$("#SaveNResume")!=null&&$("#SaveNResume").attr("disabled",!0)}function fnChar(n,t,i){var f=n,u=t.value.length,r;return u<=n?i.value=f-u:(r=Lang.l41,r=r.replace("[X]",n),alert(r),setmaxch(t,n),i.value=n-t.value.length,t.focus()),!0}function fnCharIfOther(n,t,i,r,u){var o,e,f;return r!="-1"&&document.getElementById(u).value!=""&&document.getElementById(r).checked==!1&&(document.getElementById(r).checked=!0),o=n,e=t.value.length,e<=n?i.value=o-e:(f=Lang.l41,f=f.replace("[X]",n),alert(f),setmaxch(t,n),i.value=n-t.value.length,t.focus()),!0}function fnChar_new(n,t,i,r,u){var s,c,h,f,o,e;$("#"+u).is(":checked")==!1&&$("#"+u).click();s=n;c=r;try{h=document.getElementById(t).value;f=h.length}catch(l){f=t.value.length}return f<=n?(e=s-f,$("#"+i).html(r+e)):(o=Lang.l41,o=o.replace("[X]",n),alert(o),setmaxch(t,n),e=n-t.value.length,$("#"+i).html(r+e),t.focus()),!0}function fnIfOtherCheck(n){return $("#"+n).is(":checked")==!1&&$("#"+n).click(),!0}function fnCharIfOther1(n,t,i,r){var o,f,e,u;return $("#"+r).is(":checked")==!1&&$("#"+r).click(),o=n,f=t.value.length,f<=n?(u=o-f,$("#"+i).text(RemainingChar+u)):(e=Lang.l41,e=e.replace("[X]",n),alert(e),u=o-f,setmaxch(t,n),$("#"+i).html(RemainingChar+u),t.focus()),!0}function fnEnterKeyAdd(n){if(n.keyCode==13)return!1}function fnGeneric(opt,snr,sf){var tot,pg,hiddenQuestionValidate,i,r,x,QuestionType,nextTr,txtOtherInput,Qns1,manQid,Qns2,strIfOther,NoS2,i2,OtherRadio,i2a,Hid2,strhid02flag,intQueNum,strMax02,FetchInputArea02,TxtArea02,textAreaid,Txt2,txtcntdwn,FetchInputArea2,TxtArea2,Qns3,strIfOther03,i3,allNone,allNone1,ii3,allNone2,indexQ3,OtherCheck3,i3a,Hid3,strhid03flag,strMax03,FetchInputArea03,TxtArea03,FetchInputArea3,TxtArea3,Txt3,txtcntdwn3,Qns4,i4a,Hid4,Drp4,FetchInput4,i4,Qns5,FlagRdoCheck5,rdoFocusId5,NoS5,FetchInput5,i5,i5a,Hid5,NoS6,FetchInput6,i6,Q6allNone,Q6allNone1,ii6,Q6allNone2,indexQ6,limitcheckboxcount,checkcnt,getResult,getResultDetails,i6a,Hid6,strhid06flag,Qns7,FlagTxtAreaCheck7,NoS7,FetchInputArea7,TxtArea7,i07,hidMaxMin07,strhidMaxMin07,TxtArea07,Qns8,FlagTxtCheck8,FetchInput8,NoS8,i8,Txt8,i8a,Hid8,Qns9,FetchInput9,NoS9,i9a,Hid9,i9,Txt9,Qns10,i10a,Hid10,drpdwn107,anyValueFilled,i107,drp107,icnt107,i10,hidden10id,hidden10val,Qnsid10NoValid,drpdwn105,icnt105,FetchDrp105,icnt5,drpdwn106,icnt106,FetchDrp106,icnt6,Qnsid10InternationalZip,InternationalZipValue10,SpanNo10,SpanNoId10,Qns11,FetchInput11,NoS11,i11,hidMaxMin11,strhidMaxMin11,i11a,Qns12,FetchInput12,NoS12,i12a,Hid12,TotalItems,Txt12,i12,TextValue12,i12b,Rank12,i12c,j12,Qns13,FlagMandatory13,FlagRowChecked13,j13,i13,GroupName13,i13a,Hid13,strsub,Qns14,j14,CheckBoxes14,Validated14,i14,i14a,Hid14,strsub14,Qns15,FlagMandatory15,maxValue,customMessage,regex,regexString,Qns16,FlagMandatory16,FlagRowChecked16,i16a,Hid16,strsub16,Drp16a,DrpName16a,j16,i16,Drp16,DrpName16,Qns17,FetchInput17,i17a,Hid17,NumberValue17,flag,i17,Txt17,Qns19,Hid19,Qnsid19LN,LastName,Qnsid19Add1,Address1,Qnsid19Add2,Address2,Qnsid19City,City,i19a,Combo19,i19,Qnsid19State,State,state,Qnsid19Country,Country,country,email,lenUSZip,array,Qnsid19InternationalZip,InternationalZip,j19,QPrefId,intQueMsg;if(document.getElementById("hidSaveException").value=="1")return!1;var curDateTime=new Date,curHour=curDateTime.getHours(),curMin=curDateTime.getMinutes(),curSec=curDateTime.getSeconds(),curMSec=curDateTime.getMilliseconds(),curTime=curHour+":"+curMin+":"+curSec+":"+curMSec;document.getElementById("hidMandatory1").value=curTime;document.getElementById("hidJS").value="Yes";document.getElementById(Globals.hidInvalidUrlId).value="1";tot=document.getElementById("hidTotPg").value;pg=document.getElementById("hidPgNo").value;ChangePageOption(opt);var strFocus="",Mytable=document.getElementById("SurveyEndUser"),input=Mytable.getElementsByTagName("tr"),ErrMsg="",a=input.length,QnsIds=document.getElementById("hidQidNo").value,QnsNos=document.getElementById("hidQNo").value,limitcheckbox="";document.getElementById("limitcheckbox").value!=""&&(limitcheckbox=document.getElementById("limitcheckbox").value);var IndQnsNo=QnsNos.split("-"),IndQns=QnsIds.split(","),QnsLen=IndQns.length-1;for(snr==0&&document.getElementById(Globals.hidSNRId).value=="",hiddenQuestionValidate=!0,iq=0;iq<IndQns.length;iq++)for(i=0;i<a;i++)if(r=input[i].id,x=input[i],input[i].id!=""){QuestionType=r.substr(0,5);switch(QuestionType){case"S1Qns":if(Qns1="S1Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns1,"1"),hiddenQuestionValidate==!1)break;if(input[i].id==Qns1){var NoS1=IndQnsNo[iq],FetchDrp1=input[i].getElementsByTagName("SELECT"),Drp1=FetchDrp1[0].id,FetchHid1=input[i].getElementsByTagName("INPUT"),Hid1=FetchHid1[0].id,Hid2=FetchHid1[1];document.getElementById(Hid1).value==1&&snr==0&&(document.getElementById(Drp1).value==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS1+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Drp1).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");nextTr=$(FetchDrp1).closest("tr").next();nextTr.hasClass("trOtherOption")&&nextTr.is(":visible")&&nextTr.find("input[type='text'],textarea").val().length==0&&(txtOtherInput=nextTr.find("input[type='text'],textarea"),strIfOther=Hid2.value,ErrMsg=ErrMsg+"You've selected the \""+strIfOther+'" option for Question '+NoS2+", but need to provide an answer.\n",strFocus==""&&(intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",txtOtherInput.focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""?strFocus=IndQnsNo[iq]:document.getElementById(IndQnsNo[iq]).style.display="none",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther),strFocus=IndQnsNo[iq]));document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S24Qn":if(Qns1="S24Qns"+IndQns[iq],manQid="S24ManFile"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns1,"1"),hiddenQuestionValidate==!1)break;if(input[i].id==Qns1){var NoS1=IndQnsNo[iq],FetchFile=document.getElementById(manQid).value,FetchHid1=input[i].getElementsByTagName("INPUT"),Hid1=FetchHid1[0].id;document.getElementById(Hid1).value==1&&snr==0&&(FetchFile==null||FetchFile==0?(ErrMsg=ErrMsg+"Please upload a file.\n",intQueMsg=Lang.l90,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById("NoFiletext"+IndQns[iq]).innerHTML="("+Lang.l84+")",document.getElementById("MsgText"+IndQns[iq]).innerHTML="",document.getElementById("btnChoose"+IndQns[iq]).value=Lang.l82,fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S2Qns":if(Qns2="S2Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns2,"2"),hiddenQuestionValidate==!1)break;if(strIfOther="",NoS2=IndQnsNo[iq],input[i].id==Qns2){var FetchInput2=input[i].getElementsByTagName("INPUT"),FlagRdoCheck2=0,FlagOtherRdoCheck2=0,NoS2=IndQnsNo[iq],rdoFocusId="";for(i2=0;i2<FetchInput2.length;i2++)FetchInput2[i2].type=="radio"&&(rdoFocusId==""&&(rdoFocusId=FetchInput2[i2].id),FetchInput2[i2].checked==!0&&(FlagRdoCheck2=1),OtherRadio="S2txtrdo"+IndQns[iq],FetchInput2[i2].id==OtherRadio&&FetchInput2[i2].checked==!0&&(FlagOtherRdoCheck2=1));for(i2a=0;i2a<FetchInput2.length;i2a++)FetchInput2[i2a].type=="hidden"&&(Hid2=FetchInput2[i2a].id,strhid02flag=Hid2.substr(0,10),strhid02flag=="S2hidfield"&&document.getElementById(Hid2).value==1&&snr==0&&(FlagRdoCheck2==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS2+".\n",intQueNum=IndQnsNo[iq]*2-1,intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"),strhid02flag=="S02ifother"&&(strIfOther=document.getElementById(Hid2).value),strMax02=0,strhid02flag=="S2MaxValue"&&FlagOtherRdoCheck2==1&&(FetchInputArea02=input[i].getElementsByTagName("textarea"),strMax02=parseInt(document.getElementById(Hid2).value),FetchInputArea02.length>0&&(TxtArea02=FetchInputArea02[0].id,textAreaid="S2txtBox"+IndQns[iq],textAreaid==TxtArea02&&(strMax02=1e3),(document.getElementById(TxtArea02).value!=""||isWhitespace(document.getElementById(TxtArea02).value)==!1)&&(document.getElementById(TxtArea02).value.length>strMax02?(ErrMsg=ErrMsg+"The answer text can contain no more than "+strMax02+" characters for question "+NoS2+".\n",intQueMsg=Lang.l41,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",strMax02),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea02).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")))),FetchInput2[i2a].type=="text"&&FetchInput2[i2a].value!="EditAnswer"&&FetchInput2[i2a].id.indexOf("comments",0)==-1&&(Txt2=FetchInput2[i2a].id,txtcntdwn=Txt2.substr(0,8),FlagOtherRdoCheck2==1&&txtcntdwn!="S2CntDwn"&&(document.getElementById(Txt2).value==null||document.getElementById(Txt2).value==""||isWhitespace(document.getElementById(Txt2).value)==!0)&&(ErrMsg=ErrMsg+"You've selected the \""+strIfOther+'" option for Question '+NoS2+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt2).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""?strFocus=IndQnsNo[iq]:document.getElementById(IndQnsNo[iq]).style.display="none"));FetchInputArea2=input[i].getElementsByTagName("textarea");FetchInputArea2.length>0&&(TxtArea2=FetchInputArea2[0].id,FlagOtherRdoCheck2==1&&FetchInputArea2[0].id.indexOf("comments",0)==-1&&(document.getElementById(TxtArea2).value==""||isWhitespace(document.getElementById(TxtArea2).value)==!0)&&(ErrMsg=ErrMsg+"You've selected the \""+strIfOther+'" option for Question '+NoS2+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea2).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""?strFocus=IndQnsNo[iq]:document.getElementById(IndQnsNo[iq]).style.display="none"));document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S3Qns":if(Qns3="S3Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns3,"3"),hiddenQuestionValidate==!1)break;if(strIfOther03="",input[i].id==Qns3){var FetchInput3=input[i].getElementsByTagName("INPUT"),FlagChkCheck3=0,FlaghidCheck3=0,FlagOtherChkCheck3=0,checkboxcnt3=0,NoS3=IndQnsNo[iq],chkId="",isNoneChecked=0,q3Id=0;for(i3=0;i3<FetchInput3.length;i3++)if(FetchInput3[i3].type=="checkbox"){if(chkId==""&&(chkId=FetchInput3[i3].id),FetchInput3[i3].checked==!0)if(document.getElementById("hids3AllNoneId").value!="")if(allNone=document.getElementById("hids3AllNoneId").value,allNone1=allNone.split("#"),allNone1[0]!=""&&allNone1[0]!="0")for(ii3=0;ii3<allNone1.length;ii3++)allNone2=allNone1[ii3].split("-"),indexQ3=allNone2[0].substr(0,1),q3Id=indexQ3=="0"?allNone2[0].substr(1,allNone2[0].length):allNone2[0],q3Id==IndQns[iq]&&(allNone2.length>2?(FetchInput3[i3].id=="S3chkAnswer"+allNone2[1].split("_")[1]&&(checkboxcnt3=checkboxcnt3>0?checkboxcnt3-1:0),FetchInput3[i3].id=="S3chkAnswer"+allNone2[2].split("_")[1]?checkboxcnt3>0?checkboxcnt3=checkboxcnt3-1:(FlagChkCheck3=1,checkboxcnt3=1,isNoneChecked=1):(FlagChkCheck3=1,isNoneChecked==1?(checkboxcnt3=checkboxcnt3-1,checkboxcnt3=checkboxcnt3+1):checkboxcnt3=checkboxcnt3+1)):allNone2.length==2?FetchInput3[i3].id=="S3chkAnswer"+allNone2[1].split("_")[1]?allNone2[1].split("_")[0]=="A"?checkboxcnt3>0?(checkboxcnt3=checkboxcnt3-1,checkboxcnt3=checkboxcnt3+1):checkboxcnt3=0:allNone2[1].split("_")[0]=="N"&&(checkboxcnt3>0?checkboxcnt3=checkboxcnt3-1:(FlagChkCheck3=1,checkboxcnt3=1,isNoneChecked=1)):(FlagChkCheck3=1,isNoneChecked==1?(checkboxcnt3=checkboxcnt3-1,checkboxcnt3=checkboxcnt3+1):checkboxcnt3=checkboxcnt3+1):(FlagChkCheck3=1,checkboxcnt3=checkboxcnt3+1));else FlagChkCheck3=1,checkboxcnt3=checkboxcnt3+1;else FlagChkCheck3=1,checkboxcnt3=checkboxcnt3+1;OtherCheck3="S3txtchk"+IndQns[iq];FetchInput3[i3].id==OtherCheck3&&FetchInput3[i3].checked==!0&&(FlagOtherChkCheck3=1,FetchInput3[i3].type=="text"&&FetchInput3[i3].value!="EditAnswer"&&(isNoneChecked==1?(checkboxcnt3=checkboxcnt3-1,checkboxcnt3=checkboxcnt3+1):checkboxcnt3=checkboxcnt3+1))}if(FlagChkCheck3==1)if(checkboxcnt3==1&&isNoneChecked==1&&(checkboxcnt3=checkboxcnt3-1),limitcheckbox!=""&&opt!="previous"){for(limitcheckboxcount=limitcheckbox.split("#"),checkcnt=0;checkcnt<limitcheckboxcount.length;checkcnt++)if(limitcheckboxcount[checkcnt].split("-")[1]==IndQns[iq])if(getResult=validateLimitForCheckbox(limitcheckboxcount[checkcnt],IndQns[iq],3,checkboxcnt3),getResultDetails=getResult.split("-"),getResultDetails[0]==1)ErrMsg=ErrMsg+Lang.l76+".\n",intQueMsg=Lang.l76,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else if(getResultDetails[0]==2)ErrMsg=ErrMsg+Lang.l77+".\n",intQueMsg=Lang.l77,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]).replace("[Y]",getResultDetails[3]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else for(i3a=0;i3a<FetchInput3.length;i3a++)FetchInput3[i3a].type=="hidden"&&(Hid3=FetchInput3[i3a].id,strhid03flag=Hid3.substr(0,10),strhid03flag=="S3hidfield"&&(document.getElementById(Hid3).value==1&&snr==0?(FlaghidCheck3=1,FlagChkCheck3==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS3+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"):document.getElementById(IndQnsNo[iq]).style.display="none")),strhid03flag=="S03ifother"&&(strIfOther03=document.getElementById(Hid3).value),FetchInputArea3=input[i].getElementsByTagName("textarea"),FetchInputArea3.length>0&&(TxtArea3=FetchInputArea3[0].id,FlagOtherChkCheck3==1&&(document.getElementById(TxtArea3).value==""||isWhitespace(document.getElementById(TxtArea3).value)==!0?(ErrMsg=ErrMsg+"You've selected the \""+strIfOther03+'" option for Question '+NoS3+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther03),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea3).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")),FetchInput3[i3a].type=="text"&&FetchInput3[i3a].value!="EditAnswer"&&(Txt3=FetchInput3[i3a].id,txtcntdwn3=Txt3.substr(0,8),FlagOtherChkCheck3==1&&txtcntdwn3!="S3CntDwn"&&(document.getElementById(Txt3).value==""||isWhitespace(document.getElementById(Txt3).value)==!0?(ErrMsg=ErrMsg+"You've selected the \""+strIfOther03+'" option for Question '+NoS3+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther03),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt3).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"))}else for(i3a=0;i3a<FetchInput3.length;i3a++)FetchInput3[i3a].type=="hidden"&&(Hid3=FetchInput3[i3a].id,strhid03flag=Hid3.substr(0,10),strhid03flag=="S3hidfield"&&(document.getElementById(Hid3).value==1&&snr==0?(FlaghidCheck3=1,FlagChkCheck3==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS3+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"):document.getElementById(IndQnsNo[iq]).style.display="none")),strhid03flag=="S03ifother"&&(strIfOther03=document.getElementById(Hid3).value),FetchInputArea3=input[i].getElementsByTagName("textarea"),FetchInputArea3.length>0&&(TxtArea3=FetchInputArea3[0].id,FlagOtherChkCheck3==1&&(document.getElementById(TxtArea3).value==""||isWhitespace(document.getElementById(TxtArea3).value)==!0?(ErrMsg=ErrMsg+"You've selected the \""+strIfOther03+'" option for Question '+NoS3+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther03),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea3).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")),FetchInput3[i3a].type=="text"&&FetchInput3[i3a].value!="EditAnswer"&&(Txt3=FetchInput3[i3a].id,txtcntdwn3=Txt3.substr(0,8),FlagOtherChkCheck3==1&&txtcntdwn3!="S3CntDwn"&&(document.getElementById(Txt3).value==""||isWhitespace(document.getElementById(Txt3).value)==!0?(ErrMsg=ErrMsg+"You've selected the \""+strIfOther03+'" option for Question '+NoS3+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther03),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt3).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"));else for(i3a=0;i3a<FetchInput3.length;i3a++){if(FetchInput3[i3a].type=="hidden"){if(Hid3=FetchInput3[i3a].id,strhid03flag=Hid3.substr(0,10),strhid03flag=="S3hidfield")if(document.getElementById(Hid3).value==1&&snr==0)if(limitcheckbox!=""&&opt!="previous"&&snr==0)for(limitcheckboxcount=limitcheckbox.split("#"),checkcnt=0;checkcnt<limitcheckboxcount.length;checkcnt++)limitcheckboxcount[checkcnt].split("-")[1]==IndQns[iq]&&(getResult=validateLimitForCheckbox(limitcheckboxcount[checkcnt],IndQns[iq],3,checkboxcnt3),getResultDetails=getResult.split("-"),getResultDetails[0]==1?(ErrMsg=ErrMsg+Lang.l76+".\n",intQueMsg=Lang.l76,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):getResultDetails[0]==2?(ErrMsg=ErrMsg+Lang.l77+".\n",intQueMsg=Lang.l77,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]).replace("[Y]",getResultDetails[3]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):(FlaghidCheck3=1,FlagChkCheck3==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS3+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"));else FlaghidCheck3=1,FlagChkCheck3==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS3+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(chkId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none";else document.getElementById(IndQnsNo[iq]).style.display="none";if(strhid03flag=="S03ifother"&&(strIfOther03=document.getElementById(Hid3).value),strMax03=0,strhid03flag=="S3MaxValue"&&(FetchInputArea03=input[i].getElementsByTagName("textarea"),strMax03=parseInt(document.getElementById(Hid3).value),FetchInputArea03.length>0&&(TxtArea03=FetchInputArea03[0].id,(document.getElementById(TxtArea03).value!=""||isWhitespace(document.getElementById(TxtArea03).value)==!1)&&document.getElementById(TxtArea03).value.length>strMax03))){ErrMsg=ErrMsg+"The answer text can contain no more than "+strMax03+" characters for question "+NoS3+".\n";intQueMsg=Lang.l41;document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",strMax02);document.getElementById(IndQnsNo[iq]).style.display="block";document.getElementById(TxtArea03).focus();fnShowButtons();window.location.hash="pt"+IndQnsNo[iq];strFocus==""&&(strFocus=IndQnsNo[iq]);break}}FetchInputArea3=input[i].getElementsByTagName("textarea");FetchInputArea3.length>0&&(TxtArea3=FetchInputArea3[0].id,FlagOtherChkCheck3==1&&(document.getElementById(TxtArea3).value==""||isWhitespace(document.getElementById(TxtArea3).value)==!0?(ErrMsg=ErrMsg+"You've selected the \""+strIfOther03+'" option for Question '+NoS3+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther03),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea3).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"));FetchInput3[i3a].type=="text"&&FetchInput3[i3a].value!="EditAnswer"&&(Txt3=FetchInput3[i3a].id,txtcntdwn3=Txt3.substr(0,8),FlagOtherChkCheck3==1&&txtcntdwn3!="S3CntDwn"&&(document.getElementById(Txt3).value==""||isWhitespace(document.getElementById(Txt3).value)==!0?(ErrMsg=ErrMsg+"You've selected the \""+strIfOther03+'" option for Question '+NoS3+", but need to provide an answer.\n",intQueMsg=Lang.l42,intQueMsg=intQueMsg.replace("If other",strIfOther03),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt3).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"))}document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S4Qns":if(Qns4="S4Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns4,"4"),hiddenQuestionValidate==!1)break;if(input[i].id==Qns4){var FetchDrp4=input[i].getElementsByTagName("SELECT"),FlagDrpCheck4=1,FlagRdoCheck4=0,FlagHidCheck4=0,FlagHidRadioCheck4=0,NoS4=IndQnsNo[iq],rdoFocusId4="",FetchInput4a=input[i].getElementsByTagName("INPUT");for(i4a=0;i4a<FetchInput4a.length;i4a++)FetchInput4a[i4a].type=="hidden"&&(Hid4=FetchInput4a[i4a].id,document.getElementById(Hid4).value==1&&snr==0&&(FlagHidCheck4=1));for(FetchDrp4.length>0&&(Drp4=FetchDrp4[0].id,document.getElementById(Drp4).value==Lang.l24&&(FlagDrpCheck4=0,FlagHidCheck4==1&&(document.getElementById(Drp4).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])))),FetchInput4=input[i].getElementsByTagName("INPUT"),i4=0;i4<FetchInput4.length;i4++)FetchInput4[i4].type=="radio"&&(FlagHidRadioCheck4=1,rdoFocusId4==""&&(rdoFocusId4=FetchInput4[i4].id),FetchInput4[i4].checked==!0&&(FlagRdoCheck4=1));FlagHidCheck4==1&&(FlagHidRadioCheck4==1?FlagRdoCheck4==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS4+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none":FlagDrpCheck4==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS4+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S5Qns":if(Qns5="S5Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns5,"5"),hiddenQuestionValidate==!1)break;if(FlagRdoCheck5=0,rdoFocusId5="",input[i].id==Qns5){for(NoS5=IndQnsNo[iq],FetchInput5=input[i].getElementsByTagName("INPUT"),i5=0;i5<FetchInput5.length;i5++)FetchInput5[i5].type=="radio"&&(rdoFocusId5=FetchInput5[i5].id,FetchInput5[i5].checked==!0&&(FlagRdoCheck5=1));for(i5a=0;i5a<FetchInput5.length;i5a++)FetchInput5[i5a].type=="hidden"&&(Hid5=FetchInput5[i5a].id,document.getElementById(Hid5).value==1&&snr==0&&(FlagRdoCheck5==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS5+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId5).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"));document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S6Qns":var Qns6="S6Qns"+IndQns[iq],checkboxcnt6=0,isNoneChecked6=0;if(hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns6,"6"),hiddenQuestionValidate==!1)break;var FlagChkCheck6=0,rdoFocusId6="",q6Id="0";if(input[i].id==Qns6){for(NoS6=IndQnsNo[iq],FetchInput6=input[i].getElementsByTagName("INPUT"),i6=0;i6<FetchInput6.length;i6++)if(FetchInput6[i6].type=="checkbox"&&(rdoFocusId6=FetchInput6[i6].id,FetchInput6[i6].checked==!0))if(document.getElementById("hids6AllNoneId").value!="")if(Q6allNone=document.getElementById("hids6AllNoneId").value,Q6allNone1=Q6allNone.split("#"),Q6allNone1[0]!=""&&Q6allNone1[0]!="0")for(ii6=0;ii6<Q6allNone1.length;ii6++)Q6allNone2=Q6allNone1[ii6].split("-"),indexQ6=Q6allNone2[0].substr(0,1),q6Id=indexQ6=="0"?Q6allNone2[0].substr(1,Q6allNone2[0].length):Q6allNone2[0],q6Id==IndQns[iq]&&(Q6allNone2.length>2?(FetchInput6[i6].id=="S6chkAnswer"+Q6allNone2[1].split("_")[1]&&(checkboxcnt6=checkboxcnt6>0?checkboxcnt6-1:0),FetchInput6[i6].id=="S6chkAnswer"+Q6allNone2[2].split("_")[1]?checkboxcnt6>0?checkboxcnt6=checkboxcnt6-1:(FlagChkCheck6=1,checkboxcnt6=1,isNoneChecked6=1):(FlagChkCheck6=1,isNoneChecked6==1?(checkboxcnt6=checkboxcnt6-1,checkboxcnt6=checkboxcnt6+1):checkboxcnt6=checkboxcnt6+1)):Q6allNone2.length==2?FetchInput6[i6].id=="S6chkAnswer"+Q6allNone2[1].split("_")[1]?Q6allNone2[1].split("_")[0]=="A"?checkboxcnt6>0?(checkboxcnt6=checkboxcnt6-1,checkboxcnt6=checkboxcnt6+1):checkboxcnt6=0:Q6allNone2[1].split("_")[0]=="N"&&(checkboxcnt6>0?checkboxcnt6=checkboxcnt6-1:(FlagChkCheck6=1,checkboxcnt6=1,isNoneChecked6=1)):(FlagChkCheck6=1,isNoneChecked6==1?(checkboxcnt6=checkboxcnt6-1,checkboxcnt6=checkboxcnt6+1):checkboxcnt6=checkboxcnt6+1):(FlagChkCheck6=1,checkboxcnt6=checkboxcnt6+1));else FlagChkCheck6=1,checkboxcnt6=checkboxcnt6+1;else FlagChkCheck6=1,checkboxcnt6=checkboxcnt6+1;if(FlagChkCheck6==1)if(checkboxcnt6==1&&isNoneChecked6==1&&(checkboxcnt6=checkboxcnt6-1),limitcheckbox!=""&&opt!="previous"){for(limitcheckboxcount=limitcheckbox.split("#"),checkcnt=0;checkcnt<limitcheckboxcount.length;checkcnt++)if(limitcheckboxcount[checkcnt].split("-")[1]==IndQns[iq])if(getResult=validateLimitForCheckbox(limitcheckboxcount[checkcnt],IndQns[iq],6,checkboxcnt6),getResultDetails=getResult.split("-"),getResultDetails[0]==1)ErrMsg=ErrMsg+Lang.l76+".\n",intQueMsg=Lang.l76,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else if(getResultDetails[0]==2)ErrMsg=ErrMsg+Lang.l77+".\n",intQueMsg=Lang.l77,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]).replace("[Y]",getResultDetails[3]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else for(i6a=0;i6a<FetchInput6.length;i6a++)FetchInput6[i6a].type=="hidden"&&(Hid6=FetchInput6[i6a].id,strhid06flag=Hid6.substr(0,10),strhid06flag=="S6hidfield"&&(document.getElementById(Hid6).value==1&&snr==0?FlagChkCheck6==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS6+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none":document.getElementById(IndQnsNo[iq]).style.display="none"))}else for(i6a=0;i6a<FetchInput6.length;i6a++)FetchInput6[i6a].type=="hidden"&&(Hid6=FetchInput6[i6a].id,strhid06flag=Hid6.substr(0,10),strhid06flag=="S6hidfield"&&(document.getElementById(Hid6).value==1&&snr==0?FlagChkCheck6==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS6+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none":document.getElementById(IndQnsNo[iq]).style.display="none"));else for(i6a=0;i6a<FetchInput6.length;i6a++)if(FetchInput6[i6a].type=="hidden"&&(Hid6=FetchInput6[i6a].id,strhid06flag=Hid6.substr(0,10),strhid06flag=="S6hidfield"))if(document.getElementById(Hid6).value==1&&snr==0)if(limitcheckbox!=""&&opt!="previous"){for(limitcheckboxcount=limitcheckbox.split("#"),checkcnt=0;checkcnt<limitcheckboxcount.length;checkcnt++)if(limitcheckboxcount[checkcnt].split("-")[1]==IndQns[iq])if(getResult=validateLimitForCheckbox(limitcheckboxcount[checkcnt],IndQns[iq],6,checkboxcnt6),getResultDetails=getResult.split("-"),getResultDetails[0]==1)ErrMsg=ErrMsg+Lang.l76+".\n",intQueMsg=Lang.l76,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else if(getResultDetails[0]==2)ErrMsg=ErrMsg+Lang.l77+".\n",intQueMsg=Lang.l77,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",getResultDetails[2]).replace("[Y]",getResultDetails[3]),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else for(i6a=0;i6a<FetchInput6.length;i6a++)FetchInput6[i6a].type=="hidden"&&(Hid6=FetchInput6[i6a].id,strhid06flag=Hid6.substr(0,10),strhid06flag=="S6hidfield"&&(document.getElementById(Hid6).value==1&&snr==0?FlagChkCheck6==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS6+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none":document.getElementById(IndQnsNo[iq]).style.display="none"))}else FlagChkCheck6==0?(ErrMsg=ErrMsg+"Please select at least one answer option for Question "+NoS6+".\n",intQueMsg=Lang.l20,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rdoFocusId6).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none";else document.getElementById(IndQnsNo[iq]).style.display="none";document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S7Qns":if(Qns7="S7Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns7,"7"),hiddenQuestionValidate==!1)break;if(FlagTxtAreaCheck7=1,input[i].id==Qns7){NoS7=IndQnsNo[iq];FetchInputArea7=input[i].getElementsByTagName("textarea");FetchInputArea7.length>0&&(TxtArea7=FetchInputArea7[0].id,(document.getElementById(TxtArea7).value==""||isWhitespace(document.getElementById(TxtArea7).value)==!0)&&(FlagTxtAreaCheck7=0));var FetchInput07=input[i].getElementsByTagName("INPUT"),NoS07=IndQnsNo[iq],strMax07=0;for(i07=0;i07<FetchInput07.length;i07++)FetchInput07[i07].type=="hidden"&&(hidMaxMin07=FetchInput07[i07].id,strhidMaxMin07=hidMaxMin07.substr(0,11),strhidMaxMin07=="S07hidfield"&&document.getElementById(hidMaxMin07).value==1&&(FlagTxtAreaCheck7==0&&snr==0?(ErrMsg=ErrMsg+"Please enter an answer for Question "+NoS7+".\n",intQueMsg=Lang.l21,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea7).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"),strhidMaxMin07=="S07MaxValue"&&(strMax07=parseInt(document.getElementById(hidMaxMin07).value),TxtArea07=FetchInputArea7[0].id,(document.getElementById(TxtArea07).value!=""||isWhitespace(document.getElementById(TxtArea07).value)==!1)&&(document.getElementById(TxtArea07).value.length>strMax07?(ErrMsg=ErrMsg+"The answer text can contain no more than "+strMax07+" characters for question "+NoS7+".\n",intQueMsg=Lang.l41,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",strMax02),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(TxtArea7).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):FlagTxtAreaCheck7!=0&&(document.getElementById(IndQnsNo[iq]).style.display="none"))));document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S8Qns":if(Qns8="S8Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns8,"8"),hiddenQuestionValidate==!1)break;if(FlagTxtCheck8=1,input[i].id==Qns8){for(FetchInput8=input[i].getElementsByTagName("INPUT"),NoS8=IndQnsNo[iq],i8=0;i8<FetchInput8.length;i8++)FetchInput8[i8].type=="text"&&(Txt8=FetchInput8[i8].id,(document.getElementById(Txt8).value==""||isWhitespace(document.getElementById(Txt8).value)==!0)&&(FlagTxtCheck8=0));for(i8a=0;i8a<FetchInput8.length;i8a++)FetchInput8[i8a].type=="hidden"&&(Hid8=FetchInput8[i8a].id,document.getElementById(Hid8).value==1&&(FlagTxtCheck8==0&&snr==0?(ErrMsg=ErrMsg+"Please enter an answer for Question "+NoS8+".\n",intQueMsg=Lang.l21,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt8).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"));document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S9Qns":if(Qns9="S9Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns9,"9"),hiddenQuestionValidate==!1)break;var FlagTxtCheck9=0,FlagHidCheck9=0,TotalTxt9=0,strCompleteQuest9="",isCompleteQuest9=0;if(input[i].id==Qns9){for(FetchInput9=input[i].getElementsByTagName("INPUT"),NoS9=IndQnsNo[iq],i9a=0;i9a<FetchInput9.length;i9a++)FetchInput9[i9a].type=="hidden"&&(Hid9=FetchInput9[i9a].id,document.getElementById(Hid9).value==1&&snr==0&&(FlagHidCheck9=1));for(i9=0;i9<FetchInput9.length;i9++)FetchInput9[i9].type=="text"&&FetchInput9[i9].value!="EditAnswer"&&(Txt9=FetchInput9[i9].id,TotalTxt9=parseInt(TotalTxt9)+1,(document.getElementById(Txt9).value==""||isWhitespace(document.getElementById(Txt9).value)==!0)&&(FlagTxtCheck9=parseInt(FlagTxtCheck9)+1,isCompleteQuest9==0&&(strCompleteQuest9=FetchInput9[i9].id,isCompleteQuest9=1),FlagHidCheck9==1&&strFocus==""&&(strFocus=IndQnsNo[iq])));FlagHidCheck9==1&&(FlagTxtCheck9<=TotalTxt9&&FlagTxtCheck9!=0?(ErrMsg=ErrMsg+"Please complete answering Question "+NoS9+".\n",intQueMsg=Lang.l22,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(strCompleteQuest9).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq]):document.getElementById(IndQnsNo[iq]).style.display="none");document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S10Qn":if(Qns10="S10Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns10,"10"),hiddenQuestionValidate==!1)break;var FlagTxtCheck10=1,FlagMandatory10=0,LeapYear105=0,LeapYear106=0,FillFlag10=0,strCompleteQuest10="",isCompleteQuestdrp10="",strCompleteQuestdrp10="",ErrMsg10="",isCompleteQuest10=0;if(input[i].id==Qns10){var FetchInput10=input[i].getElementsByTagName("INPUT"),FetchInputSpan10=input[i].getElementsByTagName("span"),NoS10=IndQnsNo[iq],TotaltxtBox10=0,EmptyFlag10=0,EmptyFlagdrp10=0;for(i10a=0;i10a<FetchInput10.length;i10a++)FetchInput10[i10a].type=="hidden"&&(Hid10=FetchInput10[i10a].id,document.getElementById(Hid10).value==1&&snr==0&&(FlagMandatory10=1));if(drpdwn107=input[i].getElementsByTagName("SELECT"),anyValueFilled=0,drpdwn107.length>0)for(i107=0;i107<drpdwn107.length;i107++)drp107=drpdwn107[i107].id,document.getElementById(drp107).value!="--"&&(anyValueFilled=1);if(drpdwn107.length>0)for(icnt107=0;icnt107<drpdwn107.length;icnt107++){var drp=drpdwn107[icnt107].id,drpmin=drp.substr(0,10),drpampm=drp.substr(0,11),drphr=drp.substr(0,10);(drpmin=="S10drpmin7"||drpampm=="S10drpampm7"||drphr=="S10drphrs7")&&(FlagMandatory10==1&&document.getElementById(drp).value=="--"&&(FillFlag10=1,strFocus==""&&(strFocus=IndQnsNo[iq])),anyValueFilled!=0&&document.getElementById(drp).value=="--"&&FlagMandatory10==1&&(FillFlag10=1,strFocus==""&&(strFocus=IndQnsNo[iq])))}for(i10=0;i10<FetchInput10.length;i10++)if(FetchInput10[i10].type=="hidden"&&(hidden10id=FetchInput10[i10].id,hidden10val=FetchInput10[i10].value),FetchInput10[i10].type=="text"&&FetchInput10[i10].value!="EditAnswer"){TotaltxtBox10=TotaltxtBox10+1;var Txt10=FetchInput10[i10].id,lbl10="",spanid=FetchInputSpan10[i10-1].getElementsByClassName("AnsChoices");spanid.length>0&&(lbl10=spanid[0].id);Qnsid10NoValid=Txt10.substr(0,18);Qnsid10NoValid=="S10txtNoValidation"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0)&&(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,window.location.hash="pt"+IndQnsNo[iq],document.getElementById(strCompleteQuest10).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1);var Qnsid10Text=Txt10.substr(0,10),TextValue10=document.getElementById(Txt10).value,TextLbl10="";Qnsid10Text=="S10txtText"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0?(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(document.getElementById(strCompleteQuest10).focus(),setFocus("pt"+IndQnsNo[iq]),FillFlag10=1,strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1):hasNumbers(TextValue10)==!0?(Qnsid10Text=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],TextLbl10=SpanNoId10[3],intQueMsg=Lang.l43,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",TextLbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");var Qnsid10Number=Txt10.substr(0,12),NumberValue10=document.getElementById(Txt10).value,NoLbl10="";Qnsid10Number=="S10txtNumber"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0?(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,setFocus("pt"+IndQnsNo[iq]),document.getElementById(strCompleteQuest10).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1):fnIsAlphaNumericDecimalNegative(NumberValue10)==!1?(Qnsid10Number=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],NoLbl10=SpanNoId10[3],intQueMsg=Lang.l44,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",NoLbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(Txt10).value=="-"||document.getElementById(Txt10).value=="."?(SpanNo10=lbl10,SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],NoLbl10=SpanNoId10[3],intQueMsg=Lang.l44,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",NoLbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");var Qnsid10Email=Txt10.substr(0,11),EmailValue10=document.getElementById(Txt10).value,Emaillbl10="";Qnsid10Email=="S10txtEmail"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0?(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,document.getElementById(strCompleteQuest10).focus(),setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1):isValidEmail_New(EmailValue10)==!1?(Qnsid10Email=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],Emaillbl10=SpanNoId10[3],intQueMsg=Lang.l45,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",Emaillbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");var Qnsid10DateandTime=Txt10.substr(0,11),DateandTimeValue10=document.getElementById(Txt10).value,DateandTimelbl10="";if(Qnsid10DateandTime=="S10txtYear5"){if(LeapYear105=parseInt(document.getElementById(Txt10).value),(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0)&&(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,document.getElementById(strCompleteQuest10).focus(),setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1),drpdwn105=input[i].getElementsByTagName("SELECT"),drpdwn105.length>0)for(icnt105=0;icnt105<drpdwn105.length;icnt105++){var drp=drpdwn105[icnt105].id,drpmnth=drp.substr(0,12),drpday=drp.substr(0,10),drphr=drp.substr(0,10),drpmin=drp.substr(0,10),drpampm=drp.substr(0,11);(drpmnth=="S10drpMonth5"||drpday=="S10drpday5"||drphr=="S10drphrs5"||drpmin=="S10drpmin5"||drpampm=="S10drpampm5")&&(FlagMandatory10==1&&document.getElementById(drp).value=="--"&&(FillFlag10=1,document.getElementById(drp).focus(),setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),document.getElementById(Txt10).value!=""&&document.getElementById(drp).value=="--"&&(isCompleteQuestdrp10==0&&(strCompleteQuestdrp10=drp,isCompleteQuestdrp10=1),EmptyFlagdrp10=parseInt(EmptyFlagdrp10)+1))}if(parseInt(document.getElementById(Txt10).value.length)==4?fnIsNumericInteger(DateandTimeValue10)==!1&&(Qnsid10DateandTime=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],DateandTimelbl10=SpanNoId10[3],intQueMsg=Lang.l46,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",DateandTimelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none",parseInt(document.getElementById(Txt10).value.length)!=4&&document.getElementById(Txt10).value.length>0?(Qnsid10DateandTime=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],DateandTimelbl10=SpanNoId10[3],intQueMsg=Lang.l46,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",DateandTimelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none",FetchDrp105=input[i].getElementsByTagName("SELECT"),FetchDrp105.length>0){var Y5="",M5="",D5="",strF="";for(icnt5=0;icnt5<FetchDrp105.length;icnt5++){var Drp105=FetchDrp105[icnt5].id,txtYrNo=Txt10.substr(11),DrpMonth105=Drp105.substr(0,12),DrpDay105=Drp105.substr(0,10),drpdayNo=Drp105.substr(10),drpMnthNo=Drp105.substr(12);DrpMonth105=="S10drpMonth5"&&txtYrNo==drpMnthNo&&(M5=document.getElementById(Drp105).value);DrpDay105=="S10drpday5"&&txtYrNo==drpdayNo&&(D5=document.getElementById(Drp105).value,strF=Drp105)}isNaN(document.getElementById(Txt10).value)==!1&&fnIsNumericInteger(document.getElementById(Txt10).value)==!0&&(Y5=document.getElementById(Txt10).value);Y5!=""&&M5=="02"&&(Y5%4!=0&&(D5=="31"||D5=="30"||D5=="29")?(intQueMsg=Lang.l47,ErrMsg10=ErrMsg10+intQueMsg+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):Y5%4==0&&(D5=="31"||D5=="30")?(intQueMsg=Lang.l48,ErrMsg10=ErrMsg10+intQueMsg.replace("[Y]",Y5)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")}}var Qnsid10Date=Txt10.substr(0,11),DateValue10=document.getElementById(Txt10).value,Datelbl10="";if(Qnsid10Date=="S10txtYear6"){if(LeapYear106=parseInt(document.getElementById(Txt10).value),drpdwn106=input[i].getElementsByTagName("SELECT"),drpdwn106.length>0)for(icnt106=0;icnt106<drpdwn106.length;icnt106++){var drp=drpdwn106[icnt106].id,drpmnth=drp.substr(0,12),drpday=drp.substr(0,10);(drpmnth=="S10drpMonth6"||drpday=="S10drpday6")&&(FlagMandatory10==1&&document.getElementById(drp).value=="--"&&(document.getElementById(drp).focus(),FillFlag10=1,setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),document.getElementById(Txt10).value!=""&&document.getElementById(drp).value=="--"&&(isCompleteQuestdrp10==0&&(strCompleteQuestdrp10=drp,isCompleteQuestdrp10=1),EmptyFlagdrp10=parseInt(EmptyFlagdrp10)+1))}if((document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0)&&(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(document.getElementById(strCompleteQuest10).focus(),FillFlag10=1,setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1),document.getElementById(Txt10).value.length==4&&(fnIsNumericInteger(DateValue10)==!1?(Qnsid10Date=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],Datelbl10=SpanNoId10[3],intQueMsg=Lang.l46,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",Datelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"),document.getElementById(Txt10).value.length!=4&&document.getElementById(Txt10).value.length>0?(Qnsid10Date=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],Datelbl10=SpanNoId10[3],intQueMsg=Lang.l46,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",Datelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none",FetchDrp106=input[i].getElementsByTagName("SELECT"),FetchDrp106.length>0){var Y6="",M6="",D6="",strF="";for(icnt6=0;icnt6<FetchDrp106.length;icnt6++){var Drp106=FetchDrp106[icnt6].id,txtYrNo=Txt10.substr(11),DrpMonth106=Drp106.substr(0,12),DrpDay106=Drp106.substr(0,10),drpdayNo=Drp106.substr(10),drpMnthNo=Drp106.substr(12);DrpMonth106=="S10drpMonth6"&&txtYrNo==drpMnthNo&&(M6=document.getElementById(Drp106).value);DrpDay106=="S10drpday6"&&txtYrNo==drpdayNo&&(D6=document.getElementById(Drp106).value,strF=Drp106)}isNaN(document.getElementById(Txt10).value)==!1&&fnIsNumericInteger(document.getElementById(Txt10).value)==!0&&(Y6=document.getElementById(Txt10).value);Y6!=""&&M6=="02"&&(Y6%4!=0&&(D6=="31"||D6=="30"||D6=="29")?(intQueMsg=Lang.l47,ErrMsg10=ErrMsg10+intQueMsg+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):Y6%4==0&&(D6=="31"||D6=="30")?(intQueMsg=Lang.l48,ErrMsg10=ErrMsg10+intQueMsg.replace("[Y]",Y6)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")}}var Qnsid10USZip=Txt10.substr(0,11),USZipValue10=document.getElementById(Txt10).value,USZiplbl10="";Qnsid10USZip=="S10txtUSZip"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0?(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,document.getElementById(strCompleteQuest10).focus(),setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1):document.getElementById(Txt10).value.length<5&&document.getElementById(Txt10).value.length>0?(Qnsid10USZip=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],USZiplbl10=SpanNoId10[3],intQueMsg=Lang.l49,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",USZiplbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(Txt10).value.length==5?fnIsNumericInteger(USZipValue10)==!1&&(Qnsid10USZip=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],USZiplbl10=SpanNoId10[3],intQueMsg=Lang.l49,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",USZiplbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):$("#"+Txt10).val().length>5&&sf==1?(array=$("#"+Txt10).val().split(","),$.each(array,function(n){var i,t,r;if(fnIsNumericInteger(array[n])&&array[n].length==5)document.getElementById(IndQnsNo[iq]).style.display="none";else return Qnsid10USZip=="S10"+hidden10id&&(i=hidden10val),t=i.split("~$^"),i="",i=t[0]+"~$^"+t[1]+"~$^"+t[2],USZiplbl10=t[3],r=Lang.l49,ErrMsg10=ErrMsg10+r.replace("[X]",USZiplbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq]),!1})):document.getElementById(IndQnsNo[iq]).style.display="none");Qnsid10InternationalZip=Txt10.substr(0,22);InternationalZipValue10=document.getElementById(Txt10).value;Qnsid10InternationalZip=="S10txtInternationalZip"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0)&&(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,setFocus("pt"+IndQnsNo[iq]),document.getElementById(strCompleteQuest10).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1);var Qnsid10USPhone=Txt10.substr(0,13),USPhoneValue10=document.getElementById(Txt10).value,USPhonelbl10="";Qnsid10USPhone=="S10txtUSPhone"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0?(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,document.getElementById(strCompleteQuest10).focus(),setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1):$("#"+Txt10).val().length>12&&sf==1?(array=$("#"+Txt10).val().split(","),$.each(array,function(n){var i,t,r;if(IsUSPhone(array[n])&&array[n].length>9)document.getElementById(IndQnsNo[iq]).style.display="none";else return Qnsid10USPhone=="S10"+hidden10id&&(i=hidden10val),t=i.split("~$^"),i="",i=t[0]+"~$^"+t[1]+"~$^"+t[2],USPhonelbl10=t[3],r=Lang.l50,ErrMsg10=ErrMsg10+r.replace("[X]",USPhonelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq]),!1})):IsUSPhone(USPhoneValue10)==!1?(Qnsid10USPhone=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],USPhonelbl10=SpanNoId10[3],intQueMsg=Lang.l50,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",USPhonelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");var Qnsid10InternationalPhone=Txt10.substr(0,24),InternationalPhoneValue10=document.getElementById(Txt10).value,InternationalPhonelbl10="";Qnsid10InternationalPhone=="S10txtInternationalPhone"&&(document.getElementById(Txt10).value==""||isWhitespace(document.getElementById(Txt10).value)==!0?(isCompleteQuest10==0&&(strCompleteQuest10=Txt10,isCompleteQuest10=1),FlagMandatory10==1&&(FillFlag10=1,document.getElementById(strCompleteQuest10).focus(),setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])),EmptyFlag10=parseInt(EmptyFlag10)+1):IsInternationalPhoneSF(InternationalPhoneValue10)==!1&&sf==1?(Qnsid10InternationalPhone=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],InternationalPhonelbl10=SpanNoId10[3],intQueMsg=Lang.l51,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",InternationalPhonelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):IsInternationalPhone(InternationalPhoneValue10)==!1?(Qnsid10InternationalPhone=="S10"+hidden10id&&(SpanNo10=hidden10val),SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],InternationalPhonelbl10=SpanNoId10[3],intQueMsg=Lang.l51,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",InternationalPhonelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(Txt10).value.length<5?(SpanNo10=lbl10,SpanNoId10=SpanNo10.split("~$^"),SpanNo10="",SpanNo10=SpanNoId10[0]+"~$^"+SpanNoId10[1]+"~$^"+SpanNoId10[2],InternationalPhonelbl10=SpanNoId10[3],intQueMsg=Lang.l52,ErrMsg10=ErrMsg10+intQueMsg.replace("[X]",InternationalPhonelbl10)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block",setFocus("pt"+IndQnsNo[iq]),strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")}FillFlag10==1&&(ErrMsg10==null||ErrMsg10=="")&&(intQueMsg=Lang.l22,ErrMsg10=ErrMsg10+intQueMsg,document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block");(ErrMsg10!=null||ErrMsg10!="")&&(document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg10,document.getElementById(IndQnsNo[iq]).style.display="block");var Y5="",M5="",D5="",Y6="",M6="",D6="",strfocus5="",strfocus6="";ErrMsg=ErrMsg+ErrMsg10;document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S11Qn":if(Qns11="S11Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns11,"11"),hiddenQuestionValidate==!1)break;var FlagMandatory11=0,StrMin11=0,StrMax11=0,FlagMax11=0,FlagMin11=0;if(input[i].id==Qns11){for(FetchInput11=input[i].getElementsByTagName("INPUT"),NoS11=IndQnsNo[iq],i11=0;i11<FetchInput11.length;i11++)FetchInput11[i11].type=="hidden"&&(hidMaxMin11=FetchInput11[i11].id,strhidMaxMin11=hidMaxMin11.substr(0,10),strhidMaxMin11=="S11-hidMin"&&(StrMax11=parseFloat(document.getElementById(hidMaxMin11).value)),strhidMaxMin11=="S11-hidMax"&&(StrMin11=parseFloat(document.getElementById(hidMaxMin11).value)),strhidMaxMin11=="S11hidfiel"&&document.getElementById(hidMaxMin11).value==1&&snr==0&&(FlagMandatory11=1));for(i11a=0;i11a<FetchInput11.length;i11a++)if(FetchInput11[i11a].type=="text"){var Txt11=FetchInput11[i11a].id,TxtValue11=parseFloat(document.getElementById(Txt11).value),TxtCheckValue11=document.getElementById(Txt11).value;document.getElementById(Txt11).value==""||isWhitespace(document.getElementById(Txt11).value)==!0?FlagMandatory11==1?(ErrMsg=ErrMsg+"Please complete answering Question "+NoS11+".\n",intQueMsg=Lang.l22,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none":fnIsAlphaNumericDecimalNegative(TxtCheckValue11)==!1?(ErrMsg=ErrMsg+"Please enter a value between "+StrMin11+" and "+StrMax11+" for question "+NoS11+".\n",intQueMsg=Lang.l53,intQueMsg=intQueMsg.replace("[X]",StrMin11),intQueMsg=intQueMsg.replace("[Y]",StrMax11),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):(parseFloat(StrMax11)>=0||parseFloat(StrMax11)<=0)&&(parseFloat(StrMin11)>=0||parseFloat(StrMin11)<=0)?(fnCheck(TxtCheckValue11)==!1?(ErrMsg=ErrMsg+"Please enter a value between "+StrMin11+" and "+StrMax11+" for question "+NoS11+".\n",intQueMsg=Lang.l54,intQueMsg=intQueMsg.replace("[X]",StrMin11),intQueMsg=intQueMsg.replace("[Y]",StrMax11),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none",parseFloat(TxtValue11)>parseFloat(StrMax11)||parseFloat(TxtValue11)<parseFloat(StrMin11)?(ErrMsg=ErrMsg+"Please enter a value between "+StrMin11+" and "+StrMax11+" for question "+NoS11+".\n",intQueMsg=Lang.l54,intQueMsg=intQueMsg.replace("[X]",StrMin11),intQueMsg=intQueMsg.replace("[Y]",StrMax11),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"):(parseFloat(StrMax11)>=0||parseFloat(StrMax11)<=0)&&isNaN(StrMin11)?(fnCheck(TxtCheckValue11)==!1?(ErrMsg=ErrMsg+"Please enter a value between "+StrMin11+" and "+StrMax11+" for question "+NoS11+".\n",intQueMsg=Lang.l54,intQueMsg=intQueMsg.replace("[X]",StrMin11),intQueMsg=intQueMsg.replace("[Y]",StrMax11),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none",parseFloat(TxtValue11)>parseFloat(StrMax11)?(ErrMsg=ErrMsg+"Please enter a value that no larger than "+StrMax11+" for question "+NoS11+".\n",intQueMsg=Lang.l56,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",StrMax11),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt11).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"):(parseFloat(StrMin11)>=0||parseFloat(StrMin11)<=0)&&isNaN(StrMax11)?(fnCheck(TxtCheckValue11)==!1?(ErrMsg=ErrMsg+"Please enter a value between "+StrMin11+" and "+StrMax11+" for question "+NoS11+".\n",intQueMsg=Lang.l54,intQueMsg=intQueMsg.replace("[X]",StrMin11),intQueMsg=intQueMsg.replace("[Y]",StrMax11),document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt11).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none",parseFloat(TxtValue11)<parseFloat(StrMin11)?(ErrMsg=ErrMsg+"Please enter a value that no less than "+StrMin11+" for question "+NoS11+".\n",intQueMsg=Lang.l55,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",StrMin11),document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(Txt11).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"):document.getElementById(IndQnsNo[iq]).style.display="none"}document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S12Qn":if(Qns12="S12Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns12,"12"),hiddenQuestionValidate==!1)break;var FlagMandatory12=0,EmptyFlag12=0,GreaterFlag12=0,DuplicateFlag12=0,NumericFlag12=0,strCompleteQuest12="",isCompleteQuest12=0;if(input[i].id==Qns12){for(FetchInput12=input[i].getElementsByTagName("INPUT"),NoS12=IndQnsNo[iq],i12a=0;i12a<FetchInput12.length;i12a++)FetchInput12[i12a].type=="hidden"&&(Hid12=FetchInput12[i12a].id,document.getElementById(Hid12).value==1&&snr==0&&(FlagMandatory12=1));for(TotalItems=0,Txt12="",i12=0;i12<FetchInput12.length;i12++)FetchInput12[i12].type=="text"&&FetchInput12[i12].value!="EditAnswer"&&(TotalItems=parseInt(TotalItems)+1);for(TextValue12="",i12b=0;i12b<FetchInput12.length;i12b++)Txt12=FetchInput12[i12b].id,FetchInput12[i12b].type=="text"&&FetchInput12[i12b].value!="EditAnswer"&&(Rank12=document.getElementById(Txt12).value,document.getElementById(Txt12).value==""||isWhitespace(document.getElementById(Txt12).value)==!0?(EmptyFlag12=EmptyFlag12+1,isCompleteQuest12==0&&(strCompleteQuest12=Txt12,isCompleteQuest12=1),FlagMandatory12==1&&(document.getElementById(strCompleteQuest12).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq])):fnIsNumericInteger(Rank12)==!1?NumericFlag12=1:fnIsNumericInteger(Rank12)==!0&&document.getElementById(Txt12).value!=""&&(TextValue12=TextValue12+Rank12+"-"),(parseInt(document.getElementById(Txt12).value)>TotalItems||parseInt(document.getElementById(Txt12).value)<=0)&&(GreaterFlag12=1));if(TextValue12=TextValue12.split("-"),NumericFlag12==1)ErrMsg=ErrMsg+"Please rank all the items in Question "+NoS12+" using the values 1 to "+TotalItems+".\n",intQueMsg=Lang.l57,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",TotalItems),document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq];else{if(FlagMandatory12==1&&(EmptyFlag12>0?(ErrMsg=ErrMsg+"Please complete answering Question "+NoS12+".\n",intQueMsg=Lang.l22,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]):(ErrMsg==null||ErrMsg=="")&&(document.getElementById(IndQnsNo[iq]).style.display="none"),EmptyFlag12==TotalItems?(ErrMsg=ErrMsg+"Please rank all the items in Question "+NoS12+" using the values 1 to "+TotalItems+".\n",intQueMsg=Lang.l57,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",TotalItems),document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]):(ErrMsg==null||ErrMsg=="")&&(document.getElementById(IndQnsNo[iq]).style.display="none")),GreaterFlag12==0&&EmptyFlag12!=TotalItems){for(i12c=0;i12c<TotalItems;i12c++)for(j12=i12c+1;j12<TotalItems;j12++)TextValue12[i12c]==TextValue12[j12]&&TextValue12[i12c]!=null&&(DuplicateFlag12=1);DuplicateFlag12==1?(ErrMsg=ErrMsg+"Please rank all the items in Question "+NoS12+" using the values 1 to "+TotalItems+".\n",intQueMsg=Lang.l57,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",TotalItems),document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]):(ErrMsg==null||ErrMsg=="")&&(document.getElementById(IndQnsNo[iq]).style.display="none")}GreaterFlag12==1?(ErrMsg=ErrMsg+"Please rank all the items in Question "+NoS12+" using the values 1 to "+TotalItems+".\n",intQueMsg=Lang.l57,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",TotalItems),document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]):(ErrMsg==null||ErrMsg=="")&&(document.getElementById(IndQnsNo[iq]).style.display="none");GreaterFlag12==0&&EmptyFlag12>0&&FlagMandatory12==0&&(TotalItems>EmptyFlag12?(ErrMsg=ErrMsg+"Please complete answering Question "+NoS12+".\n",intQueMsg=Lang.l22,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]):(ErrMsg==null||ErrMsg=="")&&(document.getElementById(IndQnsNo[iq]).style.display="none"))}document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S13Qn":if(Qns13="S13Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns13,"13"),hiddenQuestionValidate==!1)break;if(FlagMandatory13=0,FlagRowChecked13=0,input[i].id==Qns13){var hidRows13="S13Rows-"+IndQns[iq],NoS13=IndQnsNo[iq],rdo13focus="",TotalRows13=parseInt(document.getElementById(hidRows13).value),FetchInput13=input[i].getElementsByTagName("INPUT");for(j13=1;j13<=TotalRows13;j13++)for(i13=0;i13<FetchInput13.length;i13++)FetchInput13[i13].type=="radio"&&(GroupName13="rd-"+IndQns[iq]+"-"+j13,rowFocusId=FetchInput13[i13].value,FetchInput13[i13].name==GroupName13&&FetchInput13[i13].checked==!0&&(FlagRowChecked13=parseInt(FlagRowChecked13)+1));for(i13a=0;i13a<FetchInput13.length;i13a++)FetchInput13[i13a].type=="hidden"&&(Hid13=FetchInput13[i13a].id,strsub=FetchInput13[i13a].id.substring(0,8),strsub!="S13Rows-"&&document.getElementById(Hid13).value==1&&snr==0&&(FlagMandatory13=1));FlagMandatory13==1&&(parseInt(FlagRowChecked13)<TotalRows13?(ErrMsg=ErrMsg+"Please select one option for each row for Question "+NoS13+".\n",intQueMsg=Lang.l23,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(rowFocusId).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none");document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S14Qn":if(Qns14="S14Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns14,"14"),hiddenQuestionValidate==!1)break;var FlagMandatory14=0,FlagRowChecked14=0,TotalCheckBox14=0,EmptyCheckBox14=[];if(input[i].id==Qns14){var hidRows14="S14Rows-"+IndQns[iq],RowCols=document.getElementById(hidRows14).value.split(","),TotalRows14=parseInt(RowCols[0]),TotalCols14=parseInt(RowCols[1]),FetchInput14=input[i].getElementsByTagName("INPUT"),NoS14=IndQnsNo[iq],chk14Focus="",counter14=3,emptycnt14=0;for(i14=1;i14<=TotalRows14;i14++)if(document.getElementById("hidIsMobile").value=="1")for(j14=0;j14<TotalCols14;j14++)FetchInput14[counter14].type=="checkbox"&&(CheckBoxes14="S14chkAnswer-"+IndQns[iq]+"-"+i14+"-"+j14,document.getElementById(CheckBoxes14)!=null?EmptyCheckBox14[i14]=document.getElementById(CheckBoxes14).checked==!1&&EmptyCheckBox14[i14]!=2?1:2:counter14=parseInt(counter14)-1),counter14=parseInt(counter14)+1;else for(j14=1;j14<=TotalCols14;j14++)FetchInput14[counter14].type=="checkbox"&&(CheckBoxes14="S14chkAnswer-"+IndQns[iq]+"-"+i14+"-"+j14,document.getElementById(CheckBoxes14)!=null?EmptyCheckBox14[i14]=document.getElementById(CheckBoxes14).checked==!1&&EmptyCheckBox14[i14]!=2?1:2:counter14=parseInt(counter14)-1),counter14=parseInt(counter14)+1;for(Validated14="",i14=1;i14<EmptyCheckBox14.length;i14++)EmptyCheckBox14[i14]==1&&(Validated14=1);for(i14a=0;i14a<FetchInput14.length;i14a++)FetchInput14[i14a].type=="hidden"&&(Hid14=FetchInput14[i14a].id,strsub14=FetchInput14[i14a].id.substring(0,8),strsub14!="S14Rows-"&&document.getElementById(Hid14).value==1&&snr==0&&(FlagMandatory14=1));Validated14==1?FlagMandatory14==1?(ErrMsg=ErrMsg+"Please select one option for each row for Question "+NoS14+".\n",intQueMsg=Lang.l23,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(CheckBoxes14).focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none":document.getElementById(IndQnsNo[iq]).style.display="none";document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S15Qn":if(Qns15="S15Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns15,"15"),hiddenQuestionValidate==!1)break;if(FlagMandatory15=0,input[i].id==Qns15){var NoS15=IndQnsNo[iq],container=$("#"+input[i].id),validationType="Text",validationRegexPattern="",minValue=container.find("[id*='hidMin']").val();minValue=isNaN(minValue)?null:parseFloat(minValue);maxValue=container.find("[id*='hidMax']").val();maxValue=isNaN(maxValue)?null:parseFloat(maxValue);customMessage=null;container.find(".s15-validationtype").length>0&&(validationType=container.find(".s15-validationtype").val(),validationRegexPattern=container.find(".s15-validationregex").val().replace(/&quot;/g,'"'));container.find(".s15-validationmessage").length>0&&(customMessage=container.find(".s15-validationmessage").val());parseInt(container.find("[id*='hidfield']").val())==1&&snr==0&&(FlagMandatory15=1);var minimumFieldsCompleted=!0,validationRulesMet=!0,inputsToApplyValidationRule=[],inputToFocus=null,isLeapYear=!1,hasExceededFebDays=!1,theYearEntered="";if(container.find("tr.MatrixRow1,tr.MatrixRow2").each(function(n,t){var i=$(t).find("input[type='text']").filter(function(){return this.value.trim().length>0});FlagMandatory15&&i.length==0&&(minimumFieldsCompleted=!1,inputToFocus=$(t).find("input[type='text']")[0]);i.length>0&&(inputsToApplyValidationRule=$.merge(inputsToApplyValidationRule,i))}),regex=null,validationType=="Date"?regex=new RegExp("^((0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2})*$"):validationType=="Regex"&&(regex=new RegExp(validationRegexPattern)),$(inputsToApplyValidationRule).each(function(n,t){var i=$(t).val(),u;switch(validationType){case"Numerical":isNaN(i)?(validationRulesMet=!1,inputToFocus==null&&(inputToFocus=t)):(i=parseFloat(i),minValue!=null&&i<minValue&&(validationRulesMet=!1,inputToFocus==null&&(inputToFocus=t)),maxValue!=null&&i>maxValue&&(validationRulesMet=!1,inputToFocus==null&&(inputToFocus=t)));break;case"Date":if(u=i.split("/"),u.length!=3)validationRulesMet=!1,inputToFocus==null&&(inputToFocus=t);else{var r=parseInt(u[2]),e=parseInt(u[0])-1,f=parseInt(u[1]),o=new Date(r,e,f);(o.getFullYear()!=r||o.getMonth()!=e||o.getDate()!=f)&&(validationRulesMet=!1,e==1&&f>28&&(isLeapYear=r%4==0&&r%100!=0||r%400==0,hasExceededFebDays=isLeapYear?f>29:f>28,theYearEntered=r));inputToFocus==null&&(inputToFocus=t)}break;case"Regex":regex.test(i)||(validationRulesMet=!1,inputToFocus==null&&(inputToFocus=t))}}),document.getElementById(IndQnsNo[iq]).style.display="none",intQueMsg="",minimumFieldsCompleted||(ErrMsg=ErrMsg+"Please enter at least one entry per row for Question "+NoS15+".\n",intQueMsg=Lang.l23+"<br />",document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",inputToFocus.focus(),fnShowButtons(),window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])),!validationRulesMet){switch(validationType){case"Numerical":ErrMsg=ErrMsg+"Please only enter numbers for Question "+NoS15+".\n";intQueMsg+=minValue!=null&&maxValue!=null?Lang.l54.replace("[X]",minValue).replace("[Y]",maxValue):minValue!=null?Lang.l55.replace("[X]",minValue):maxValue!=null?Lang.l56.replace("[X]",maxValue):Lang.l53;break;case"Date":ErrMsg=ErrMsg+"Enter dates in the format MM/dd/yyyy for Question "+NoS15+".\n";intQueMsg+=hasExceededFebDays?isLeapYear?Lang.l48.replace("[Y]",theYearEntered):Lang.l47:Lang.l101;break;case"Regex":ErrMsg=ErrMsg+"Your answers for question "+NoS15+" are not in the correct format.\n";regexString=regex.toString();regexString[0]=="/"&&regexString[regexString.length-1]=="/"&&(regexString=regexString.substring(1),regexString=regexString.substring(0,regexString.length-1));intQueMsg+=Lang.l102+' "'+regexString+'"'}customMessage!=null&&(intQueMsg=customMessage);document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg;document.getElementById(IndQnsNo[iq]).style.display="block";inputToFocus.focus();fnShowButtons();window.location.hash="pt"+IndQnsNo[iq];strFocus==""&&(strFocus=IndQnsNo[iq])}document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S16Qn":if(Qns16="S16Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns16,"16"),hiddenQuestionValidate==!1)break;if(FlagMandatory16=0,FlagRowChecked16=0,input[i].id==Qns16){var NoS16=IndQnsNo[iq],hidRows16="S16Rows-"+IndQns[iq],TotalRows16=parseInt(document.getElementById(hidRows16).value),FetchInput16=input[i].getElementsByTagName("INPUT"),EmptyFlag16=0,TotalDrp16=0,FetchInput16a=input[i].getElementsByTagName("SELECT"),drpflag=0,strCompleteQuest16="",isCompleteQuest16=0;for(i16a=0;i16a<FetchInput16.length;i16a++)if(FetchInput16[i16a].type=="hidden"&&(Hid16=FetchInput16[i16a].id,strsub16=FetchInput16[i16a].id.substring(0,8),document.getElementById(Hid16).value==1&&snr==0))for(strsub16!="S16Rows-"&&(FlagMandatory16=1),j16=1;j16<=TotalRows16;j16++)for(i16=0;i16<FetchInput16a.length;i16++)Drp16a=FetchInput16a[i16].id,DrpName16a="S16drpAnswer-"+IndQns[iq]+"-"+j16,DrpName16a==Drp16a&&document.getElementById(Drp16a).value==0&&drpflag==0&&(drpflag=1,strFocus==""&&(strFocus=IndQnsNo[iq]));for(j16=1;j16<=TotalRows16;j16++)for(i16=0;i16<FetchInput16a.length;i16++)Drp16a=FetchInput16a[i16].id,DrpName16a="S16drpAnswer-"+IndQns[iq]+"-"+j16,DrpName16a==Drp16a&&(TotalDrp16=parseInt(TotalDrp16)+1,document.getElementById(Drp16a).value==0&&(isCompleteQuest16==0&&(strCompleteQuest16=Drp16a,isCompleteQuest16=1),EmptyFlag16=parseInt(EmptyFlag16)+1));for(j16=1;j16<=TotalRows16;j16++)for(FlagRowChecked16=0,i16=0;i16<FetchInput16a.length;i16++)Drp16=FetchInput16a[i16].id,DrpName16="S16drpAnswer-"+IndQns[iq]+"-"+j16,DrpName16==Drp16&&document.getElementById(Drp16).value!=0&&(FlagRowChecked16=1);FlagMandatory16==1?parseInt(EmptyFlag16)!=0?(ErrMsg=ErrMsg+"Please select an answer option for each row in Question "+NoS16+".\n",intQueMsg=Lang.l23,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]):document.getElementById(IndQnsNo[iq]).style.display="none":document.getElementById(IndQnsNo[iq]).style.display="none";document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S17Qn":if(Qns17="S17Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns17,"17"),hiddenQuestionValidate==!1)break;var FlagTxtCheck17=1,FlagMandatory17=0,EmptyFlag17=0,Totaltxt17=0,FlagNumeric17=0,SubTotal=0,NoS17=IndQnsNo[iq],FlagCheck17=0,txtFlag=0,numFlag=0,totFlag=0,txt17focus,strCompleteQuest17="",isCompleteQuest17=0;if(input[i].id==Qns17){for(FetchInput17=input[i].getElementsByTagName("INPUT"),i17a=0;i17a<FetchInput17.length;i17a++)FetchInput17[i17a].type=="hidden"&&(Hid17=FetchInput17[i17a].id,document.getElementById(Hid17).value==1&&snr==0&&(FlagMandatory17=1));for(i17=0;i17<FetchInput17.length;i17++)FetchInput17[i17].type=="text"&&(Txt17=FetchInput17[i17].id,Txt17!="S17txtTotal"&&(Totaltxt17=parseInt(Totaltxt17)+1,NumberValue17=document.getElementById(Txt17).value,NumberValue17==""||isWhitespace(document.getElementById(Txt17).value)==!0?(EmptyFlag17=EmptyFlag17+1,isCompleteQuest17==0&&(strCompleteQuest17=Txt17,isCompleteQuest17=1),FlagMandatory17==1&&txtFlag==0&&(txtFlag=1,document.getElementById(Txt17).focus(),strFocus==""&&(strFocus=IndQnsNo[iq]))):fnIsAlphaNumericDecimalNegative(NumberValue17)==!1?(FlagNumeric17=1,numFlag==0&&(strFocus==""&&(strFocus=IndQnsNo[iq]),numFlag=1)):fnIsAlphaNumericDecimalNegative(NumberValue17)==!0&&(SubTotal=parseFloat(SubTotal)+parseFloat(document.getElementById(Txt17).value),i17==FetchInput17.length-2&&parseFloat(SubTotal)!=parseFloat(document.getElementById("hid"+input[i].id).value)&&(FlagCheck17=1),FlagNumeric17==0&&totFlag==0&&(txt17focus=Txt17,totFlag=1))));if(flag=0,FlagNumeric17==1)ErrMsg=ErrMsg+"Please only enter numbers for Question "+NoS17+".\n",intQueMsg=Lang.l53,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq];else if(EmptyFlag17>0)FlagMandatory17==1&&(flag=1,ErrMsg=ErrMsg+"Please complete answering Question "+NoS17+".\n",intQueMsg=Lang.l22,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]),SubTotal>0&&Totaltxt17!=EmptyFlag17&&flag!=1&&(ErrMsg=ErrMsg+"Please complete answering Question "+NoS17+".\n",intQueMsg=Lang.l22,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]));else if(FlagCheck17==1)ErrMsg=ErrMsg+"Please ensure that the values entered for Question "+NoS17+" total up to "+document.getElementById("hid"+input[i].id).value+".\n",intQueMsg=Lang.l58,document.getElementById(IndQnsNo[iq]).innerHTML=intQueMsg.replace("[X]",document.getElementById("hid"+input[i].id).value),document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]);else{if(FlagCheck17==01)for(i17=0;i17<FetchInput17.length;i17++)FetchInput17[i17].type=="text"&&(Txt17=FetchInput17[i17].id,(document.getElementById(Txt17).value==null||document.getElementById(Txt17).value=="")&&(document.getElementById(Txt17).value=0));document.getElementById(IndQnsNo[iq]).style.display="none"}document.getElementById(IndQnsNo[iq]).style.fontSize="14px"}break;case"S19Qn":if(Qns19="S19Qns"+IndQns[iq],hiddenQuestionValidate=!0,hiddenQuestionValidate=excludeHiddenQuestValidationForQDL(Qns19,"19"),hiddenQuestionValidate==!1)break;var FlagTxtCheck19=1,FlagMandatory19=0,ErrMsg19="";if(input[i].id==Qns19){var FetchInput19=input[i].getElementsByTagName("INPUT"),FetchSelect19=input[i].getElementsByTagName("SELECT"),FetchInputSpan19=input[i].getElementsByTagName("span"),NoS19=IndQnsNo[iq],EmptyFlag19=0,TotalTxt19=0,fillFlag19=0,drpflag19=0,isCompleteQuestion=0,completeQuestFocus="",drpSelectToCompleteQuest=0;for(i19a=0;i19a<FetchInput19.length;i19a++)FetchInput19[i19a].type=="hidden"&&(Hid19=FetchInput19[i19a].id,document.getElementById(Hid19).value==1&&snr==0&&(FlagMandatory19=1));for(i19=0;i19<FetchInput19.length;i19++)if(FetchInput19[i19].type=="text"&&FetchInput19[i19].value!="EditAnswer"){var Txt19=FetchInput19[i19].id,Qnsid19FN="S19txtFirstName",FirstName=Txt19.substring(0,15);FirstName==Qnsid19FN&&(TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(document.getElementById(completeQuestFocus).focus(),fillFlag19=1,strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1));Qnsid19LN="S19txtLastName";LastName=Txt19.substring(0,14);LastName==Qnsid19LN&&(TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(document.getElementById(completeQuestFocus).focus(),fillFlag19=1,strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1));Qnsid19Add1="S19txtAddress1";Address1=Txt19.substring(0,14);Address1==Qnsid19Add1&&(TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1));Qnsid19Add2="S19txtAddress2";Address2=Txt19.substring(0,14);Address2==Qnsid19Add2&&(TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?document.getElementById(completeQuestFocus).focus():EmptyFlag19=EmptyFlag19+1));Qnsid19City="S19txtCity";City=Txt19.substring(0,10);City==Qnsid19City&&(TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1))}for(i19a=0;i19a<FetchSelect19.length;i19a++)FetchSelect19.length>0&&(Combo19=FetchSelect19[i19a].id,document.getElementById(Combo19).value=="0"&&(isCompleteQuestion==0&&(completeQuestFocus=Combo19,isCompleteQuestion=1),FlagMandatory19==1&&(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])),drpSelectToCompleteQuest=2),document.getElementById(Combo19).value!="0"&&(drpSelectToCompleteQuest=1));for(i19=0;i19<FetchInput19.length;i19++)if(FetchInput19[i19].type=="text"&&FetchInput19[i19].value!="EditAnswer"){Txt19=FetchInput19[i19].id;Qnsid19State="S19txtState";State=Txt19.substring(0,11);State==Qnsid19State&&(state=FetchInput19[i19].id,TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1));Qnsid19Country="S19txtCountry";Country=Txt19.substring(0,13);Country==Qnsid19Country&&(TotalTxt19=TotalTxt19+1,country=FetchInput19[i19].id,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1));var Qnsid19Email="S19txtEmail",EmailValue19=document.getElementById(Txt19).value,Email=Txt19.substring(0,11),Emaillbl19="";if(Email==Qnsid19Email){for(j19=0;j19<FetchInputSpan19.length;j19++){var NoLabel19="S19~$^"+IndQns[iq]+"~$^12",SpanNo19=FetchInputSpan19[j19].id,SpanNoId19=SpanNo19.split("~$^");SpanNo19="";SpanNo19=SpanNoId19[0]+"~$^"+SpanNoId19[1]+"~$^"+SpanNoId19[2];SpanNo19==NoLabel19&&(Emaillbl19=SpanNoId19[3])}email=FetchInput19[i19].id;TotalTxt19=TotalTxt19+1;document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0?(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1):isValidEmail_New(EmailValue19)==!1?(intQueMsg=Lang.l45,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",Emaillbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"}var Qnsid19USZip="S19txtUSZip",USZipValue19=trim(document.getElementById(Txt19).value),USZip=Txt19.substring(0,11),USZiplbl19="";if(USZip==Qnsid19USZip){for(j19=0;j19<FetchInputSpan19.length;j19++){var NoLabel19="S19~$^"+IndQns[iq]+"~$^7",SpanNo19=FetchInputSpan19[j19].id,SpanNoId19=SpanNo19.split("~$^");SpanNo19="";SpanNo19=SpanNoId19[0]+"~$^"+SpanNoId19[1]+"~$^"+SpanNoId19[2];SpanNo19==NoLabel19&&(USZiplbl19=SpanNoId19[3])}TotalTxt19=TotalTxt19+1;(trim(document.getElementById(Txt19).value)==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1);lenUSZip=eval(trim(document.getElementById(Txt19).value).length);$("#"+Txt19).val().length>5&&sf==1?(array=$("#"+Txt19).val().split(","),$.each(array,function(n){if(fnIsNumericInteger(array[n])&&array[n].length==5)document.getElementById(IndQnsNo[iq]).style.display="none";else{var t=Lang.l49;return ErrMsg19=ErrMsg19+t.replace("[X]",USZiplbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq]),!1}})):USZipValue19!=""&&(fnIsNumericInteger(USZipValue19)==!1||parseInt(lenUSZip)<5?(intQueMsg=Lang.l49,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",USZiplbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none")}Qnsid19InternationalZip="S19txtInternationalZip";InternationalZip=Txt19.substring(0,22);InternationalZip==Qnsid19InternationalZip&&(TotalTxt19=TotalTxt19+1,(document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0)&&(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1));var Qnsid19CellPhone="S19txtWorkPhone",CellPhoneValue19=document.getElementById(Txt19).value,CellPhone=Txt19.substring(0,15),CellPhonelblWP1=Qnsid19CellPhone.substring(6,10),CellPhonelblWP2=Qnsid19CellPhone.substring(10,15),CellPhonelbl19=CellPhonelblWP1+" "+CellPhonelblWP2;if(CellPhone==Qnsid19CellPhone){for(TotalTxt19=TotalTxt19+1,j19=0;j19<FetchInputSpan19.length;j19++){var NoLabel19="S19~$^"+IndQns[iq]+"~$^11",SpanNo19=FetchInputSpan19[j19].id,SpanNoId19=SpanNo19.split("~$^");SpanNo19="";SpanNo19=SpanNoId19[0]+"~$^"+SpanNoId19[1]+"~$^"+SpanNoId19[2];SpanNo19==NoLabel19&&(CellPhonelbl19=SpanNoId19[3])}document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0?(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1):IsInternationalPhoneSF(CellPhoneValue19)==!1&&sf==1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",CellPhonelbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):IsInternationalPhone(CellPhoneValue19)==!1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",CellPhonelbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"}var Qnsid19CellPhone="S19txtCellPhone",CellPhoneValue19=document.getElementById(Txt19).value,CellPhone=Txt19.substring(0,15),CellPhonelblCP1=Qnsid19CellPhone.substring(6,10),CellPhonelblCP2=Qnsid19CellPhone.substring(10,15),CellPhonelbl19=CellPhonelblCP1+" "+CellPhonelblCP2;if(CellPhone==Qnsid19CellPhone){for(TotalTxt19=TotalTxt19+1,j19=0;j19<FetchInputSpan19.length;j19++){var NoLabel19="S19~$^"+IndQns[iq]+"~$^11",SpanNo19=FetchInputSpan19[j19].id,SpanNoId19=SpanNo19.split("~$^");SpanNo19="";SpanNo19=SpanNoId19[0]+"~$^"+SpanNoId19[1]+"~$^"+SpanNoId19[2];SpanNo19==NoLabel19&&(CellPhonelbl19=SpanNoId19[3])}document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0?(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1):IsInternationalPhoneSF(CellPhoneValue19)==!1&&sf==1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19,document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):IsInternationalPhone(CellPhoneValue19)==!1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19,document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"}var Qnsid19CellPhone="S19txtHomePhone",CellPhoneValue19=document.getElementById(Txt19).value,CellPhone=Txt19.substring(0,15),CellPhonelblHP1=Qnsid19CellPhone.substring(6,10),CellPhonelblHP2=Qnsid19CellPhone.substring(10,15),CellPhonelbl19=CellPhonelblHP1+" "+CellPhonelblHP2;if(CellPhone==Qnsid19CellPhone){for(TotalTxt19=TotalTxt19+1,j19=0;j19<FetchInputSpan19.length;j19++){var NoLabel19="S19~$^"+IndQns[iq]+"~$^11",SpanNo19=FetchInputSpan19[j19].id,SpanNoId19=SpanNo19.split("~$^");SpanNo19="";SpanNo19=SpanNoId19[0]+"~$^"+SpanNoId19[1]+"~$^"+SpanNoId19[2];SpanNo19==NoLabel19&&(CellPhonelbl19=SpanNoId19[3])}document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0?(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1):IsInternationalPhoneSF(CellPhoneValue19)==!1&&sf==1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",CellPhonelbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):IsInternationalPhone(CellPhoneValue19)==!1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",CellPhonelbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"}var Qnsid19CellPhone="S19txtCellPhone",CellPhoneValue19=document.getElementById(Txt19).value,CellPhone=Txt19.substring(0,15),CellPhonelblCP1=Qnsid19CellPhone.substring(6,10),CellPhonelblCP2=Qnsid19CellPhone.substring(10,15),CellPhonelbl19=CellPhonelblCP1+" "+CellPhonelblCP2;if(CellPhone==Qnsid19CellPhone){for(TotalTxt19=TotalTxt19+1,j19=0;j19<FetchInputSpan19.length;j19++){var NoLabel19="S19~$^"+IndQns[iq]+"~$^11",SpanNo19=FetchInputSpan19[j19].id,SpanNoId19=SpanNo19.split("~$^");SpanNo19="";SpanNo19=SpanNoId19[0]+"~$^"+SpanNoId19[1]+"~$^"+SpanNoId19[2];SpanNo19==NoLabel19&&(CellPhonelbl19=SpanNoId19[3])}document.getElementById(Txt19).value==""||isWhitespace(document.getElementById(Txt19).value)==!0?(isCompleteQuestion==0&&(completeQuestFocus=Txt19,isCompleteQuestion=1),FlagMandatory19==1?(fillFlag19=1,document.getElementById(completeQuestFocus).focus(),strFocus==""&&(strFocus=IndQnsNo[iq])):EmptyFlag19=EmptyFlag19+1):IsInternationalPhoneSF(CellPhoneValue19)==!1&&sf==1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",CellPhonelbl19),document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):IsInternationalPhone(CellPhoneValue19)==!1?(intQueMsg=Lang.l51,ErrMsg19=ErrMsg19+intQueMsg.replace("[X]",CellPhonelbl19)+"<br/>",document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq],strFocus==""&&(strFocus=IndQnsNo[iq])):document.getElementById(IndQnsNo[iq]).style.display="none"}}fillFlag19==1&&(ErrMsg19==null||ErrMsg19=="")&&(intQueMsg=Lang.l22,ErrMsg19=ErrMsg19+intQueMsg,document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",window.location.hash="pt"+IndQnsNo[iq]);(ErrMsg19!=null||ErrMsg19!="")&&(document.getElementById(IndQnsNo[iq]).innerHTML=ErrMsg19,document.getElementById(IndQnsNo[iq]).style.display="block",document.getElementById(IndQnsNo[iq]).style.fontSize="14px")}ErrMsg=ErrMsg+ErrMsg19}}return ErrMsg!=""?(strFocus!=""&&(window.location.hash="pt"+strFocus),fnShowButtons(),!1):(QPrefId=document.getElementById("hidQueSNo").value,document.getElementById("txtPageOperation").value!="previous"&&snr==0?document.getElementById("hidRespEmailId").value=="1"?document.getElementById("hidManRespSEN").value=="1"?document.getElementById("S99txtAnswer").value==""||isWhitespace(document.getElementById("S99txtAnswer").value)==!0?(intQueMsg=Lang.l99,document.getElementById(QPrefId).innerHTML=intQueMsg,document.getElementById(QPrefId).style.display="block",window.location.hash="pt"+QPrefId,fnShowButtons(),!1):isValidEmail_New(document.getElementById("S99txtAnswer").value)==!1?(intQueMsg=Lang.l100,document.getElementById(QPrefId).innerHTML=intQueMsg,document.getElementById(QPrefId).style.display="block",window.location.hash="pt"+QPrefId,fnShowButtons(),!1):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):document.getElementById("S99txtAnswer").value!=""||isWhitespace(document.getElementById("S99txtAnswer").value)==!1?isValidEmail_New(document.getElementById("S99txtAnswer").value)==!1?(intQueMsg=Lang.l100,document.getElementById(QPrefId).innerHTML=intQueMsg,document.getElementById(QPrefId).style.display="block",window.location.hash="pt"+QPrefId,fnShowButtons(),!1):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0))}function fnValidateSENEmail(){var n=document.getElementById("hidQueSNo").value,t;return document.getElementById("hidRespEmailId").value=="1"?document.getElementById("hidManRespSEN").value=="1"?document.getElementById("S99txtAnswer").value==""||isWhitespace(document.getElementById("S99txtAnswer").value)==!0?(t="Please enter a value in the field",document.getElementById(n).innerHTML=t,document.getElementById(n).style.display="block",window.location.hash="pt"+n,fnShowButtons(),!1):isValidEmail_New(document.getElementById("S99txtAnswer").value)==!1?(t="Please enter a valid email address",document.getElementById(n).innerHTML=t,document.getElementById(n).style.display="block",window.location.hash="pt"+n,fnShowButtons(),!1):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):document.getElementById("S99txtAnswer").value!=""||isWhitespace(document.getElementById("S99txtAnswer").value)==!1?isValidEmail_New(document.getElementById("S99txtAnswer").value)==!1?(t="Please enter a valid email address",document.getElementById(n).innerHTML=t,document.getElementById(n).style.display="block",window.location.hash="pt"+n,fnShowButtons(),!1):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0):(fnHideButtons(),document.getElementById("hidEnterKey").value="0",!0)}function hidediv(){return document.getElementById("frmPreview").style.visibility="hidden",document.getElementById("divPreview").style.visibility="hidden",!1}function validateSNR(n){try{document.getElementById("ExceptionMsg").style.display="none";fnHideButtons();ChangePageOption(n);document.getElementById(Globals.hidSNRId).value="SNR";var t=document.getElementById(Globals.hidSFId).value-0;if(fnGeneric(n,1,t))fnShowButtons();else return!1}catch(i){return!1}}function enableSNR(){try{document.getElementById(Globals.tblSaveAndResumeId).style.visibility="hidden"}catch(n){return!1}}function enableSNR1(){try{document.getElementById(Globals.tblSaveandResume1Id).style.visibility="hidden"}catch(n){return!1}}function validateLimitForCheckbox(n,t,i,r){var u="",f=0;if(u=n.split("-"),i==u[0]&&t==u[1]){if(u[2]==0)return f=0,f+"-"+u[1]+"-"+u[2]+"-"+u[3];if(parseInt(u[2])==parseInt(u[3]))return parseInt(r)!=parseInt(u[2])?(f=1,f+"-"+u[1]+"-"+u[2]+"-"+u[2]):(f=0,f+"-"+u[1]+"-"+u[2]+"-"+u[3]);if(parseInt(u[2])<parseInt(u[3]))return parseInt(r)<parseInt(u[2])||parseInt(r)>parseInt(u[3])?(f=2,f+"-"+u[1]+"-"+u[2]+"-"+u[3]):(f=0,f+"-"+u[1]+"-"+u[2]+"-"+u[3])}}function excludeHiddenQuestValidationForQDL(){return!0}function setFocus(n){var t=$("#"+n).offset().top;$("body,html,document").scrollTop(t);$("#"+n).focus()}function setBoldTagToEventDetails(){$(".spnEventTitle").each(function(){$(this).css("font-weight","bold")});$(".spnEventDate").each(function(){$(this).css("font-weight","bold")});$(".spnEventTime").each(function(){$(this).css("font-weight","bold")});$(".spnEventTimeZone").each(function(){$(this).css("font-weight","bold")})}function hideQDLTargetQuestions(n){for(var r=$(".ques_box.Answer_Body.SurveyBorder2"),u="",i="",f="",t=0;t<r.length;t++)f="",u="",u=$(r[t]).find("#lblQID").attr("value"),i="",i=u.split("-"),i.length>0&&(f=i[0],n.indexOf(f)!=-1&&$(r[t]).hide())}function showUnsupportedFileTypeError(n,t,i,r,u,f,e){var o=Lang.l87;e&&(o=Lang.l103);o=o.replace("[Allowed-File-Type-Extensions]",n[1].replace(/,/g,", "));document.getElementById(t).innerHTML=o;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(i).value="";document.getElementById(r).innerHTML="("+Lang.l84+")";document.getElementById(u).innerHTML="";document.getElementById(f).value=Lang.l82}function JT_init(){$("a.jTip").hover(function(){JT_show(this.href,this.id,this.name)},function(){$("#JT").remove()}).click(function(){return!1})}function hideTooltip(){$("#JT").remove()}function getScrollWidth(){var n=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft;return n?n:0}function getScrollHeight(){var n=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;return n?n:0}function JT_show(n,t,i){var a=document.documentElement,l=self.innerWidth||a&&a.clientWidth||document.body.clientWidth,v=self.innerHeight||a&&a.clientHeight||document.body.clientHeight,s,p,f,c;if(document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp")==null||document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp").value!=0){var e=sTip[i],o=l-getAbsoluteLeft(t),r=getAbsoluteTop(t)-3,y=n.replace(/^[^\?]+\??/,""),u=parseQuery(y);if(u.width===undefined&&(u.width=203),u.link!==undefined&&($("#"+t).bind("click",function(){window.location=u.link}),$("#"+t).css("cursor","pointer")),navigator.platform=="Win16"&&(s="Windows 3.1"),navigator.platform=="Mac"&&(s="MacOS"),navigator.platform=="Win32"&&(s="Windows 95 or above"),navigator.platform=="Win64"&&(s="Windows NT 5.1.2600"),p=getScrollHeight(),o>u.width*1+75)if(o>document.getElementById(t).offsetWidth+u.width*1+75){var w=getElementWidth(t)/2,h=getAbsoluteLeft(t),f=document.getElementById(t).clientHeight||document.getElementById(t).offsetHeight,c=window.pageYOffset||document.documentElement||document.documentElement.scrollTop||document.body||document.body.scrollTop;c-(r-v)>251?(r=getAbsoluteTop(t)-3,$("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl' style='left:25px; top: -18px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r+f+15+"px"})):t=="one"?s=="MacOS"?($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl_lt' style='left:25px; top: 93px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r-f+80+"px"})):($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl_lt' style='left:25px; top: 69px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r-f+90+"px"})):t=="five"?s=="MacOS"?($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl_lt' style='left:25px; top: 79px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r-f+92+"px"})):($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl_lt' style='left:25px; top: 55px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r-f+102+"px"})):s=="MacOS"?($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl_lt' style='left:25px; top: 91px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r-f+80+"px"})):($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_lft'><div class='arwtl_lt' style='left:25px; top: 69px;'><\/div><div class='tt_top_lft'>"+e+"<\/div><\/div><\/div>"),$("#JT").css({left:h+20+"px",top:r-f+90+"px"}))}else f=document.getElementById(t).clientHeight||document.getElementById(t).offsetHeight,c=window.pageYOffset||document.documentElement||document.documentElement.scrollTop||document.body||document.body.scrollTop,c-(r-v)>245?($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+e+"<\/div><\/div><\/div>"),l<1025?$("#JT").css({right:o-120-document.getElementById(t).offsetWidth/2+"px",top:r+f+15+"px"}):$("#JT").css({right:o-110-document.getElementById(t).offsetWidth/2+"px",top:r+f+15+"px"})):($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_rgt'><div class='arwtr_rt' style='left:162px; top: 69px;'><\/div><div class='tt_top_rgt'>"+e+"<\/div><\/div><\/div>"),l<1025?$("#JT").css({right:o-120-document.getElementById(t).offsetWidth/2+"px",top:r-f+90+"px"}):$("#JT").css({right:o-110-document.getElementById(t).offsetWidth/2+"px",top:r-f+90+"px"}));else f=getScrollHeight(),c=window.pageYOffset||document.documentElement||document.documentElement.scrollTop||document.body||document.body.scrollTop,v-(r-f)<255?($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_rgt'><div class='arwtr_rt' style='left:162px; top: 69px;'><\/div><div class='tt_top_rgt'>"+e+"<\/div><\/div><\/div>"),l<1025?$("#JT").css({right:o-100-document.getElementById(t).offsetWidth/2+"px",top:r-70+"px"}):$("#JT").css({right:o-90-document.getElementById(t).offsetWidth/2+"px",top:r-270+"px"})):($("body").append("<div id='JT' style='width:"+u.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+e+"<\/div><\/div><\/div>"),l<1025?$("#JT").css({right:o-100-document.getElementById(t).offsetWidth/2+"px",top:r+175+"px"}):$("#JT").css({right:o-90-document.getElementById(t).offsetWidth/2+"px",top:r+175+"px"}));$("#JT").show()}}function JT_show_tool(n,t,i){var s=document.documentElement,e=self.innerWidth||s&&s.clientWidth||document.body.clientWidth,h,c;if(document.getElementById("ctl00_cphMain_ucSurveyOther_hidHelp")!=null){if(document.getElementById("ctl00_cphMain_ucSurveyOther_hidHelp").value==0)return}else if(document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp")!=null&&document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp").value==0)return;var o=sTip[i],u=e-getAbsoluteLeft(t),f=getAbsoluteTop(t)-3,l=n.replace(/^[^\?]+\??/,""),r=parseQuery(l);r.width===undefined&&(r.width=203);r.link!==undefined&&($("#"+t).bind("click",function(){window.location=r.link}),$("#"+t).css("cursor","pointer"));u>r.width*1+75?u>document.getElementById(t).offsetWidth+r.width*1+75?(h=getElementWidth(t)/2,c=getAbsoluteLeft(t),$("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_lft'><div class='arwtl' style='left:25px; top: -18px;'><\/div><div class='tt_top_lft'>"+o+"<\/div><\/div><\/div>"),$("#JT").css({left:c-30+h+"px",top:f+46+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}):$("#JT").css({right:u-30-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}):$("#JT").css({right:u-30-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}));$("#JT").show()}function JT_show_tool_master(n,t,i){var s=document.documentElement,e=self.innerWidth||s&&s.clientWidth||document.body.clientWidth,l,h;if(document.getElementById("ctl00_cphMain_ucSurveyOther_hidHelp")!=null){if(document.getElementById("ctl00_cphMain_ucSurveyOther_hidHelp").value==0)return}else if(document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp")!=null&&document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp").value==0)return;var o=sTip[i],u=e-getAbsoluteLeft(t),f=getAbsoluteTop(t)-3,c=n.replace(/^[^\?]+\??/,""),r=parseQuery(c);r.width===undefined&&(r.width=203);r.link!==undefined&&($("#"+t).bind("click",function(){window.location=r.link}),$("#"+t).css("cursor","pointer"));u>r.width*1+75?u>document.getElementById(t).offsetWidth+r.width*1+75?(l=getElementWidth(t)/2,h=getAbsoluteLeft(t),$("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_lft'><div class='arwtl' style='left:25px; top: -18px;'><\/div><div class='tt_top_lft'>"+o+"<\/div><\/div><\/div>"),$("#JT").css({left:h+5+"px",top:f+55+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-75-document.getElementById(t).offsetWidth/2+"px",top:f+55+"px"}):$("#JT").css({right:u-55-document.getElementById(t).offsetWidth/2+"px",top:f+55+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-75-document.getElementById(t).offsetWidth/2+"px",top:f+55+"px"}):$("#JT").css({right:u-55-document.getElementById(t).offsetWidth/2+"px",top:f+55+"px"}));$("#JT").show()}function getElementWidth(n){return x=document.getElementById(n),x.offsetWidth}function getAbsoluteLeft(n){for(o=document.getElementById(n),oLeft=o.offsetLeft;o.offsetParent!=null;)oParent=o.offsetParent,oLeft+=oParent.offsetLeft,o=oParent;return oLeft}function getAbsoluteTop(n){for(o=document.getElementById(n),oTop=o.offsetTop;o.offsetParent!=null;)oParent=o.offsetParent,oTop+=oParent.offsetTop,o=oParent;return oTop}function parseQuery(n){var u={},f,i,t,e,r;if(!n)return u;for(f=n.split(/[;&]/),i=0;i<f.length;i++)(t=f[i].split("="),t&&t.length==2)&&(e=unescape(t[0]),r=unescape(t[1]),r=r.replace(/\+/g," "),u[e]=r);return u}function blockEvents(n){n.target?n.preventDefault():n.returnValue=!1}function JT_show_preview(n,t,i){var s=document.documentElement,e=self.innerWidth||s&&s.clientWidth||document.body.clientWidth,o=i.replace(/~#/g,"'").replace(/~@/g,'"'),u=e-getAbsoluteLeft(t),f=getAbsoluteTop(t)-3,l=n.replace(/^[^\?]+\??/,""),r=parseQuery(l),h,c;r.width===undefined&&(r.width=420);r.link!==undefined&&($("#"+t).bind("click",function(){window.location=r.link}),$("#"+t).css("cursor","pointer"));u>r.width*1+75?u>document.getElementById(t).offsetWidth+r.width*1+75?(h=getElementWidth(t)/2,c=getAbsoluteLeft(t),$("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_lft_preview'><div class='arwtl' style='left:25px; top: -18px;'><\/div><div class='tt_top_lft'>"+o+"<\/div><\/div><\/div>"),$("#JT").css({left:c-30+h+"px",top:f+46+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt_preview'><div class='arwtr' style='left:380px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}):$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px; '><iframe id='framePreview' scrolling='no' frameborder='0' style='position: absolute; visibility: visible; left: 5px; top: 9px; width: "+(r.width-17)+"px; height: 300px; filter:Alpha(opacity=0); background: transparent;'><\/iframe><div id='JT_ToolTipDisplayBottom' class='tooltip_rgt_preview'><div id='JT_ToolTipDisplayArrow' class='arwtr' style='left:380px; top: -18px;'><\/div><div id='JT_ToolTipDisplayTop' class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}):$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}));$("#JT").show()}function JT_show_lan(n,t,i){var s=document.documentElement,e=self.innerWidth||s&&s.clientWidth||document.body.clientWidth,h,c;if(document.getElementById("ctl00_cphMain_ucSurveyOther_hidHelp")!=null){if(document.getElementById("ctl00_cphMain_ucSurveyOther_hidHelp").value==0)return}else if(document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp")!=null&&document.getElementById("ctl00_cphMain_InstantHelp1_hidHelp").value==0)return;var o=slTip[i],u=e-getAbsoluteLeft(t),f=getAbsoluteTop(t)-3,l=n.replace(/^[^\?]+\??/,""),r=parseQuery(l);r.width===undefined&&(r.width=203);r.link!==undefined&&($("#"+t).bind("click",function(){window.location=r.link}),$("#"+t).css("cursor","pointer"));u>r.width*1+75?u>document.getElementById(t).offsetWidth+r.width*1+75?(h=getElementWidth(t)/2,c=getAbsoluteLeft(t),$("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_lft'><div class='arwtl' style='left:25px; top: -18px;'><\/div><div class='tt_top_lft'>"+o+"<\/div><\/div><\/div>"),$("#JT").css({left:c-30+h+"px",top:f+46+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}):$("#JT").css({right:u-30-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"})):($("body").append("<div id='JT' style='width:"+r.width*1+"px'><div class='tooltip_rgt'><div class='arwtr' style='left:162px; top: -18px;'><\/div><div class='tt_top_rgt'>"+o+"<\/div><\/div><\/div>"),e<1025?$("#JT").css({right:u-50-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}):$("#JT").css({right:u-30-document.getElementById(t).offsetWidth/2+"px",top:f+46+"px"}));$("#JT").show()}function tb_init(n){$(n).click(function(){var n=this.title||this.name||null,t=this.href||this.alt,i=this.rel||!1;return tb_show(n,t,i),this.blur(),!1})}function tb_show_timeout(n,t,i,r){setTimeout(function(){tb_show(n,t,i)},r);tb_remove()}function tb_show(n,t,i){var e,c,o,f,l,u,r,s,h;try{if(n||(n=""),e="",n.indexOf("CUSTOM",0)!=-1&&(e=n,n=""),typeof document.body.style.maxHeight=="undefined"?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),document.getElementById("TB_HideSelect")===null&&$("body").append("<iframe id='TB_HideSelect'><\/iframe><div id='TB_overlay'><\/div><div id='TB_window'><\/div>")):document.getElementById("TB_overlay")===null&&$("body").append("<div id='TB_overlay'><\/div><div id='TB_window'><\/div>"),tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG"),n===null&&(n=""),typeof imgLoader!="undefined"&&$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /><\/div>"),$("#TB_load").show(),c=t.indexOf("?")!==-1?t.substr(0,t.indexOf("?")):t,o=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,f=c.toLowerCase().match(o),f==".jpg"||f==".jpeg"||f==".png"||f==".gif"||f==".bmp"){if(TB_PrevCaption="",TB_PrevURL="",TB_PrevHTML="",TB_NextCaption="",TB_NextURL="",TB_NextHTML="",TB_imageCount="",TB_FoundURL=!1,i)for(TB_TempArray=$("a[@rel="+i+"]").get(),TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++)l=TB_TempArray[TB_Counter].href.toLowerCase().match(o),TB_TempArray[TB_Counter].href==t?(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length):TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter].title,TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;<\/a><\/span>"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev<\/a><\/span>");imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var o=tb_getPageSize(),f=o[0]-150,e=o[1]-150,r=imgPreloader.width,u=imgPreloader.height;if(r>f?(u=u*(f/r),r=f,u>e&&(r=r*(e/u),u=e)):u>e&&(r=r*(e/u),u=e,r>f&&(u=u*(f/r),r=f)),TB_WIDTH=r+30,TB_HEIGHT=u+60,$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+t+"' width='"+r+"' height='"+u+"' alt='"+n+"'/><\/a><div id='TB_caption'>"+n+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"<\/div><\/div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close<\/a> or Esc Key<\/div>"),$("#TB_closeWindowButton").click(tb_remove),!(TB_PrevHTML==="")){function goPrev(){return $(document).unbind("click",goPrev)&&$(document).unbind("click",goPrev),$("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_PrevCaption,TB_PrevURL,i),!1}$("#TB_prev").click(goPrev)}if(!(TB_NextHTML==="")){function goNext(){return $("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_NextCaption,TB_NextURL,i),!1}$("#TB_next").click(goNext)}document.onkeydown=function(n){alert("Key");keycode=n==null?event.keyCode:n.which;keycode==27?tb_remove():keycode==190?TB_NextHTML==""||(document.onkeydown="",goNext()):keycode==188&&(TB_PrevHTML==""||(document.onkeydown="",goPrev()))};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=t}else{u=t.replace(/^[^\?]+\??/,"");r=tb_parseQuery(u);(u.indexOf("popupContact")>0||u.indexOf("popupContact1")>0||u.indexOf("popupContact2")>0||u.indexOf("popupContact3")>0||u.indexOf("popupContact4")>0||u.indexOf("popupContact5")>0||u.indexOf("popupContact6")>0||u.indexOf("popupContact7")>0||u.indexOf("popupContact8")>0||u.indexOf("popupContact9")>0||u.indexOf("popupContact10")>0||u.indexOf("popupContact11")>0||u.indexOf("popupContact12")>0||u.indexOf("popupContact13")>0||u.indexOf("popupContact14")>0||u.indexOf("popupContact15")>0)&&(r.width=550);TB_WIDTH=r.width*1+30||950;u.indexOf("divuploadImage")>0?TB_WIDTH=600:u.indexOf("divSettings")>0?TB_WIDTH=650:u.indexOf("divEdit1")>0&&(TB_WIDTH=515);s=0;h=0;try{s=screen.width;h=screen.height}catch(a){}try{if(ApplyWideScreenChanges())try{s>=1301?(r.width=parseInt(parseInt(r.width)*121.21)/100,TB_WIDTH=r.width*1+30||1151):TB_WIDTH=r.width*1+30||950}catch(a){TB_WIDTH=r.width*1+30||950}}catch(a){}if(ajaxContentW=TB_WIDTH-30,ajaxContentH=h-195,t.indexOf("TB_iframe")!=-1?(urlNoQuery=t.split("TB_"),$("#TB_iframeContent").remove(),r.modal!="true"?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close<\/a> or Esc Key<\/div><\/div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;max-height:"+(ajaxContentH+17)+"px;' > <\/iframe><div id='TB_closeAjaxWindow'>&nbsp;<\/div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;max-height:"+(ajaxContentH+17)+"px;'> <\/iframe>"))):$("#TB_window").css("display")!="block"?r.modal!="true"?t.toLowerCase().indexOf("createpoll_settings.html")>0||t.toLowerCase().indexOf("createpoll_repeatvoting.html")>0||t.toLowerCase().indexOf("createpoll_results.html")>0?($("#TB_window").html(""),$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img style='border:0;' title='Close' alt='Close' src='/images/close.gif' /><\/a> <\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px; height:435px;'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>")):r.inlineId.toLowerCase()=="testdiv"||r.inlineId.toLowerCase().indexOf("dvcreatereminder")>=0?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img style='border:0;' title='Close' alt='Close' src='/images/close.gif' /><\/a> <\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px; height:500px'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>"):$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img style='border:0;' title='Close' alt='Close' src='/images/close.gif' /><\/a> <\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px;'><\/div>")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style["max-height"]=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(n)),$("#TB_closeWindowButton").click(function(){r.ShowDiv!="undefined"&&r.ShowDiv!=null&&$("#"+r.ShowDiv).show();r.HideDiv!="undefined"&&r.HideDiv!=null&&$("#"+r.HideDiv).hide()}),$("#TB_closeWindowButton").click(tb_remove),$("#TB_closeWindowButton").click(function(){document.getElementById("dvProcessing")!=null&&document.getElementById("dvMenuBtns")!=null&&(document.getElementById("dvProcessing").style.display="none",document.getElementById("dvMenuBtns").style.display="block")}),t.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+r.inlineId).children());r.inlineId=="pageLoading"&&setTimeout(function(){tb_remove()},1500);$("#TB_window").unload(function(){$("#"+r.inlineId).append($("#TB_ajaxContent").children())});switch(e){case"CUSTOM_Align_Top":tb_position_custom("0","0cm");break;default:tb_position()}$("#TB_load").remove();$("#TB_window").css({display:"block"})}else t.indexOf("TB_iframe")!=-1?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):$("#TB_ajaxContent").load(t,function(){$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");tb_position();$("#TB_window").css({display:"block"})})}r.modal||(document.onkeyup=function(n){keycode=n==null?event.keyCode:n.which;keycode==27&&tb_remove()})}catch(v){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});try{$("#TB_iframeContent").height($("#TB_iframeContent").contents().find("html").height())}catch(n){}tb_position()}function tb_remove(){return $("#TB_imageOff").unbind("click"),$("#TB_closeWindowButton").unbind("click"),$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()}),$("#TB_load").remove(),typeof document.body.style.maxHeight=="undefined"&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow","")),document.onkeydown="",document.onkeyup="",!1}function tb_position_custom(n,t){if($("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"}),!(jQuery.browser.msie&&jQuery.browser.version<7))try{}catch(i){}finally{$("#TB_window").css({top:t})}}function tb_position(){var n,t,i;try{$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});n=!1;try{$.browser==undefined?(t=window.navigator.userAgent,i=t.indexOf("MSIE "),i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)<7&&(n=!0)):$.browser.msie&&$.browser.version<7&&(n=!0)}catch(r){}if(!n)try{$("#TB_window").height()>0?$("#TB_window").css({marginTop:"-"+parseInt($("#TB_window").height()/2,10)+"px"}):$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}catch(u){$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}}catch(f){}}function tb_parseQuery(n){var u={},f,i,t,e,r;if(!n)return u;for(f=n.split(/[;&]/),i=0;i<f.length;i++)(t=f[i].split("="),t&&t.length==2)&&(e=unescape(t[0]),r=unescape(t[1]),r=r.replace(/\+/g," "),u[e]=r);return u}function tb_getPageSize(){var n=document.documentElement,t=window.innerWidth||self.innerWidth||n&&n.clientWidth||document.body.clientWidth,i=window.innerHeight||self.innerHeight||n&&n.clientHeight||document.body.clientHeight;return arrayPageSize=[t,i]}function tb_detectMacXFF(){var n=navigator.userAgent.toLowerCase();if(n.indexOf("mac")!=-1&&n.indexOf("firefox")!=-1)return!0}function showblock(n,t,i){var e,s,o,f,h,r,u;try{if(n||(n=""),e="",n.indexOf("CUSTOM",0)!=-1&&(e=n,n=""),typeof document.body.style.maxHeight=="undefined"?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),document.getElementById("TB_HideSelect")===null&&$("body").append("<iframe id='TB_HideSelect'><\/iframe><div id='TB_overlay'><\/div><div id='TB_window'><\/div>")):document.getElementById("TB_overlay")===null&&$("body").append("<div id='TB_overlay'><\/div><div id='TB_window'><\/div>"),tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG"),n===null&&(n=""),typeof imgLoader!="undefined"&&$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /><\/div>"),$("#TB_load").show(),s=t.indexOf("?")!==-1?t.substr(0,t.indexOf("?")):t,o=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,f=s.toLowerCase().match(o),f==".jpg"||f==".jpeg"||f==".png"||f==".gif"||f==".bmp"){if(TB_PrevCaption="",TB_PrevURL="",TB_PrevHTML="",TB_NextCaption="",TB_NextURL="",TB_NextHTML="",TB_imageCount="",TB_FoundURL=!1,i)for(TB_TempArray=$("a[@rel="+i+"]").get(),TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++)h=TB_TempArray[TB_Counter].href.toLowerCase().match(o),TB_TempArray[TB_Counter].href==t?(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length):TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter].title,TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;<\/a><\/span>"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev<\/a><\/span>");imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var o=tb_getPageSize(),f=o[0]-150,e=o[1]-150,r=imgPreloader.width,u=imgPreloader.height;if(r>f?(u=u*(f/r),r=f,u>e&&(r=r*(e/u),u=e)):u>e&&(r=r*(e/u),u=e,r>f&&(u=u*(f/r),r=f)),TB_WIDTH=r+30,TB_HEIGHT=u+60,$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+t+"' width='"+r+"' height='"+u+"' alt='"+n+"'/><\/a><div id='TB_caption'>"+n+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"<\/div><\/div>"),!(TB_PrevHTML==="")){function goPrev(){return $(document).unbind("click",goPrev)&&$(document).unbind("click",goPrev),$("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_PrevCaption,TB_PrevURL,i),!1}$("#TB_prev").click(goPrev)}if(!(TB_NextHTML==="")){function goNext(){return $("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_NextCaption,TB_NextURL,i),!1}$("#TB_next").click(goNext)}document.onkeydown=function(n){alert("Key");keycode=n==null?event.keyCode:n.which;keycode==27?tb_remove():keycode==190?TB_NextHTML==""||(document.onkeydown="",goNext()):keycode==188&&(TB_PrevHTML==""||(document.onkeydown="",goPrev()))};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=t}else if(r=t.replace(/^[^\?]+\??/,""),u=tb_parseQuery(r),(r.indexOf("popupContact")>0||r.indexOf("popupContact1")>0||r.indexOf("popupContact2")>0||r.indexOf("popupContact3")>0||r.indexOf("popupContact4")>0||r.indexOf("popupContact5")>0||r.indexOf("popupContact6")>0||r.indexOf("popupContact7")>0||r.indexOf("popupContact8")>0||r.indexOf("popupContact9")>0||r.indexOf("popupContact10")>0||r.indexOf("popupContact11")>0||r.indexOf("popupContact12")>0||r.indexOf("popupContact13")>0||r.indexOf("popupContact14")>0||r.indexOf("popupContact15")>0)&&(u.width=550),TB_WIDTH=u.width*1+30||950,r.indexOf("dvForgotPass")>0?TB_HEIGHT=230:r.indexOf("divFreeTrial")>0?TB_HEIGHT=481:r.indexOf("divPrintSurvey")>0?TB_HEIGHT=210:r.indexOf("dvEditTitle")>0?(TB_HEIGHT=195,TB_WIDTH=410):r.indexOf("divuploadImage")>0?(TB_HEIGHT=250,TB_WIDTH=600):r.indexOf("divSettings")>0?(TB_HEIGHT=400,TB_WIDTH=650):r.indexOf("divEdit1")>0?(TB_HEIGHT=290,TB_WIDTH=515):TB_HEIGHT=u.height*1+40||510,ajaxContentW=TB_WIDTH-30,ajaxContentH=TB_HEIGHT-45,t.indexOf("TB_iframe")!=-1?(urlNoQuery=t.split("TB_"),$("#TB_iframeContent").remove(),u.modal!="true"?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><\/div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > <\/iframe>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> <\/iframe>"))):$("#TB_window").css("display")!="block"?u.modal!="true"?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'><\/div>")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(n)),t.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+u.inlineId).children());u.inlineId=="pageLoading"&&setTimeout(function(){tb_remove()},1500);$("#TB_window").unload(function(){$("#"+u.inlineId).append($("#TB_ajaxContent").children())});switch(e){case"CUSTOM_Align_Top":tb_position_custom("0","0cm");break;default:tb_position()}$("#TB_load").remove();$("#TB_window").css({display:"block"})}else t.indexOf("TB_iframe")!=-1?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):$("#TB_ajaxContent").load(t,function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})});u.modal||(document.onkeyup=function(n){keycode=n==null?event.keyCode:n.which;keycode==27&&tb_remove()})}catch(c){}}function SetPropOfInlinePopup(n,t){var i=screen.height-195;if(n=="id"){$("#"+t+" .TB_PopupContentDiv").css({"max-height":i+"px"});try{$("#"+t).css({marginLeft:"-"+parseInt($("#"+t).width()/2,10)+"px"});$("#"+t).css({marginTop:"-"+parseInt($("#"+t).height()/2,10)+"px"})}catch(r){}}else{$("."+t+" .TB_PopupContentDiv").css({"max-height":i+"px"});try{$("."+t).css({marginLeft:"-"+parseInt($("."+t).width()/2,10)+"px"});$("."+t).css({marginTop:"-"+parseInt($("."+t).height()/2,10)+"px"})}catch(r){}}}function ShowPrivacyPolicyDiv(n,t,i){var e,c,o,f,l,u,r,s,h;try{if(n||(n=""),e="",n.indexOf("CUSTOM",0)!=-1&&(e=n,n=""),typeof document.body.style.maxHeight=="undefined"?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),document.getElementById("TB_HideSelect")===null&&$("body").append("<iframe id='TB_HideSelect'><\/iframe><div id='TB_overlay'><\/div><div id='TB_window'><\/div>")):document.getElementById("TB_overlay")===null&&$("body").append("<div id='TB_overlay'><\/div><div id='TB_window'><\/div>"),tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG"),n===null&&(n=""),$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /><\/div>"),$("#TB_load").show(),c=t.indexOf("?")!==-1?t.substr(0,t.indexOf("?")):t,o=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,f=c.toLowerCase().match(o),f==".jpg"||f==".jpeg"||f==".png"||f==".gif"||f==".bmp"){if(TB_PrevCaption="",TB_PrevURL="",TB_PrevHTML="",TB_NextCaption="",TB_NextURL="",TB_NextHTML="",TB_imageCount="",TB_FoundURL=!1,i)for(TB_TempArray=$("a[@rel="+i+"]").get(),TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++)l=TB_TempArray[TB_Counter].href.toLowerCase().match(o),TB_TempArray[TB_Counter].href==t?(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length):TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter].title,TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;<\/a><\/span>"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev<\/a><\/span>");imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var o=tb_getPageSize(),f=o[0]-150,e=o[1]-150,r=imgPreloader.width,u=imgPreloader.height;if(r>f?(u=u*(f/r),r=f,u>e&&(r=r*(e/u),u=e)):u>e&&(r=r*(e/u),u=e,r>f&&(u=u*(f/r),r=f)),TB_WIDTH=r+30,TB_HEIGHT=u+60,$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+t+"' width='"+r+"' height='"+u+"' alt='"+n+"'/><\/a><div id='TB_caption'>"+n+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"<\/div><\/div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close<\/a> or Esc Key<\/div>"),$("#TB_closeWindowButton").click(tb_remove),!(TB_PrevHTML==="")){function goPrev(){return $(document).unbind("click",goPrev)&&$(document).unbind("click",goPrev),$("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_PrevCaption,TB_PrevURL,i),!1}$("#TB_prev").click(goPrev)}if(!(TB_NextHTML==="")){function goNext(){return $("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_NextCaption,TB_NextURL,i),!1}$("#TB_next").click(goNext)}document.onkeydown=function(n){alert("Key");keycode=n==null?event.keyCode:n.which;keycode==27||(keycode==190?TB_NextHTML==""||(document.onkeydown="",goNext()):keycode==188&&(TB_PrevHTML==""||(document.onkeydown="",goPrev())))};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=t}else{u=t.replace(/^[^\?]+\??/,"");r=tb_parseQuery(u);(u.indexOf("popupContact")>0||u.indexOf("popupContact1")>0||u.indexOf("popupContact2")>0||u.indexOf("popupContact3")>0||u.indexOf("popupContact4")>0||u.indexOf("popupContact5")>0||u.indexOf("popupContact6")>0||u.indexOf("popupContact7")>0||u.indexOf("popupContact8")>0||u.indexOf("popupContact9")>0||u.indexOf("popupContact10")>0||u.indexOf("popupContact11")>0||u.indexOf("popupContact12")>0||u.indexOf("popupContact13")>0||u.indexOf("popupContact14")>0||u.indexOf("popupContact15")>0)&&(r.width=550);TB_WIDTH=r.width*1+30||950;u.indexOf("divuploadImage")>0?TB_WIDTH=600:u.indexOf("divSettings")>0?TB_WIDTH=650:u.indexOf("divEdit1")>0&&(TB_WIDTH=515);s=0;h=0;try{s=screen.width;h=screen.height}catch(a){}if(ApplyWideScreenChanges())try{s>=1301?(r.width=parseInt(parseInt(r.width)*121.21)/100,TB_WIDTH=r.width*1+30||1151):TB_WIDTH=r.width*1+30||950}catch(a){TB_WIDTH=r.width*1+30||950}if(ajaxContentW=TB_WIDTH-30,ajaxContentH=h-195,t.indexOf("TB_iframe")!=-1?(urlNoQuery=t.split("TB_"),$("#TB_iframeContent").remove(),r.modal!="true"?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close<\/a> or Esc Key<\/div><\/div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;max-height:"+(ajaxContentH+17)+"px;' > <\/iframe><div id='TB_closeAjaxWindow'>&nbsp;<\/div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;max-height:"+(ajaxContentH+17)+"px;'> <\/iframe>"))):$("#TB_window").css("display")!="block"?r.modal!="true"?t.toLowerCase().indexOf("createpoll_settings.html")>0||t.toLowerCase().indexOf("createpoll_repeatvoting.html")>0||t.toLowerCase().indexOf("createpoll_results.html")>0?($("#TB_window").html(""),$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img style='border:0;' title='Close' alt='Close' src='/images/close.gif' /><\/a> <\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px; height:435px;'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>")):r.inlineId.toLowerCase()=="testdiv"||r.inlineId.toLowerCase().indexOf("dvcreatereminder")>=0?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img style='border:0;' title='Close' alt='Close' src='/images/close.gif' /><\/a> <\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px; height:500px'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>"):$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img style='border:0;' title='Close' alt='Close' src='/images/close.gif' /><\/a> <\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px'><\/div><div id='TB_WindowFooter'>&nbsp;<\/div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;max-height:"+ajaxContentH+"px;'><\/div>")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style["max-height"]=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(n)),$("#TB_closeWindowButton").click(function(){r.ShowDiv!="undefined"&&r.ShowDiv!=null&&$("#"+r.ShowDiv).show();r.HideDiv!="undefined"&&r.HideDiv!=null&&$("#"+r.HideDiv).hide()}),$("#TB_closeWindowButton").click(tb_remove),$("#TB_closeWindowButton").click(function(){document.getElementById("dvProcessing")!=null&&document.getElementById("dvMenuBtns")!=null&&(document.getElementById("dvProcessing").style.display="none",document.getElementById("dvMenuBtns").style.display="block")}),t.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+r.inlineId).children());r.inlineId=="pageLoading"&&setTimeout(function(){tb_remove()},1500);$("#TB_window").unload(function(){$("#"+r.inlineId).append($("#TB_ajaxContent").children())});switch(e){case"CUSTOM_Align_Top":tb_position_custom("0","0cm");break;default:tb_position()}$("#TB_load").remove();$("#TB_window").css({display:"block"})}else t.indexOf("TB_iframe")!=-1?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):$("#TB_ajaxContent").load(t,function(){$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");tb_position();$("#TB_window").css({display:"block"})})}r.modal||(document.onkeyup=function(n){keycode=n==null?event.keyCode:n.which;keycode==27})}catch(v){}}var settings,altDown,selectedFiles,qq,tb_pathToImage,replaceGmapUrlasperProtocol,countinstring;window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function at(n,t){return l(a.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function k(n,t){return!!~(""+n).indexOf(t)}function ct(n,t){for(var r in n)if(c[n[r]]!==i)return t=="pfx"?n[r]:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function e(n,t,i){var r=n.charAt(0).toUpperCase()+n.substr(1),u=(n+" "+y.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ct(u,t):(u=(n+" "+ot.join(r+" ")+r).split(" "),vt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in f);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var e=0,r,u,o,h=n.length;e<h;e++)f.setAttribute("type",u=n[e]),r=f.type!=="text",r&&(f.value=v,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&f.style.WebkitAppearance!==i?(s.appendChild(f),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,s.removeChild(f)):/^(search|tel)$/.test(u)||(/^(url|email)$/.test(u)?r=f.checkValidity&&f.checkValidity()===!1:/^color$/.test(u)?(s.appendChild(f),s.offsetWidth,r=f.value!=v,s.removeChild(f)):r=f.value!=v)),st[n[e]]=!!r;return st}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},s=t.documentElement,o="modernizr",ut=t.createElement(o),c=ut.style,f=t.createElement("input"),v=":)",ft={}.toString,a=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",y=et.split(" "),ot=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},st={},w={},g=[],nt=g.slice,b,tt=function(n,i,r,u){var l,a,c,f=t.createElement("div"),h=t.body,e=h?h:t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;","<style>",n,"<\/style>"].join(""),f.id=o,e.innerHTML+=l,e.appendChild(f),h||(e.style.background="",s.appendChild(e)),a=i(f,n),h?f.parentNode.removeChild(f):e.parentNode.removeChild(e),!!a},lt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(tt("@media "+t+" { #"+o+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ht=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,yt,d;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=nt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(nt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(nt.call(arguments)))},r});yt=function(i,r){var e=i.join(""),f=r.length;tt(e,function(i,r){for(var o=t.styleSheets[t.styleSheets.length-1],s=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",h=i.childNodes,e={};f--;)e[h[f].id]=h[f];u.touch="ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch||(e.touch&&e.touch.offsetTop)===9;u.csstransforms3d=(e.csstransforms3d&&e.csstransforms3d.offsetLeft)===9&&e.csstransforms3d.offsetHeight===3;u.generatedcontent=(e.generatedcontent&&e.generatedcontent.offsetHeight)>=1;u.fontface=/src/i.test(s)&&s.indexOf(r.split(" ")[0])===0},f,r)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",a.join("touch-enabled),("),o,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",a.join("transform-3d),("),o,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',v,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);r.flexbox=function(){return e("flexOrder")};r["flexbox-legacy"]=function(){return e("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){try{var r=t.createElement("canvas"),u;u=!!(n.WebGLRenderingContext&&(r.getContext("experimental-webgl")||r.getContext("webgl")));r=i}catch(f){u=!1}return u};r.touch=function(){return u.touch};r.geolocation=function(){return!!navigator.geolocation};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!e("indexedDB",n)};r.hashchange=function(){return ht("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){for(var t=-1,i=y.length;++t<i;)if(n[y[t]+"WebSocket"])return!0;return"WebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),k(c.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),k(c.backgroundColor,"rgba")||k(c.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return e("backgroundSize")};r.borderimage=function(){return e("borderImage")};r.borderradius=function(){return e("borderRadius")};r.boxshadow=function(){return e("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return e("animationName")};r.csscolumns=function(){return e("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+a.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),k(c.backgroundImage,"gradient")};r.cssreflections=function(){return e("boxReflect")};r.csstransforms=function(){return!!e("transform")};r.csstransforms3d=function(){var n=!!e("perspective");return n&&"webkitPerspective"in s.style&&(n=u.csstransforms3d),n};r.csstransitions=function(){return e("transition")};r.fontface=function(){return u.fontface};r.generatedcontent=function(){return u.generatedcontent};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(d in r)rt(r,d)&&(b=d.toLowerCase(),u[b]=r[d](),g.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;s.className+=" "+(t?"":"no-")+n;u[n]=t}return u},l(""),ut=f=null,function(n,t){function s(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function h(){var n=i.elements;return typeof n=="string"?n.split(" "):n}function c(n){var t={},u=n.createElement,f=n.createDocumentFragment,r=f();n.createElement=function(n){var f=(t[n]||(t[n]=u(n))).cloneNode();return i.shivMethods&&f.canHaveChildren&&!o.test(n)?r.appendChild(f):f};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(n){return t[n]=u(n),r.createElement(n),'c("'+n+'")'})+");return n}")(i,r)}function e(n){var t;return n.documentShived?n:(i.shivCSS&&!u&&(t=!!s(n,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(t=!c(n)),t&&(n.documentShived=t),n)}var r=n.html5||{},o=/^<|^(?:button|form|map|select|textarea)$/i,u,f,i;(function(){var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";u="hidden"in n;f=n.childNodes.length==1||function(){try{t.createElement("a")}catch(i){return!0}var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()})();i={elements:r.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!(r.shivCSS===!1),shivMethods:!(r.shivMethods===!1),type:"default",shivDocument:e};n.html5=i;e(t)}(this,t),u._version="2.5.3",u._prefixes=a,u._domPrefixes=ot,u._cssomPrefixes=y,u.mq=lt,u.hasEvent=ht,u.testProp=function(n){return ct([n])},u.testAllProps=e,u.testStyles=tt,u.prefixed=function(n,t,i){return t?e(n,t,i):e(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+g.join(" ")),u}(this,this.document);document.layers?(document.captureEvents(Event.MOUSEDOWN),document.onmousedown=clickNS4):document.getElementById&&!document.getElementById&&(document.onmousedown=clickIE4);document.oncontextmenu=new Function("return false");altDown=0;typeof window.event!="undefined"?(document.onkeydown=function(){if(window.status=event.keyCode,event.keyCode==18&&(altDown=1),(event.keyCode==37||event.keyCode==39||event.keyCode==38||event.keyCode==40)&&altDown==1)return!1;if(event.keyCode==116)return event.keyCode=0,!1;if(event.keyCode==8){var n=event.srcElement.tagName,t=event.srcElement.type;return n=="INPUT"&&t=="text"||n=="TEXTAREA"&&t=="textarea"?!0:!1}},document.onkeyup=function(){if(window.status=event.keyCode,event.keyCode==18&&(altDown=1),(event.keyCode==37||event.keyCode==39||event.keyCode==38||event.keyCode==40)&&altDown==1)return!1;if(event.keyCode==116)return event.keyCode=0,!1;altDown=0},document.onkeypress=function(){if(window.status=event.keyCode,event.keyCode==18&&(altDown=1),(event.keyCode==37||event.keyCode==39||event.keyCode==38||event.keyCode==40)&&altDown==1)return!1;if(event.keyCode==8){var n=event.srcElement.tagName,t=event.srcElement.type;return n=="INPUT"&&t=="text"||n=="TEXTAREA"&&t=="textarea"?!0:!1}altDown=0}):(document.onkeydown=function(n){if(n.keyCode==18&&(altDown=1),(n.keyCode==37||n.keyCode==39||n.keyCode==38||n.keyCode==40)&&altDown==1)return!1;if(n.keyCode==116)try{return event.keyCode=0,!1}catch(n){return!1}if(n.keyCode==8){var t=n.target.tagName,i=n.target.type;return t=="INPUT"&&i=="text"||t=="TEXTAREA"&&i=="textarea"?!0:!1}},document.onkeypress=function(n){if(n.keyCode==18&&(altDown=1),(n.keyCode==37||n.keyCode==39||n.keyCode==38||n.keyCode==40)&&altDown==1)return!1;if(n.keyCode==8){var t=n.target.tagName,i=n.target.type;return t=="INPUT"&&i=="text"||t=="TEXTAREA"&&i=="textarea"?!0:!1}altDown=0},document.onkeyup=function(n){if(n.keyCode==18&&(altDown=1),(n.keyCode==37||n.keyCode==39||n.keyCode==38||n.keyCode==40)&&altDown==1)return!1;if(n.keyCode==116)return n.keycode=0,!1;altDown=0});$(function(){var c,l,nt,b,it,rt,a,s,n,v,f,y,t,e,r,h,u,g;if($('input[type="checkbox"]').ezMark(),$('input[type="radio"]').ezMark(),$("input[type='radio").each(function(){var n=$(this);n.is(":checked")&&n.addClass("is-checked")}),$("input[type='radio']").click(function(){console.log("OK - clicked");var n=$(this);!n.hasClass("is-checked")&&n.is(":checked")?(n.addClass("is-checked"),console.log("we are adding it")):n.parent().hasClass("ez-radio")&&n.is(":checked")&&(n.prop("checked",!1).removeClass("is-checked"),n.parent().removeClass("ez-selected"),console.log("we are removing it"))}),$("select[id*='S1drpAnswer']").change(function(){var n=$(this),t=n.closest("tr").next();t.hasClass("trOtherOption")&&(n.find("option:last").val()==n.val()?t.show():t.hide())}),$("#hidNavSettings").val().split(",")[0]==1&&($("#tdSurveyTitle").html("&nbsp;&nbsp;"),$("#tdSurveyTitle_plaincss").html("&nbsp;")),$("#hidNavSettings").val().split(",")[1]==1&&($("#tdPageTitle").html("&nbsp;&nbsp;"),$(".tdPagenoCol").html("&nbsp;")),$("#hidNavSettings").val().split(",")[2]==1&&($(".tdPageHead").hide(),$(".tdPageno").hide(),$(".tdPagenoCol").html("&nbsp;")),$("#hidNavSettings").val().split(",")[1]==1&&$("#hidNavSettings").val().split(",")[2]==1&&$("#hidSettings").val().split(",")[2]==0&&$("#hidSettings").val().split(",")[4]==0&&($(".tablePageNavigation").hide(),$(".tdPagenoCol").html("&nbsp;")),$("#hidNavSettings").val().split(",")[1]==1&&$("#hidSettings").val().split(",")[5]==6&&($(".tablePageNavigation").hide(),$(".tdPagenoCol").html("&nbsp;")),$("#hidSettings").val().split(",")[5]==6&&$(".tdPagenoCol").html("&nbsp;"),$("#hidNavSettings").val().split(",")[3]==1&&(u=$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel"),$(u).css("visibility","hidden;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").next("b").html("&nbsp;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").parent("th").attr("style","padding-top: 0px; vertical-align: top; padding-left: 1px; visibility:hidden")),$("#hidSurveyRandomizationOn").val()==1&&$("#hidIsPageForRandomization").val()=="True"&&(u=$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel"),$(u).css("visibility","hidden;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").next("b").html("&nbsp;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").parent("th").attr("style","padding-top: 0px; vertical-align: top; padding-left: 1px; visibility:hidden")),$("#hshHideBackButton")!=null&&$("#btnPrevious")!=null&&$("#hshHideBackButton").val()==1&&$("#btnPrevious").hide(),$("#SaveNResume").click(function(){$("#btnNext").hide();$("#btnPrevious").hide();$("#btnFinish").hide();$("#lblProcessing").show();$("#SaveNResume").hide();$("#lblProcess").show();$("#lblProcess").html(Lang.l10.replace("'","'"));setTimeout(function(){$("#lblProcessing").hide();$("#btnNext").show();$("#btnPrevious").show();$("#btnFinish").show();$("#lblProcess").html("");$("#lblProcess").hide();$("#SaveNResume").show()},1e3)}),$("#hidCustomThemeFlag").val()==2)try{c=Globals.GraphicalThemeName;l=c.split("/");l.length>0&&(c=l[l.length-1]);c.toLocaleLowerCase()=="education-1.css"&&($(".wrapper").css({"margin-top":"52px","padding-top":"0px"}),$(".SurveyTitle").css({"margin-top":"-10px"}))}catch(ft){}if($(this).find(".PageNo").attr("style","font-size: 13px !important;"),$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2)if($("#hidCustomThemeFlag").val()==2?($(this).find("h1").attr("style","font-size: 20px !important; background-color: transparent !important; word-wrap: break-word !important; margin: 0px; margin-left:15px !important; text-align: left; display: inline-block;"),$(this).find(".PageTitle").attr("style","font-size: 18px !important;"),$(this).find(".EnvelopeBody").css("font-size","14px")):$(this).find("h1").attr("style","background-color: transparent !important; word-wrap: break-word !important; margin: 0px; text-align: left; display: inline-block;"),$(this).find("#lblProcessing").attr("style","font-size: 14px !important; font-weight: bold !important;"),$(this).find("div.wrap_footer").find("table td").attr("style","font-size: 12px !important; padding-right:2px;line-height:18px;"),$(this).find("table#tblSaveandResume1").find("tbody tr").find("span#lblSnRToolTip1").attr("style","color: Black; font-size: 14px !important;font-weight: normal !important; padding-bottom:5px;"),$(this).find("table#tblSaveandResume1").find("tbody tr").find("span#lblCopySurveyLink1").attr("style","color: Black;font-size: 14px !important; font-weight: normal !important;"),$(this).find("table#tblSaveandResume1").find("tbody tr").find("span#ResumeURL1").attr("style","color: Black;font-size: 14px !important; font-weight: normal !important;"),document.getElementById("hidIsMobile").value=="1"&&$(this).find("table#tblSaveandResume1").find("tbody tr").find("span#ResumeURL1").attr("style","color: Black;font-size: 13px !important; font-weight: normal !important;"),$(this).find("table#tblSaveandResume").find("tbody tr").find("span#lblCopySurveyLink").attr("style","color: Black;font-size: 14px !important; font-weight: normal !important;"),$(this).find("table#tblSaveandResume").find("tbody tr").find("span#ResumeURL").attr("style","color: Black;font-size: 14px !important; font-weight: normal !important;"),$(this).find("table#tblSaveandResume").find("tbody tr").find("span#ResumeURL780").attr("style","color: Black;font-size: 14px !important; font-weight: normal !important;"),$(this).find("a#lnkGreeting").attr("style","font-size: 16px !important; text-decoration:none;"),nt=$(this).find("div.wrap_footer").find("div.bl_btm1").find("table"),$(nt).each(function(){var n=$(this).css("color");n!=""?$("#lnkSurveyMethodsLink").css("color",n):(n=$(".footer").css("color"),$("#lnkSurveyMethodsLink").css("color",n))}),document.getElementById("hidIsMobile").value=="1"){var i,o,p=window.innerWidth,ut=window.innerHeight,w=document.getElementById("hidwindowWidth").value,tt=document.getElementById("hidwindowHeight").value;p/2-10<w?(b=p/ut+10,i=w*b,o=tt*b,p/2-10<i?(i="",o="",$(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("max-width","100%")):($(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("width",i),$(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("height",o))):(i=w,o=tt,$(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("width",i),$(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("height",o))}else{it=document.getElementById("hidwidthflag").value;rt=$(this).find("#tdSurveyTitle_1").width();a=it=="0"?parseFloat(766):parseFloat(948);var k=parseFloat(a)-parseFloat(rt),d=parseFloat(k)/parseFloat(a),i=document.getElementById("hidwindowWidth").value,o=document.getElementById("hidwindowHeight").value,d=parseFloat(k)/parseFloat(i);i>k&&(i=parseFloat(i)*parseFloat(d),o=parseFloat(o)*parseFloat(d),$(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("width",i),$(this).find("div#non_visual_theme").find("div.SurveyTitle").find("table tbody").find("tr td div").find("#imgLogo1").css("height",o))}else $(this).find("div.wrap_footer").find("table td").attr("style"," padding-right:2px;line-height:18px;font-size: 12px !important;"),$(this).find(".PageNo").attr("style","font-size: 12px !important;");s=$(".btn_sty");$(s).each(function(){s.removeClass("btn_sty");s.addClass("btn");s.css("width","auto")});n=$(this).find("table.tblPlain");$(n).each(function(){var k,d,g,h,e,t,c,o,l,s,i,a,v,y,p,f,w,b,nt,tt,r,u;if($(n).find("th.Questions").find("span").css("cursor","default"),$(n).find("th.Questions").find("span").css("line-height","22px"),$(n).find("tbody tr").find("span.lblcount").attr("style","font-size: 12px !important; font-weight:normal !important;"),$(n).find("tbody th.Question_Body").find("span[id*='editImgspan1_']").find("span:first-child").css("line-height","22px"),$(n).find("tbody tr").find("td").find("select[id^='S10drpampm']").attr("style","cursor:default !important; width:60px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpday']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpMonth']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drphrs']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpmin']").attr("style","cursor:default !important; width:75px;"),$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2)if($(n).find("tbody tr").find("span.AnsChoices").find("label").attr("style"," cursor:default;font-size: 14px !important;"),$(n).find("tbody tr").find("td.AnsChoices").find("label").attr("style","cursor:default;font-size: 14px !important;"),document.getElementById("hidIsMobile").value=="1"&&($(n).find("tbody tr").find("div.ez-radio").attr("style","background-position-x: 1px;"),$(n).find("tbody tr").find("div.ez-checkbox").attr("style","background-position-x: 1px;")),$("#hidCustomThemeFlag").val()==2?($(n).find("tbody tr").find("span.AnsChoices").attr("style"," cursor:default; font-size: 14px !important;"),$(n).find("tbody tr").find("td.AnsChoices").find("label.rdlstlabel").attr("style","cursor:default;font-size: 14px !important; "),$(n).find("tbody tr").find("td.AnsChoices").find("label[for^='S2txtrdo']").attr("style","cursor:default;font-size: 14px !important;"),$(n).find("tbody tr").find("td.AnsChoices").find("label[for^='S3txtchk']").attr("style","cursor:default;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("font.AnsChoices").attr("style","font-size: 14px !important;"),$(n).find("tbody tr").find("th.Question_Body.Questions").find('a[style*="display:block;"]').find("span.tooltiptext").attr("style","font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select.AnsChoices").attr("style","cursor:default !important;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpampm']").attr("style","cursor:default !important; width:60px;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpday']").attr("style","cursor:default !important; width:75px;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpMonth']").attr("style","cursor:default !important; width:75px;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drphrs']").attr("style","cursor:default !important; width:75px;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpmin']").attr("style","cursor:default !important; width:75px;font-size: 14px !important;"),$(n).find("tbody tr").find("td.Answer_Body").find("div.AnsChoices").attr("style","padding-left: 3px; padding-top: 8px; padding-bottom: 7px; cursor: default;  line-height:20px;font-size: 14px !important;"),$(n).find("tbody tr").find("td.Answer_Body").find("span[id^='Q5RandomHorizontal_']").find("span.AnsChoices").attr("style","cursor: default; line-height:20px;font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpMonth']").filter("select[class='AnsChoices w75 LongMonth']").attr("style","cursor:default !important; width:120px;font-size: 14px !important;")):($(n).find("tbody tr").find("span.AnsChoices").attr("style"," cursor:default;"),$(n).find("tbody tr").find("td.AnsChoices").find("label.rdlstlabel").attr("style","cursor:default;font-size: 14px !important; "),$(n).find("tbody tr").find("td.AnsChoices").find("label[for^='S2txtrdo']").attr("style","cursor:default;"),$(n).find("tbody tr").find("td.AnsChoices").find("label[for^='S3txtchk']").attr("style","cursor:default;"),$(n).find("tbody tr").find("td").find("font.AnsChoices").attr("style","font-size: 14px !important;"),$(n).find("tbody tr").find("th.Question_Body.Questions").find('a[style*="display:block;"]').find("span.tooltiptext").attr("style","font-size: 14px !important;"),$(n).find("tbody tr").find("td").find("select.AnsChoices").attr("style","cursor:default !important;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpampm']").attr("style","cursor:default !important; width:60px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpday']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpMonth']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drphrs']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td").find("select[id^='S10drpmin']").attr("style","cursor:default !important; width:75px;"),$(n).find("tbody tr").find("td.Answer_Body").find("div.AnsChoices").attr("style","padding-left: 3px; padding-top: 8px; padding-bottom: 7px; cursor: default;  line-height:20px;"),$(n).find("tbody tr").find("td.Answer_Body").find("span[id^='Q5RandomHorizontal_']").find("span.AnsChoices").attr("style","cursor: default; line-height:20px;font-size: 14px !important;")),$(n).find("tbody tr").find("span.lblcount").attr("style","font-size: 12px !important; font-weight:normal !important;"),$(n).find("tbody tr").find('input[type="text"]').css("font-size","14px"),$(n).find("tbody tr").find('input[type="textarea"]').css("font-size","14px"),$(n).find("tbody").find("tr[id^='S7Qns']").find("td div").find("textarea[id^='S7txtAnswer']").css("font-size","14px"),document.getElementById("hidIsMobile").value=="1"?($(n).find("tbody tr").find("span.lblcount").parent().closest("div").attr("style","padding-left:1px;"),$(n).find("tbody").find("tr[id^='S4Qns']").find("span[id^='S4CntDwn']").parents().attr("style","padding-left: 1px !important; padding-top: 2px !important; line-height: 20px;"),$(n).find("tbody tr").find("td.Answer_Body").find("div.AnsChoices").removeClass("AnsChoices").attr("style","padding-left: 1px !important; padding-top: 15px; padding-bottom:0px; cursor: default; font-size: 14px !important;"),$(n).find("tbody").find("tr[id^='S4Qns']").find("img").attr("style","width:2px;")):$(n).find("tbody").find("tr[id^='S4Qns']").find("span[id^='S4CntDwn']").parent().attr("style","padding-left: 1px !important; padding-top: 2px !important; line-height: 20px;"),$(n).find("tbody th.Question_Body").find("span[id*='editImgspan1_']").find("span:first-child").css("line-height","22px"),$(n).find("tbody th.Question_Body").find("span[id*='editImgspan1_']").find("img[id*='editImgspan1_']").css("visibility","hidden"),$(n).find("tbody th.Question_Body").find("span[id*='editImgspan1_']").css("cursor","default"),k=$(n).find("tbody th.Question_Body").find("span[id*='editImgspan1_']"),$(k).each(function(){$(this).removeAttr("onmouseover");$(this).removeAttr("onmouseout")}),d=$(n).find("tbody tr").find("td.AnsChoices").find("span"),$(d).each(function(){$(this).removeAttr("onmouseover");$(this).removeAttr("onmouseout");$(this).removeAttr("onclick")}),g=$(n).find("tbody tr").find("td").find("span[id*='DropDownSpan']"),$(g).each(function(){$(this).removeAttr("onmouseover");$(this).removeAttr("onmouseout")}),$("#hidCustomThemeFlag").val()==2&&$(n).find("th.Question_Body").find("#retnumLabel").attr("style","font-size: 16px !important; vertical-align: top;"),$(n).find("tbody tr").find("div").find("table[id^='Q17RandomVertical']").next("table").find("input[id^='S17txtTotal']").css("width","100px !important;"),document.getElementById("hidIsMessageQuestion").value!=""){for(h=document.getElementById("hidTypeId").value.split(","),e=0;e<h.length;e++)if(t=h[e].split("-"),t[0]!="")if(parseFloat(t[0])==parseFloat(document.getElementById("hidIsMessageQuestion").value))for(c=document.getElementById("hidFontSize").value.split(","),o=0;o<c.length;o++)i=c[o].split("-"),parseFloat(t[1])==parseFloat(i[1])&&($(n).find("th#"+parseFloat(t[1])).find("span").removeClass(),$(n).find("th#"+parseFloat(t[1])).find("p").removeClass(),$(n).find("th#"+parseFloat(t[1])).find("span").css("font-size",i[0]+"px"));else parseFloat(t[0])==13||parseFloat(t[0])==14||parseFloat(t[0])==15||parseFloat(t[0])==16?($("#hidCustomThemeFlag").val()==2?($(n).find("th.Questions").find("span.Questions").css("font-size","16px"),$(n).find("th.Questions").find("span.Questions").find("span").attr("style"," font-size: 16px !important;padding: 0px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family: Verdana, Geneva, sans-serif;")):$(n).find("th.Questions").find("span.Questions").find("span").attr("style"," padding: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family: Verdana, Geneva, sans-serif;"),document.getElementById("hidIsMobile").value=="0"?($("#hidCustomThemeFlag").val()==2&&($(n).find("th.Questions").find("span").css("font-size","16px"),$(n).find("th.Questions").find("span.Questions").css("font-size","16px")),$(n).find("th.Questions").find("span").css("line-height","22px"),$(n).find("th#"+parseFloat(t[1])).css("padding-top","0px")):$(n).find("span.Question_Body.Questions").parent("th.Question_Body.Questions").css("padding-top","2px")):document.getElementById("hidIsMobile").value=="1"?parseFloat(t[0])!=13&&parseFloat(t[0])!=14&&parseFloat(t[0])!=15&&parseFloat(t[0])!=16?parseFloat(t[0])==2?$("#hidCustomThemeFlag").val()==2?$(n).find("th#"+parseFloat(t[1])).css("padding-top","0px"):($(n).find("th#"+parseFloat(t[1])).prev("th.Questions").css("padding-top","2px"),$(n).find("th#"+parseFloat(t[1])).css("padding-top","4px")):$(n).find("th#"+parseFloat(t[1])).css("padding-top","2px"):$(n).find("span.Question_Body.Questions").parent("th.Question_Body.Questions").css("padding-top","2px"):$("#hidCustomThemeFlag").val()==2?($(n).find("th.Questions").find("span").css("font-size","16px"),$(n).find("th.Questions").find("span.Questions").css("font-size","16px"),$(n).find("th#"+parseFloat(t[1])).css("padding-top","0px")):$(n).find("th#"+parseFloat(t[1])).css("padding-top","0px")}else $("#hidCustomThemeFlag").val()=="2"&&($(n).find("th.Questions").find("span").css("font-size","16px"),$(n).find("th.Questions").find("span.Questions").css("font-size","16px")),document.getElementById("hidIsMobile").value=="0"&&$(n).find("th.Questions").find("span").css("line-height","22px"),$(n).find("th#"+parseFloat(t[1])).css("padding-top","0px"),$(n).find("strong").attr("style"," font-weight: 700; padding: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;font-family: Verdana, Geneva, sans-serif;"),parseFloat(t[0])!=13&&parseFloat(t[0])!=14&&parseFloat(t[0])!=15&&parseFloat(t[0])!=16?parseFloat(t[0])==2?($(n).find("th#"+parseFloat(t[1])).prev("th.Questions").css("padding-top","2px"),$(n).find("th#"+parseFloat(t[1])).css("padding-top","4px")):$(n).find("th#"+parseFloat(t[1])).css("padding-top","2px"):$(n).find("span.Question_Body.Questions").parent("th.Question_Body.Questions").css("padding-top","2px");else for(l=document.getElementById("hidTypeId").value.split(","),s=0;s<l.length;s++)i=l[s].split("-"),document.getElementById("hidIsMobile").value=="1"?parseFloat(t[0])==13&&parseFloat(t[0])==14&&parseFloat(t[0])==15&&parseFloat(t[0])==16?$(n).find("th#"+parseFloat(i[1])).css("padding-top","2px"):$(n).find("th#"+parseFloat(i[1])).css("padding-top","0px"):$(n).find("th#"+parseFloat(i[1])).css("padding-top","0px");a=$(n).find("table[id^='Q13RandomVertical_']");$(a).each(function(){$(a).find("tbody").find("tr.MatrixHeadingRow.Questions").removeClass("Questions")});v=$(n).find("table[id^='Q14RandomVertical_']");$(v).each(function(){$(v).find("tbody").find("tr.MatrixHeadingRow.Questions").removeClass("Questions")});y=$(n).find("table[id^='Q15RandomVertical_']");$(y).each(function(){$(y).find("tbody").find("tr.MatrixHeadingRow.Questions").removeClass("Questions")});p=$(n).find("table[id^='Q16RandomVertical_']");$(p).each(function(){$(p).find("tbody").find("tr.MatrixHeadingRow.Questions").removeClass("Questions")});$(n).find("tbody").find("tr[id^='S14Qns']").next("tr").addClass("Answer_Body");document.getElementById("hidIsMobile").value=="1"&&$(n).find("tbody tr").find("th.Question_Body.Questions").find('a[style*="display:block;"]').find("span.tooltiptext").attr("style","font-size: 14px !important;");f=$(n).find("table[id^='Q2HorizontalRatingScaleRandom_']");$(f).each(function(){$(f).find("tbody").find("tr#HorizontalRatOneAnsRdoTr").find("td.AnsChoices").find("span").find("input[name^='txt-']").remove();document.getElementById("hidIsMobile").value=="1"?($(f).find("tbody tr").find("span.lblcount").parent().closest("div").attr("style","padding-left:2px; padding-top:5px;"),$(f).find("tbody tr").find("img").attr("style","height:1px;width:0px;border-width:0px;")):$(f).find("tbody tr").find("span[id^='S2lblCntDwn']").parent().closest("div").attr("style","padding-left:2px; padding-top:1px;")});$(n).find("tr td").find("input[id^='S17txtTotal']").attr("style","font-size: 14px !important; border-style: none; cursor: text; ");$(n).find("tr td.AnsChoices").find("select[id*='S16drpAnswer']").attr("style","overflow:hidden; white-space:nowrap; text-overflow:ellipsis; width:95%; font-size: 14px !important;");document.getElementById("hidIsMobile").value=="1"?($(n).find("tr.MatrixHeadingRow").find("td.headingquestions").attr("style","padding:2px;font-weight:bold; "),$(n).find("tr.MatrixRow1").find("td.AnsChoices").attr("style","padding: 2px; cursor: default;"),$(n).find("tr.MatrixRow1").find("table tbody").find("tr[id^='rd']").find("td.AnsChoices").attr("style","padding: 2px; cursor: default; font-weight:bold;"),$(n).find("tr.MatrixRow2").find("td.AnsChoices").attr("style","padding: 2px; cursor: default;"),$(n).find("tr.MatrixRow2").find("table tbody").find("tr[id^='rd']").find("td.AnsChoices").attr("style","padding: 2px; cursor: default; font-weight:bold;")):document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2"?($(n).find("tr.MatrixHeadingRow").find("td.headingquestions").attr("style","padding:8px;"),$(n).find("tr.MatrixRow1").find("td.AnsChoices").attr("style","padding: 8px; cursor: default;"),$(n).find("tr.MatrixRow2").find("td.AnsChoices").attr("style","padding: 8px; cursor: default; "),document.getElementById("hidCustomThemeFlag").value=="2"&&($(n).find("tr.MatrixHeadingRow").find("td.headingquestions").css("font-size","14px"),$(n).find("tr.MatrixRow1").find("td.AnsChoices").css("font-size","14px"),$(n).find("tr.MatrixRow2").find("td.AnsChoices").css("font-size","14px"))):($(n).find("tr.MatrixHeadingRow").find("td.headingquestions").attr("style","padding:8px;"),$(n).find("tr.MatrixRow1").find("td.AnsChoices").attr("style","padding: 8px; cursor: default;"),$(n).find("tr.MatrixRow2").find("td.AnsChoices").attr("style","padding: 8px; cursor: default; "),$(n).find("tr.MatrixRow1").find("td.AnsChoices").removeClass("AnsChoices"),$(n).find("tr.MatrixRow2").find("td.AnsChoices").removeClass("AnsChoices"));(document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2")&&(w=$(n).find("tr.MatrixRow1").find("td.AnsChoices").find("input[id^='S15txtAnswer-']"),$(w).each(function(n){$(w[n]).attr("style","cursor: text; font-size: 14px !important; width:95%")}),b=$(n).find("tr.MatrixRow2").find("td.AnsChoices").find("input[id^='S15txtAnswer-']"),$(b).each(function(n){$(b[n]).attr("style","cursor: text; font-size: 14px !important; width:95%")}));$(".dvEventInformationMainContainer").each(function(){setFontToEventDetails();(document.getElementById("hidCustomThemeFlag").value=="1"||document.getElementById("hidCustomThemeFlag").value=="2")&&($(this).find(".spnEventTitle").attr("style","padding:0; margin:0;font-weight:bold;"),$(this).find(".spnEventTitle").parent("div").attr("style","padding:0px 0 15px 0;"),$(this).find(".spnEventDetailsText").attr("style","font-weight:bold;"),$(this).find(".spnEventDesc").attr("style","font-weight:normal;"),$(this).find(".spnEventDate").attr("style","font-weight:bold;"),$(this).find(".spnEventTime").attr("style","font-weight:bold;"),$(this).find(".spnEventTimeZone").attr("style","font-weight:bold;"),$(this).find(".spnEventLocation").attr("style","font-weight:normal;"),$(this).find(".spanEventAddress").attr("style","font-weight:normal;"),$(this).find(".spnContactNumber").attr("style","font-weight:bold !important;"),$(this).find(".bodytext_small").attr("style","padding-top:5px;text-align: center;"))});$(n).find("tbody tr").find(".AnsChoices").css("cursor","default");$("#hidCustomThemeFlag").val()==0&&($(n).find("tbody tr[id^='S2Qns']").find("span.AnsChoices").attr("style","cursor:default;"),$(n).find("tbody table#Q2Random").find("td.AnsChoices").css("padding-left","2px"));$(n).find("tbody tr").find('input[type="text"]').css("cursor","text");$(n).find("tbody tr").find("textarea").css("cursor","text");$(n).find("tbody tr").find("textarea").css("font-size","14px");$(n).find("tbody th.Question_Body").find("span[id*='editImgspan1_']").attr("style","cursor:default !important;");$("#hidLogoSetting").val()==0&&(nt=$(n).find("tr[id^='S12Qns']").find("div table").first(),tt=$(nt).find("tbody tr").find("td").find("font.AnsChoicesR"),$(tt).removeClass("AnsChoicesR").addClass("AnsChoices"));r=$(n).find("tbody tr").find("table#Q3Vertical");$(r).each(function(n){document.getElementById("hidIsMobile").value=="1"?($(r[n]).find("input[id^='S3txtBox']").closest("td").attr("style","padding-left:2px;"),$(r[n]).find("textarea[id^='S3txtBox']").closest("td").attr("style","padding-left:2px;")):($(r[n]).find("input[id^='S3txtBox']").closest("td").attr("style","padding-left:10px;"),$(r[n]).find("textarea[id^='S3txtBox']").closest("td").attr("style","padding-left:10px;"),$(r[n]).find("textarea[id^='S3txtBox']").css("font-size","14px"))});u=$(n).find("tbody tr").find("table#Q3Horizontal");$(u).each(function(n){document.getElementById("hidIsMobile").value=="1"?($(u[n]).find("input[id^='S3txtBox']").closest("td").attr("style","padding-left:2px;"),$(u[n]).find("textarea[id^='S3txtBox']").closest("td").attr("style","padding-left:2px;")):($(u[n]).find("input[id^='S3txtBox']").closest("td").attr("style","padding-left:10px;"),$(u[n]).find("textarea[id^='S3txtBox']").closest("td").attr("style","padding-left:10px;"),$(u[n]).find("textarea[id^='S3txtBox']").css("font-size","14px"))})});v=$(n).find("table[id^='Q10RandomVertical_']");$(v).each(function(){$(v).find("tbody tr").find("td.AnsChoices").next("td").find("input[id^='S10txt']").css("width","");$("#hidCustomThemeFlag").val()==2&&$(v).find("tbody tr").find("td.AnsChoices").next("td").find("input[id^='S10txtYear']").css("width","75px")});$(n).find("tbody").next("tr[id^='S8Qns']").next("td div").find("input[id^='S8txtAnswer']").css("width","452px");f=$(n).find("#tblAddComments");$(f).each(function(){$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2?document.getElementById("hidIsMobile").value=="1"?jQuery(f).find("td#AddComments.AnsChoices").find(".AnsChoices").attr("style","padding-left: 1px !important;"):jQuery(f).find("span[id^='S2CntDwn_commentsTest1']").closest("div").attr("style","padding-left:0px; padding-top:1px;"):jQuery(f).find("td#AddComments.AnsChoices").find(".AnsChoices").attr("style","padding-left: 1px !important;");document.getElementById("hidIsMobile").value=="1"&&jQuery(f).find("td#AddCommentBox").attr("style","padding-left: 2px !important;");jQuery(f).parent("td#AddCommentBox.AnsChoices").find("input[id^='S2txtBox_comments']").attr("style","padding-left: 43px !important;");jQuery(f).find("tbody tr").find('input[type="textbox"]').css("cursor","text");jQuery(f).find("tbody tr").find("textarea").css("cursor","text");jQuery(f).find("tbody tr").find("textarea").css("font-size","14px");jQuery(f).find("tbody tr").find("span.lblcount").attr("style","font-size: 12px !important;")});($("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2)&&(y=$(n).find("table[id^='ifother']"),$(y).each(function(n){jQuery(y[n]).find("label[for^='S2txtrdo']").attr("style","font-size: 14px !important;");jQuery(y[n]).find("textarea[id^='S2txtBox']").attr("style","font-size: 14px !important;")}));t=$(n).find("table[id^='tblAddCommentsv']");$(t).each(function(n){var r=jQuery(t[n]).find("input[id^='S2txtBox_comments']"),i;jQuery(r).each(function(){jQuery(t[n]).find("label[for^='S2txtrdo']").length>0?(document.getElementById("hidIsMobile").value=="1"?jQuery(r).parent("td").attr("style","padding-left: 4px !important; "):jQuery(r).parent("td").attr("style","padding-left: 5px !important; "),($("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2)&&jQuery(t[n]).find("label[for^='S2txtrdo']").attr("style","font-size: 14px !important;")):document.getElementById("hidIsMobile").value=="1"?jQuery(r).parent("td").attr("style","padding-left: 2px !important;"):(jQuery(r).parent("td").attr("style","padding-left: 20px !important;"),jQuery(r).parent("td.Q2VertAdditionalTBLeftPadding").attr("style","padding-left: 4px !important;"))});jQuery(t[n]).find("span[id^='S2lbl_comments']").each(function(){jQuery(t[n]).find("label[for^='S2txtrdo']").length>0?$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2?(jQuery(t[n]).find("span[id^='S2lbl_comments']").attr("style","padding-left: 1px !important; font-size: 14px !important; line-height:20px;"),document.getElementById("hidIsMobile").value=="1"&&jQuery(t[n]).find("span[id^='S2lbl_comments']").attr("style","padding-left: 0px !important; font-size: 14px !important; line-height:20px;")):jQuery(t[n]).find("span[id^='S2lbl_comments']").attr("style","padding-left: 0px !important;"):document.getElementById("hidIsMobile").value=="1"?jQuery(t[n]).find("span[id^='S2lbl_comments']").attr("style","padding-left: 0px !important; padding-top:10px; font-size: 14px !important; line-height:20px;"):(jQuery(t[n]).find("span[id^='S2lbl_comments']").parent("td").attr("style","padding-left: 22px !important; font-size: 14px !important; line-height:20px;"),jQuery(t[n]).find("span[id^='S2lbl_comments']").parent("td.Padding-left5").attr("style","padding-left: 4px !important; font-size: 14px !important; line-height:20px;"))});i=jQuery(t[n]).find("textarea[id^='S2txtBox_comments']");jQuery(i).each(function(){jQuery(t[n]).find("label[for^='S2txtrdo']").length>0?$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2?(jQuery(i).parent("td").attr("style","padding-left: 4px !important; font-size: 14px !important;"),document.getElementById("hidIsMobile").value=="1"&&jQuery(i).parent("td").attr("style","padding-left: 3px !important; font-size: 14px !important;")):jQuery(i).parent("td").attr("style","padding-left: 4px !important; line-height:20px;"):document.getElementById("hidIsMobile").value=="1"?jQuery(i).parent("td").attr("style","padding-left: 3px !important;"):(jQuery(i).parent("td").attr("style","padding-left: 20px !important;"),jQuery(i).parent("td.Q2VertAdditionalTBLeftPadding").attr("style","padding-left: 4px !important;"))});jQuery(t[n]).find("tbody tr").find('input[type="textbox"]').css("cursor","text");jQuery(t[n]).find("tbody tr").find("textarea").css("cursor","text");jQuery(t[n]).find("tbody tr").find("textarea").css("font-size","14px")});e=$(n).find("#Q2RandomHorizontal");$(e).each(function(){$(e).find("td.AnsChoices").css("padding-left","10px");$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2?document.getElementById("hidIsMobile").value=="1"?($(e).find("td#AddComments.AnsChoices").attr("style","padding-left:1px !important; font-size: 14px !important; line-height:20px;"),$(e).find("td#AddComments.AnsChoices").closest("td").attr("style","padding:0px !important;")):$(e).find("td#AddComments.AnsChoices").attr("style","padding-left:10px !important; font-size: 14px !important; line-height:20px;"):$(e).find("td#AddComments.AnsChoices").attr("style","padding-left:10px !important; line-height:20px;");jQuery(e).find("tbody tr").find('input[type="textbox"]').css("cursor","text");jQuery(e).find("tbody tr").find("textarea").css("cursor","text");jQuery(e).find("tbody tr").find("textarea").css("font-size","14px")});r=$(n).find("#Q2Random");$(r).each(function(n){$("#hidCustomThemeFlag").val()==1||$("#hidCustomThemeFlag").val()==2?document.getElementById("hidIsMobile").value=="1"?($(r[n]).find("td#AddComments.AnsChoices").attr("style","padding-left:1px !important; font-size: 14px !important; line-height:20px;"),$(r[n]).find("tr").children("td:first").attr("style","padding:0px;")):($("#hidCustomThemeFlag").val()==1?$(r[n]).find("td#AddComments.AnsChoices").attr("style","padding-left:11px !important; font-size: 14px !important; line-height:20px;"):$(r[n]).find("td#AddComments.AnsChoices").attr("style","padding-left:13px !important; font-size: 14px !important; line-height:20px;"),$(r[n]).find("td#AddComments.Q2RandomTDLeftPadding").attr("style","padding-left:5px !important; font-size: 14px !important; line-height:20px;")):($(r[n]).find("td#AddComments.AnsChoices").attr("style","padding-left:10px !important;"),$(r[n]).find("td#AddComments.Q2RandomTDLeftPadding").attr("style","padding-left:5px !important;"));jQuery(r[n]).find("tbody tr").find('input[type="textbox"]').css("cursor","text");jQuery(r[n]).find("tbody tr").find("textarea").css("cursor","text");jQuery(r[n]).find("tbody tr").find("textarea").css("font-size","14px")});h=$(n).find("table[id^='Q5HorizontalRatingScaleRandom_']");$(h).each(function(){$(h).find("tbody").find("tr").find("td.AnsChoices").find("span").find("input[name^='txt-']").remove();$(h).find("tbody tr").find("span#S5lbl_comments").parent().closest("td").attr("colspan",3);document.getElementById("hidIsMobile").value=="1"&&$(h).find("tbody tr").find("span#S5lbl_comments").text("Additional Comments")});$("#hidNavSettings").val().split(",")[3]==1&&(u=$(n).find("th.Question_Body").find("#retnumLabel"),$(u).attr("style","display: none;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").next("b").html("&nbsp;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").prev("b").attr("style","display: block;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").parent("th").attr("style","padding-top: 0px; vertical-align: top; padding-left: 1px;"));$("#hidSurveyRandomizationOn").val()==1&&$("#hidIsPageForRandomization").val()=="True"&&(u=$(n).find("th.Question_Body").find("#retnumLabel"),$(u).attr("style","display: none;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").next("b").html("&nbsp;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").prev("b").attr("style","display: block;"),$(this).find("table.tblPlain").find("th.Question_Body").find("#retnumLabel").parent("th").attr("style","padding-top: 0px; vertical-align: top; padding-left: 1px;"));$(".dvEventInformationMainContainer").find("a").removeAttr("onclick");g=$("#hidIsSecure").val();g!=""&&replaceGmapUrlasperProtocol(".dvEventInformationMainContainer",g);$(".spnEventDesc").each(function(){$(this).css("white-space","pre-line");$(this).css("padding-right","12px")});cancelpasteventsdesign();setFontToEventDetails()});Array.prototype.shuffle=function(n){for(var i,r,u,t=0;t<this.length;t++)i=parseInt(Math.random()*this.length),r=this[i],this[i]=this[t],this[t]=r,n!=null&&(u=n[i],n[i]=n[t],n[t]=u)};$(document).ready(function(){function t(n){n.stopPropagation();n.preventDefault()}function i(n){n.stopPropagation();n.preventDefault()}function r(n){var h,v,r,d,g,nt,i;n.stopPropagation();n.preventDefault();h=n.target.id;h=h.split("-");var c="",y=0,w=0,b,u=h[0].substring(3,h[0].length),l=h[1],tt="S24QnsMan"+u,it="S24ManFile"+u,f="fileUploadName"+u,o="btnChoose"+u,e="NoFiletext"+u,s="MsgText"+u,t=l;if(selectedFiles=n.dataTransfer.files,document.getElementById(e).innerHTML=Lang.l10.replace("'","'"),fnHideButtons(),selectedFiles.length>0){c=n.dataTransfer.files[0].name;fileSize=n.dataTransfer.files[0].size;var k=new FormData,rt=c.match(/\.[0-9a-z]+$/i),ut=c.indexOf("$~$"),a=document.getElementById("fileupload").value.split("#"),p="";if(a!="")for(v=0;v<a.length;v++)if(r=a[v].split("-"),parseFloat(r[0])==parseFloat(u)){if(r[1].toLowerCase()!=""&&(p="."+r[1].toLowerCase().replace(/,/g,",.")),d=r[3].toLowerCase().trim(),y=d=="kb"?parseFloat(r[2])*1024:parseFloat(r[2])*1048576,g=r[5].toLowerCase().trim(),w=g=="kb"?parseFloat(r[4])*1024:parseFloat(r[4])*1048576,document.getElementById("fileUploadsize").value=y,document.getElementById("allowtypes").value=r[1],document.getElementById("fileUploadQId").value=u,document.getElementById("fileUploadQNo").value=l,p!=""&&p.toLowerCase().indexOf(rt.toString().toLowerCase())==-1){nt=", ";i=Lang.l87;i=i.replace("[Allowed-File-Type-Extensions]",r[1].replace(/,/g,nt));document.getElementById(t).innerHTML=i;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(f).value="";document.getElementById(e).innerHTML="("+Lang.l84+")";document.getElementById(s).innerHTML="";document.getElementById(o).value=Lang.l82;return}if(ut>0){i=Lang.l96;document.getElementById(t).innerHTML=i;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(f).value="";document.getElementById(e).innerHTML="("+Lang.l84+")";document.getElementById(s).innerHTML="";document.getElementById(o).value=Lang.l82;return}if(parseFloat(y)<=fileSize){i=Lang.l88;i=i.replace("[X]",r[2]+""+r[3].trim());document.getElementById(t).innerHTML=i;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(f).value="";document.getElementById(e).innerHTML="("+Lang.l84+")";document.getElementById(s).innerHTML="";document.getElementById(o).value=Lang.l82;return}if(parseFloat(w)>=fileSize){i=Lang.l94;i=i.replace("[X]",r[4]+""+r[5].trim());document.getElementById(t).innerHTML=i;document.getElementById(t).style.display="block";document.getElementById(t).style.fontSize="14px";fnShowButtons();window.location.hash="pt"+t;document.getElementById(f).value="";document.getElementById(e).innerHTML="("+Lang.l84+")";document.getElementById(s).innerHTML="";document.getElementById(o).value=Lang.l82;return}k.append(document.getElementById("hidResId").value+"-"+u+"-"+selectedFiles[0].name,selectedFiles[0]);$.ajax({type:"POST",url:"/FileUploader.ashx",contentType:!1,processData:!1,data:k,success:function(n){if(isUploaded=1,b=u+"$~$"+c+"$~$"+fileSize+"$~$"+n,document.getElementById("uploadedFile").value.includes(u)){var t=document.getElementById("uploadedFile").value;document.getElementById("uploadedFile").value=t.replace(u,0)}document.getElementById("uploadedFile").value=document.getElementById("uploadedFile").value+"#"+b;document.getElementById(f).value=c;document.getElementById(e).innerHTML=c;document.getElementById(o).value=Lang.l91;document.getElementById(s).innerHTML='&nbsp;<img src="\\images\\questions\\delete.png" />&nbsp;<a href="#pt'+l+'" onclick="fnDeleteFile(1,'+u+","+fileSize+","+l+');"  target="_self"><font size="2px" color="blue"><%=Server.HtmlDecode(Convert.ToString(dtLanguage.Rows[92][2])) %><\/font><\/a>';document.getElementById(s).style.visibility="visible";document.getElementById("uploadedFileStatus").value=1;document.getElementById(l).innerHTML="";document.getElementById(l).style.display="none";document.getElementById(tt).value=1;document.getElementById(it).value=1;fnShowButtons();u=0},error:function(n){var c,i,r,h;if(n.status==403){for(c=document.getElementById("fileupload").value.split("#"),i=null,r=0;r<c.length;r++)if(h=a[r].split("-"),parseFloat(h[0])==parseFloat(u)){i=h;break}i!=null&&showUnsupportedFileTypeError(i,t,f,e,s,o,!0)}else n.status==500&&(document.getElementById(t).innerHTML='An error has occurred whilst processing your file, please click "Choose file" and try again.')}})}}else return document.getElementById(e).innerHTML=document.getElementById(f).value!=""?document.getElementById(f).value:"("+Lang.l84+")",document.getElementById(o).value=Lang.l82,fnShowButtons(),!1}if(!Modernizr.draganddrop){alert("This browser doesn't support File API and Drag & Drop features of HTML5!");return}var n;n=$('[id^="box"]');$(n).each(function(u){n[u].addEventListener("dragenter",t,!0);n[u].addEventListener("dragover",i,!0);n[u].addEventListener("drop",r,!0)})});qq=qq||{};qq.extend=function(n,t){for(var i in t)n[i]=t[i]};qq.indexOf=function(n,t,i){if(n.indexOf)return n.indexOf(t,i);i=i||0;var r=n.length;for(i<0&&(i+=r);i<r;i++)if(i in n&&n[i]===t)return i;return-1};qq.getUniqueId=function(){var n=0;return function(){return n++}}();qq.attach=function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)};qq.detach=function(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.attachEvent&&n.detachEvent("on"+t,i)};qq.preventDefault=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1};qq.insertBefore=function(n,t){t.parentNode.insertBefore(n,t)};qq.remove=function(n){n.parentNode.removeChild(n)};qq.contains=function(n,t){return n==t?!0:n.contains?n.contains(t):!!(t.compareDocumentPosition(n)&8)};qq.toElement=function(){var n=document.createElement("div");return function(t){n.innerHTML=t;var i=n.firstChild;return n.removeChild(i),i}}();qq.css=function(n,t){t.opacity!=null&&typeof n.style.opacity!="string"&&typeof n.filters!="undefined"&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")");qq.extend(n.style,t)};qq.hasClass=function(n,t){var i=new RegExp("(^| )"+t+"( |$)");return i.test(n.className)};qq.addClass=function(n,t){qq.hasClass(n,t)||(n.className+=" "+t)};qq.removeClass=function(n,t){var i=new RegExp("(^| )"+t+"( |$)");n.className=n.className.replace(i," ").replace(/^\s+|\s+$/g,"")};qq.setText=function(n,t){n.innerText=t;n.textContent=t};qq.children=function(n){for(var i=[],t=n.firstChild;t;)t.nodeType==1&&i.push(t),t=t.nextSibling;return i};qq.getByClass=function(n,t){var i;if(n.querySelectorAll)return n.querySelectorAll("."+t);var u=[],r=n.getElementsByTagName("*"),f=r.length;for(i=0;i<f;i++)qq.hasClass(r[i],t)&&u.push(r[i]);return u};qq.obj2url=function(n,t,i){var u=[],f="&",e=function(n,i){var r=t?/\[\]$/.test(t)?t:t+"["+i+"]":i;r!="undefined"&&i!="undefined"&&u.push(typeof n=="object"?qq.obj2url(n,r,!0):Object.prototype.toString.call(n)==="[object Function]"?encodeURIComponent(r)+"="+encodeURIComponent(n()):encodeURIComponent(r)+"="+encodeURIComponent(n))},o,r;if(!i&&t)f=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",u.push(t),u.push(qq.obj2url(n));else if(Object.prototype.toString.call(n)==="[object Array]"&&typeof n!="undefined")for(r=0,o=n.length;r<o;++r)e(n[r],r);else if(typeof n!="undefined"&&n!==null&&typeof n=="object")for(r in n)e(n[r],r);else u.push(encodeURIComponent(t)+"="+encodeURIComponent(n));return u.join(f).replace(/^&/,"").replace(/%20/g,"+")};qq=qq||{};qq.FileUploaderBasic=function(n){this._options={debug:!1,action:"/server/upload",params:{},button:null,multiple:!0,maxConnections:3,allowedExtensions:[],sizeLimit:0,minSizeLimit:0,onSubmit:function(){},onProgress:function(){},onComplete:function(){},onCancel:function(){},messages:{typeError:"{file} has invalid extension. Only {extensions} are allowed.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",onLeave:"The files are being uploaded, if you leave now the upload will be cancelled."},showMessage:function(){}};qq.extend(this._options,n);this._filesInProgress=0;this._handler=this._createUploadHandler();this._options.button&&(this._button=this._createUploadButton(this._options.button));this._preventLeaveInProgress()};qq.FileUploaderBasic.prototype={setParams:function(n){this._options.params=n},getInProgress:function(){return this._filesInProgress},_createUploadButton:function(n){var t=this;return new qq.UploadButton({element:n,multiple:this._options.multiple&&qq.UploadHandlerXhr.isSupported(),onChange:function(n){t._onInputChange(n)}})},_createUploadHandler:function(){var n=this,t;return t=qq.UploadHandlerXhr.isSupported()?"UploadHandlerXhr":"UploadHandlerForm",new qq[t]({debug:this._options.debug,action:this._options.action,maxConnections:this._options.maxConnections,onProgress:function(t,i,r,u){n._onProgress(t,i,r,u);n._options.onProgress(t,i,r,u)},onComplete:function(t,i,r){n._onComplete(t,i,r);n._options.onComplete(t,i,r)},onCancel:function(t,i){n._onCancel(t,i);n._options.onCancel(t,i)}})},_preventLeaveInProgress:function(){var n=this;qq.attach(window,"beforeunload",function(t){if(n._filesInProgress){var t=t||window.event;return t.returnValue=n._options.messages.onLeave,n._options.messages.onLeave}})},_onSubmit:function(){this._filesInProgress++},_onProgress:function(){},_onComplete:function(n,t,i){this._filesInProgress--;i.error&&this._options.showMessage(i.error)},_onCancel:function(){this._filesInProgress--},_onInputChange:function(n){this._handler instanceof qq.UploadHandlerXhr?this._uploadFileList(n.files):this._validateFile(n)&&this._uploadFile(n);this._button.reset()},_uploadFileList:function(n){for(var t=0;t<n.length;t++)if(!this._validateFile(n[t]))return;for(t=0;t<n.length;t++)this._uploadFile(n[t])},_uploadFile:function(n){var t=this._handler.add(n),i=this._handler.getName(t);this._options.onSubmit(t,i)!==!1&&(this._onSubmit(t,i),this._handler.upload(t,this._options.params))},_validateFile:function(n){var t,i;if(n.value?t=n.value.replace(/.*(\/|\\)/,""):(t=n.fileName!=null?n.fileName:n.name,i=n.fileSize!=null?n.fileSize:n.size),this._isAllowedExtension(t)){if(i===0)return this._error("emptyError",t),!1;if(i&&this._options.sizeLimit&&i>this._options.sizeLimit)return this._error("sizeError",t),!1;if(i&&i<this._options.minSizeLimit)return this._error("minSizeError",t),!1}else return this._error("typeError",t),!1;return!0},_error:function(n,t){function i(n,t){r=r.replace(n,t)}var r=this._options.messages[n];i("{file}",this._formatFileName(t));i("{extensions}",this._options.allowedExtensions.join(", "));i("{sizeLimit}",this._formatSize(this._options.sizeLimit));i("{minSizeLimit}",this._formatSize(this._options.minSizeLimit));this._options.showMessage(r)},_formatFileName:function(n){return n.length>33&&(n=n.slice(0,19)+"..."+n.slice(-13)),n},_isAllowedExtension:function(n){var r=-1!==n.indexOf(".")?n.replace(/.*[.]/,"").toLowerCase():"",i=this._options.allowedExtensions,t;if(!i.length)return!0;for(t=0;t<i.length;t++)if(i[t].toLowerCase()==r)return!0;return!1},_formatSize:function(n){var t=-1;do n=n/1024,t++;while(n>99);return Math.max(n,.1).toFixed(1)+["kB","MB","GB","TB","PB","EB"][t]}};qq.FileUploader=function(n){qq.FileUploaderBasic.apply(this,arguments);qq.extend(this._options,{element:null,listElement:null,template:'<div class="qq-uploader"><div class="qq-upload-button"><span class="button1234">Browse&nbsp;<\/span><\/div><ul class="qq-upload-list"><\/ul><\/div>',fileTemplate:'<li><span class="qq-upload-file"><\/span><span class="qq-upload-spinner"><\/span><span class="qq-upload-size"><\/span><a class="qq-upload-cancel" href="#">Cancel<\/a><span class="qq-upload-failed-text">Failed<\/span><\/li>',classes:{button:"qq-upload-button",list:"qq-upload-list",file:"qq-upload-file",spinner:"qq-upload-spinner",size:"qq-upload-size",cancel:"qq-upload-cancel",success:"qq-upload-success",fail:"qq-upload-fail"}});qq.extend(this._options,n);this._element=this._options.element;this._element.innerHTML=this._options.template;this._listElement=this._options.listElement||this._find(this._element,"list");this._classes=this._options.classes;this._button=this._createUploadButton(this._find(this._element,"button"));this._bindCancelEvent()};qq.extend(qq.FileUploader.prototype,qq.FileUploaderBasic.prototype);qq.extend(qq.FileUploader.prototype,{_find:function(n,t){var i=qq.getByClass(n,this._options.classes[t])[0];if(!i)throw new Error("element not found "+t);return i},_setupDragDrop:function(){var t=this,n=this._find(this._element,"drop"),i=new qq.UploadDropZone({element:n,onEnter:function(i){qq.addClass(n,t._classes.dropActive);i.stopPropagation()},onLeave:function(n){n.stopPropagation()},onLeaveNotDescendants:function(){qq.removeClass(n,t._classes.dropActive)},onDrop:function(i){n.style.display="none";qq.removeClass(n,t._classes.dropActive);t._uploadFileList(i.dataTransfer.files)}});n.style.display="none";qq.attach(document,"dragenter",function(t){i._isValidFileDrag(t)&&(n.style.display="block")});qq.attach(document,"dragleave",function(t){if(i._isValidFileDrag(t)){var r=document.elementFromPoint(t.clientX,t.clientY);r&&r.nodeName!="HTML"||(n.style.display="none")}})},_onSubmit:function(n,t){qq.FileUploaderBasic.prototype._onSubmit.apply(this,arguments);this._addToList(n,t)},_onProgress:function(n,t,i,r){var f,u,e;qq.FileUploaderBasic.prototype._onProgress.apply(this,arguments);f=this._getItemByFileId(n);u=this._find(f,"size");u.style.display="inline";e=i!=r?Math.round(i/r*100)+"% from "+this._formatSize(r):this._formatSize(r);qq.setText(u,e)},_onComplete:function(n,t,i){qq.FileUploaderBasic.prototype._onComplete.apply(this,arguments);var r=this._getItemByFileId(n);qq.remove(this._find(r,"cancel"));qq.remove(this._find(r,"spinner"));i.success?qq.addClass(r,this._classes.success):qq.addClass(r,this._classes.fail)},_addToList:function(n,t){var i=qq.toElement(this._options.fileTemplate),r;i.qqFileId=n;r=this._find(i,"file");qq.setText(r,this._formatFileName(t));this._find(i,"size").style.display="none";this._listElement.appendChild(i)},_getItemByFileId:function(n){for(var t=this._listElement.firstChild;t;){if(t.qqFileId==n)return t;t=t.nextSibling}},_bindCancelEvent:function(){var n=this,t=this._listElement;qq.attach(t,"click",function(t){var i,r;t=t||window.event;i=t.target||t.srcElement;qq.hasClass(i,n._classes.cancel)&&(qq.preventDefault(t),r=i.parentNode,n._handler.cancel(r.qqFileId),qq.remove(r))})}});qq.UploadDropZone=function(n){this._options={element:null,onEnter:function(){},onLeave:function(){},onLeaveNotDescendants:function(){},onDrop:function(){}};qq.extend(this._options,n);this._element=this._options.element;this._disableDropOutside();this._attachEvents()};qq.UploadDropZone.prototype={_disableDropOutside:function(){qq.UploadDropZone.dropOutsideDisabled||(qq.attach(document,"dragover",function(n){n.dataTransfer&&(n.dataTransfer.dropEffect="none",n.preventDefault())}),qq.UploadDropZone.dropOutsideDisabled=!0)},_attachEvents:function(){var n=this;qq.attach(n._element,"dragover",function(t){if(n._isValidFileDrag(t)){var i=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect=i=="move"||i=="linkMove"?"move":"copy";t.stopPropagation();t.preventDefault()}});qq.attach(n._element,"dragenter",function(t){if(n._isValidFileDrag(t))n._options.onEnter(t)});qq.attach(n._element,"dragleave",function(t){if(n._isValidFileDrag(t)){n._options.onLeave(t);var i=document.elementFromPoint(t.clientX,t.clientY);if(!qq.contains(this,i))n._options.onLeaveNotDescendants(t)}});qq.attach(n._element,"drop",function(t){if(n._isValidFileDrag(t)){t.preventDefault();n._options.onDrop(t)}})},_isValidFileDrag:function(n){var t=n.dataTransfer,i=navigator.userAgent.indexOf("AppleWebKit")>-1;return t&&t.effectAllowed!="none"&&(t.files||!i&&t.types.contains&&t.types.contains("Files"))}};qq.UploadButton=function(n){this._options={element:null,multiple:!1,name:"file",onChange:function(){},hoverClass:"qq-upload-button-hover",focusClass:"qq-upload-button-focus"};qq.extend(this._options,n);this._element=this._options.element;qq.css(this._element,{position:"relative",overflow:"hidden",direction:"ltr"});this._input=this._createInput()};qq.UploadButton.prototype={getInput:function(){return this._input},reset:function(){this._input.parentNode&&qq.remove(this._input);qq.removeClass(this._element,this._options.focusClass);this._input=this._createInput()},_createInput:function(){var n=document.createElement("input"),t;return this._options.multiple&&n.setAttribute("single","single"),n.setAttribute("type","file"),n.setAttribute("name",this._options.name),n.setAttribute("title"," "),qq.css(n,{}),this._element.appendChild(n),t=this,qq.attach(n,"change",function(){t._options.onChange(n)}),qq.attach(n,"mouseover",function(){qq.addClass(t._element,t._options.hoverClass)}),qq.attach(n,"mouseout",function(){qq.removeClass(t._element,t._options.hoverClass)}),qq.attach(n,"focus",function(){qq.addClass(t._element,t._options.focusClass)}),qq.attach(n,"blur",function(){qq.removeClass(t._element,t._options.focusClass)}),window.attachEvent&&n.setAttribute("tabIndex","-1"),n}};qq.UploadHandlerAbstract=function(n){this._options={debug:!1,action:"/upload.php",maxConnections:999,onProgress:function(){},onComplete:function(){},onCancel:function(){}};qq.extend(this._options,n);this._queue=[];this._params=[]};qq.UploadHandlerAbstract.prototype={log:function(n){this._options.debug&&window.console&&console.log("[uploader] "+n)},add:function(){},upload:function(n,t){var r=this._queue.push(n),i={};qq.extend(i,t);this._params[n]=i;r<=this._options.maxConnections&&this._upload(n,this._params[n])},cancel:function(n){this._cancel(n);this._dequeue(n)},cancelAll:function(){for(var n=0;n<this._queue.length;n++)this._cancel(this._queue[n]);this._queue=[]},getName:function(){},getSize:function(){},getQueue:function(){return this._queue},_upload:function(){},_cancel:function(){},_dequeue:function(n){var r=qq.indexOf(this._queue,n),t,i;this._queue.splice(r,1);t=this._options.maxConnections;this._queue.length>=t&&r<t&&(i=this._queue[t-1],this._upload(i,this._params[i]))}};qq.UploadHandlerForm=function(){qq.UploadHandlerAbstract.apply(this,arguments);this._inputs={}};qq.extend(qq.UploadHandlerForm.prototype,qq.UploadHandlerAbstract.prototype);qq.extend(qq.UploadHandlerForm.prototype,{add:function(n){n.setAttribute("name","qqfile");var t="qq-upload-handler-iframe"+qq.getUniqueId();return this._inputs[t]=n,n.parentNode&&qq.remove(n),t},getName:function(n){return this._inputs[n].value.replace(/.*(\/|\\)/,"")},_cancel:function(n){this._options.onCancel(n,this.getName(n));delete this._inputs[n];var t=document.getElementById(n);t&&(t.setAttribute("src","javascript:false;"),qq.remove(t))},_upload:function(n,t){var u,i;try{$("#TB_overlayForPopup").css({display:"block"});showProcessingDiv_new()}catch(o){}try{hideTooltip()}catch(o){}if(u=this._inputs[n],!u)throw new Error("file with passed id was not added, or already uploaded or cancelled");var e=this.getName(n),r=this._createIframe(n),f=this._createForm(r,t);return f.appendChild(u),i=this,this._attachLoadEvent(r,function(){i.log("iframe loaded");var t=i._getIframeContentJSON(r);i._options.onComplete(n,e,t);i._dequeue(n);delete i._inputs[n];setTimeout(function(){qq.remove(r)},1)}),f.submit(),qq.remove(f),n},_attachLoadEvent:function(n,t){qq.attach(n,"load",function(){n.parentNode&&(n.contentDocument&&n.contentDocument.body&&n.contentDocument.body.innerHTML=="false"||t())})},_getIframeContentJSON:function(iframe){var doc=iframe.contentDocument?iframe.contentDocument:iframe.contentWindow.document,response;this.log("converting iframe's innerHTML to JSON");this.log("innerHTML = "+doc.body.innerHTML);try{response=eval("("+doc.body.innerHTML+")")}catch(err){response={}}return response},_createIframe:function(n){var t=qq.toElement('<iframe src="javascript:false;" name="'+n+'" />');return t.setAttribute("id",n),t.style.display="none",document.body.appendChild(t),t},_createForm:function(n,t){var i=qq.toElement('<form method="post" enctype="multipart/form-data"><\/form>'),r=qq.obj2url(t,this._options.action);return i.setAttribute("action",r),i.setAttribute("target",n.name),i.style.display="none",document.body.appendChild(i),i}});qq.UploadHandlerXhr=function(){qq.UploadHandlerAbstract.apply(this,arguments);this._files=[];this._xhrs=[];this._loaded=[]};qq.UploadHandlerXhr.isSupported=function(){var n=document.createElement("input");return n.type="file","single"in n&&typeof File!="undefined"&&typeof(new XMLHttpRequest).upload!="undefined"};qq.extend(qq.UploadHandlerXhr.prototype,qq.UploadHandlerAbstract.prototype);qq.extend(qq.UploadHandlerXhr.prototype,{add:function(n){if(!(n instanceof File))throw new Error("Passed obj in not a File (in qq.UploadHandlerXhr)");return this._files.push(n)-1},getName:function(n){var t=this._files[n];return t.fileName!=null?t.fileName:t.name},getSize:function(n){var t=this._files[n];return t.fileSize!=null?t.fileSize:t.size},getLoaded:function(n){return this._loaded[n]||0},_upload:function(n,t){var e=this._files[n],u=this.getName(n),o=this.getSize(n),i,r,f;this._loaded[n]=0;i=this._xhrs[n]=new XMLHttpRequest;r=this;i.upload.onprogress=function(t){if(t.lengthComputable){r._loaded[n]=t.loaded;r._options.onProgress(n,u,t.loaded,t.total)}};i.onreadystatechange=function(){i.readyState==4&&r._onComplete(n,i)};t=t||{};t.qqfile=u;f=qq.obj2url(t,this._options.action);i.open("POST",f,!0);i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.setRequestHeader("X-File-Name",encodeURIComponent(u));i.setRequestHeader("Content-Type","application/octet-stream");i.send(e)},_onComplete:function(id,xhr){var name,size,response;if(this._files[id]){name=this.getName(id);size=this.getSize(id);this._options.onProgress(id,name,size,size);if(xhr.status==200){this.log("xhr - server response received");this.log("responseText = "+xhr.responseText);try{response=eval("("+xhr.responseText+")")}catch(err){response={}}this._options.onComplete(id,name,response)}else this._options.onComplete(id,name,{});this._files[id]=null;this._xhrs[id]=null;this._dequeue(id)}},_cancel:function(n){this._options.onCancel(n,this.getName(n));this._files[n]=null;this._xhrs[n]&&(this._xhrs[n].abort(),this._xhrs[n]=null)}});$(document).ready(JT_init);tb_pathToImage="/images/SM-Processing.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});$(window).load(function(){try{tb_position()}catch(n){}});replaceGmapUrlasperProtocol=function(n,t){$(n).find("a")!=null&&($(n).find("a").removeAttr("onclick"),t!=""&&($(n).find("a").find("img")!=null&&$(n).find("a").find("img").each(function(){var n=$(this).attr("src"),i=n.split(":"),r=n.replace(i[0],t);$(this).attr("src",function(){return r})}),$(n).find("a").each(function(){var n=$(this).attr("href"),i=n.split(":"),r=n.replace(i[0],t);$(this).attr("href",function(){return r})})))};countinstring=function(n,t){for(var r=0,i=t.indexOf(n);i!=-1;)t=t.slice(i*1+n.length),r++,i=t.indexOf(n);return r}