function el(id)
{
return document.getElementById(id);
}

function lprops(obj)
{
var r = "";
var o;
for(i in obj)
  {
  r += i+" = "+obj[i]+"\n";  
  }//for
  
return r;
}//func

function getElementsByClass(searchClass,node,tag) {
// Top 10 custom JavaScript functions of all time
// http://www.dustindiaz.com/top-ten-javascript/
// Dustin Diaz
//
// 2007.11.07
//

	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp('(^|\\s)'+searchClass+'(\\s|$)');
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
