function stripAb(){var A=$("#datasheet");if(A.val().substring(0,2).toLowerCase()=="ab"){A.value=A.val().substring(2)}}function fCanSubmit(){return(ChkFeedbackType()&&chkInput())}function ChkFeedbackType(){for(i=0;i<document.frmFeedback.radioFeedbackType.length;i++){if(document.frmFeedback.radioFeedbackType[i].checked==1){return true}}alert("You MUST select the type of comment you are making.\n\nSelect the type and try again.");return false}function chkInput(){var A=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(document.getElementById("strFirstname").value==""){msg=msg+"- Please enter your first name \n\n"}if(document.getElementById("strFamilyname").value==""){msg=msg+"- Please enter your family name \n\n"}email=document.getElementById("strEmail").value;if(A.test(email)==0){msg=msg+"- Please specify your email address\n\n"}if(document.getElementById("strComments").value==""){msg=msg+"- Please input some feedback\n\n"}if(msg!=""){alert(msg)}else{document.frmFeedback.submit()}}function GetNewCaptcha(){url="/assets/aj/getCaptchaAjax.cfc";$.AjaxCFC({type:"GET",url:url,method:"getCaptcha",dataType:"html",data:"",success:function(A){GetNewCaptcha_result(A)}})}function GetNewCaptcha_result(A){document.getElementById("captcha_Image").src=A}function CheckCaptcha(){url="/assets/aj/getCaptchaAjax.cfc";strCaptchaInput=document.getElementById("strCaptchaInput").value;$.AjaxCFC({type:"GET",url:url,method:"checkCaptcha",data:{strCaptchaInput:strCaptchaInput},dataType:"html",success:function(A){CheckCaptchaResult(A)}});return false}function CheckCaptchaResult(A){var B=A;if(B=="true"){fCaptchaOk=true;msg=""}else{fCaptchaOk=false;msg="";msg=msg+"- Please enter the security letters as shown \n\n"}chkInput()}function doShow(A){if(document.getElementById(A).style.display==""){document.getElementById(A).style.display="none"}else{document.getElementById(A).style.display=""}}function showStates(B){var A=document.getElementById(B).value;if(A=="US"){doShow("USstate");if(document.getElementById("USstate").style.display==""){document.getElementById("strStateCA2LCode").value=""}}else{if(A=="CA"){doShow("CAstate");if(document.getElementById("CAstate").style.display==""){document.getElementById("strStateUS2LCode").value=""}}}};
