Function.prototype.bind = function(object) { 
  var fn = this; 
  return function() {
    return fn.apply(object, arguments); 
  }; 
};

function on_focus(_this, _text, password){
	if(_this.value == _text) {
		_this.value = '';
		if(password)
		{
		  _this.setAttribute('type','password');
		}
	}
}

function on_blur(_this, _text, password) {
	if(_this.value == '') {
		_this.value = _text;
		if(password)
		{
		  _this.setAttribute('type','text');
		}
	}
}


function verifyBlankField(thisId, _text) {
  if(document.getElementById(thisId).value == _text)
  {
    document.getElementById(thisId).value = "";
  }
}

