function twitter_callback(obj) {
if(obj.results.length) {

	//this is the div I'm writing the content to
	 var t_div = document.getElementById("twitter_comments");

	//these are some other variables, mostly
	 //placeholders so that the code is a little clearer
		var user, bgcolor, tweet, postedAt, icon, userURL, comments_list

	//start the ul
	comments_list = "<ul>"
	   //loop through the twit object
	   for (i=0;i<obj.results.length;i++) {

	   //Right here, I've broken out the separate bits of the string into placeholder variables
	   //so you can more easily see the dot notation and array indices in place
	   //once you figure out the structure it's dead easy to reference data in an Object
			icon = obj.results[i].profile_image_url;
			user = obj.results[i].from_user;
			userURL = "http://twitter.com/"+user;
			tweet = obj.results[i].text;
			postedAt = obj.results[i].created_at;
	
	   //and here I mash it all up into a fancy li
	   comments_list += "<li><div style='background-image: url("+icon+")'><strong><a href='"+userURL+"'>"+user+"</a></strong>: "+tweet+"<br><span class='time'>("+postedAt+" GMT)</span></div></li>"
	   }
	  //and close the UL
	  comments_list += "</ul>"
	  t_div.innerHTML = comments_list;
	  
	} else {
	document.getElementById("twitter_comments").innerHTML = "<b>No comments yet.</b>";
	}
}

<!-- Dynamic Version by: Nannette Thacker -->
<!-- http://www.shiningstar.net -->
<!-- Original by :  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->
<!-- Use one function for multiple text areas on a page -->
<!-- Limit the number of characters per textarea -->
<!-- Begin
function textCounter(field,cntfield,maxlimit) {
	if (field.value.length > maxlimit) // if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
		// otherwise, update 'characters left' counter
	else
		cntfield.value = (maxlimit - field.value.length) + " characters left";
}

//  End -->
