function openUrlWithCacheBuster(A){if(A.indexOf("?")>0){A+="&";}else{A+="?";}var B=new Date().getTime()+""+Math.floor(Math.random()*1000);window.location=A+"cacheBuster="+B;}function pluraliseVehicleName(A){if(A.charAt(A.length-1)!="s"){A+="s";}return A;}function singulariseVehicleName(A){if(A.charAt(A.length-1)=="s"){A=A.substring(0,A.length-1);}return A;}String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"");};String.prototype.trimChars=function(A){return ltrim(rtrim(this,A),A);};String.prototype.startsWith=function(A){return this.match("^"+A)==A;};String.prototype.toCamelCase=function(){return this.charAt(0).toUpperCase()+this.substring(1,this.length).toLowerCase();};function ltrim(B,A){A=A||"\\s";return B.replace(new RegExp("^["+A+"]+","g"),"");}function rtrim(B,A){A=A||"\\s";return B.replace(new RegExp("["+A+"]+$","g"),"");}function formatNumber(E){if(typeof E!="string"){E+="";}var A=E.split(".");var D=A[0];var B=A.length>1?"."+A[1]:"";var C=/(\d+)(\d{3})/;while(C.test(D)){D=D.replace(C,"$1"+","+"$2");}return D+B;}function trackBannerClick(E,D,B,A){var C=s_gi(s_account);C.linkTrackVars="events,prop42,prop43,prop44,prop45";C.linkTrackEvents="event5";C.events="event5";C.prop42=C.pageName;C.prop43=E;C.prop44=C.prop42+"|"+C.prop43;C.prop45=D;if(!A){A=new Object();A.href="http://www.dummyhref.com";}C.tl(A,"o",B);C.prop42="";C.prop43="";C.prop44="";C.prop45="";C.events="";}function removeSpaces(A){return A.replace(/\s/g,"");}function checkNumeric(F){var E="0123456789";var D=" ";var C=F;var B=true;var A;if(C.length==0){return false;}for(i=0;i<C.length;i++){A=C.charAt(i);if(E.indexOf(A)==-1){B=false;break;}if(D.indexOf(A)>-1){B=false;break;}}return B;}function checkEmail(C){var B=true;var A=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(A.test(C)==false){B=false;}return B;}
