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

function clean(textbox){
	textbox.value='';
	textbox.style.color= '#000';
}

function defaultText(textbox, text){
	if(textbox.value.trim().length == 0){
		textbox.value= text;
		textbox.style.color= '#aaa';
	}
}

