$.fn.delayKeyStroke = function(iTimeout,oCallOpen,oCallClose) {
	return this.each(function(){
	var t;
	$(this).keyup(function() {
		if($(this).val().length > 0) {
			t = setTimeout(oCallOpen,(iTimeout*1000));
		} else {
			clearTimeout(t);
			oCallClose();
		}
	});
	$(this).keydown(function() { clearTimeout(t);});
  });
};