// JavaScript Document // Script by Drew Noakes // http://drewnoakes.com // 14 Dec 2006 - Initial release // 08 Jun 2010 - Added support for password textboxes var HintClass = "hintTextbox"; var HintActiveClass = "hintTextboxActive"; // define a custom method on the string class to trim leading and training spaces String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }; function initHintTextboxes() { var inputs = document.getElementsByTagName('input'); for (i=0; i