function moveCaretToEndOf(obj){
	obj=document.getElementById(obj);
	try{
		obj.focus();
		var rng = obj.createTextRange();
		rng.collapse(false);
		rng.select();
	}
	catch(e){}
}
