/* use on input fields onclick to prevent form submission */
function noenter() {
  return !(window.event && window.event.keyCode == 13); 
}

String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }; 