// BASE JS; Minified Code @ 17/3/2010
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
String.prototype.count=function(needle){if(needle=="\\")return(this.length-this.replace(/\\/g,"").length);return((this.length-this.replace(new RegExp(needle,"g"),"").length)/needle.length);}
String.prototype.after=function(needle,originalIfNone){var i=this.lastIndexOf(needle);return(i==-1?(originalIfNone===false?"":this):this.substr(i+needle.length));}
String.prototype.first=function(){return this.replace(/\ (.)*/,"");}
String.prototype.last=function(){return this.replace(/(.)*\ /,"");}
function isValidEmail(email){var filter=/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;return filter.test(email);}
function compareNumbers(a,b){return a-b;}
function timetest(fn,loops,alertTime){if(loops===undefined)loops=10000;var timeStart=(new Date()).getTime();for(var i=0;i<loops;i++){fn();}
var timeEnd=(new Date()).getTime();var time=timeEnd-timeStart;if(alertTime===true)alert(time);return time;}
// (c) Inspired Design Solutions ("Inspired-Design") 2010
