function InputBehavior(input_id){
this.input_type = document.getElementById(input_id);
this.default_value = this.input_type.value;
this.input_type.onfocus = bind(this, this.alterFocus);
this.input_type.onblur = bind(this, this.alterFocus);
}
InputBehavior.prototype.alterFocus = function(){
if (this.input_type.value == this.default_value){
this.input_type.value = "";
}else{
if (this.input_type.value == ""){
this.input_type.value = this.default_value;
}
}
}
function bind(el, func){
return function() { func.call(el); }
}