function prepInput( id,text ) {
	//check that getElementById is supported and element exists
	if (!document.getElementById(id)) { return false; }	
		var elem = document.getElementById(id);
		// assign holder text to input
		elem.setAttribute('value', text);
		// store class name
		var origClass = elem.className;
		// add 'onfocus' behaviour
		elem.onfocus = function() {
			// append 'focus' to class, emulates :focus pseudo-class for IE 
			this.className += " focus";
			// auto selection of text
			this.select();
		}
		// return class name to origClass after element loses focus
		elem.onblur = function() {
			this.className = origClass;	
		}
}