function ajaxFunction(EID,url,loadingEID){$.ajax({url:url,cache:false,success:function(data){if(EID)$('#'+EID).html(data);return true},beforeSend:function(){if(loadingEID){$('#'+loadingEID).html('<span class="ajaxLoading"><img src="https://www.caraselledirect.com/structural/GLOBAL/images/icons/ajax.loading.gif" /></span>')}}})}function CheckEditForms(){return true;var ProblemField=false;for(a=0;a<arguments.length;a++){var thisField=document.getElementById(arguments[a]);var cleanText=thisField.name.replace(/_/g," ");if(thisField.value==''){ProblemField=true}if(thisField.name=='Email'&&(thisField.value.indexOf('@')==-1||thisField.value.indexOf('.')==-1||thisField.value.indexOf(' ')!=-1)){ProblemField=true}if(thisField.type=='checkbox'&&!thisField.checked){ProblemField=true}if(ProblemField){thisField.style.backgroundColor='#FFC'}}if(ProblemField){alert(MSG_ERRORFIELD);return false}else{return true}}function validateField(fieldID){var showAlerts=true;if(typeof(fieldID)=='object'){var $jQueryID=$(fieldID.target);var fieldID=$jQueryID.attr('name');var showAlerts=false}else{var $jQueryID='#'+fieldID}if($($jQueryID).val()==''){if(showAlerts)alert('Please complete the '+fieldID+' field.');$($jQueryID).addClass('unfilled');return false}else{$($jQueryID).removeClass('unfilled');return true}}function SelectAllCheckboxes(Boxes2Check,FormName){for(a=0;a<document.forms[FormName].length;a++){if(document.forms[FormName].elements[a].name==Boxes2Check&&document.forms[FormName].elements[a].type=='checkbox'){document.forms[FormName].elements[a].checked=true}}}function validateIntegerNumbers(textBox){string=textBox.value;if(!string)return false;var Chars="0123456789";SLength=string.length;for(i=0;i<SLength;i++){if(Chars.indexOf(string.charAt(i))==-1){textBox.value=string.substring(0,SLength-1);alert(MSG_INT);return false}}return true}function validateFPNumbers(textBox){string=textBox.value;if(!string)return false;var Chars="0123456789.";SLength=string.length;for(i=0;i<SLength;i++){if(Chars.indexOf(string.charAt(i))==-1){textBox.value=string.substring(0,SLength-1);alert(MSG_FP);return false}}return true}function PopWin(URL,H,W){window.open(URL,'Popped',"Height="+H+",Width="+W+",scrollbars,resizable,status")}
