/*********************************************************

	COPYRIGHT (C)2009 HELLOHELLO NETWORK
	ALL RIGHTS RESERVED

	AUTHOR:			HELLOHELLO
	RELEASE NOTES:	HTTP://DEVELOPER.HELLOHELLO.NET

*********************************************************/

if(document.getElementById) {
  var getRefById = function(id) {
    return document.getElementById(id);
  };
} else if(document.all) {
  var getRefById = function(id) {
    return document.all[id];
  };
} else {
  var getRefById = function() {
return null;
};
}

function insertText(str) {
var e = getRefById('status'), s = null, r = null;

if(e) {
  if((s = document.selection) && s.createRange) {
  var repos = false;


e.focus();
if((r = s.createRange())) {
  if(r.text.length) {repos = true;}
r.text = str;
     if(repos && s.empty) {s.empty();}
 }
} else {
   e.value += str;
  }
 }
}