function includeFile(src){ script = document.createElement("SCRIPT"); script.type = "text/javascript"; script.src = src; document.getElementsByTagName("head")[0].appendChild(script); } String.prototype.trim = function(){ return this.replace(/^\s*/, "").replace(/\s*$/, ""); } function isEmail(str){ return (str.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)); } function isInteger(str){ return (str.match(/(^-?\d\d*$)/)); }