function getElementsByClassName(classname, node)  {	if(!node) node = document.getElementsByTagName("body")[0];	var a = [];	var re = new RegExp('\\b' + classname + '\\b');	var els = node.getElementsByTagName("*");	for(var i=0,j=els.length; i<j; i++)		if(re.test(els[i].className))a.push(els[i]);	return a;}function openDialogBox(url, w, h, scrollbars, name) {	// Figure top and left (for centering on screen)	var left=Math.round((self.screen.availWidth-w)/2);	var top=Math.round((self.screen.availHeight-h)/2);	if (!scrollbars) {		scrollbars='yes';	}		if (!name) {		name='';	}		window.open(url, name, 'width=' + w + ', height=' + h + ', top=' + top + ', left=' + left + ', menubar=no, status=no, location=no, toolbar=no, statusbar=no, status=no, scrollbars=' + scrollbars + ', resizable=yes');}function openWindow(url, w, h, name) {	// Figure top and left (for centering on screen)	var left=Math.round((self.screen.availWidth-w)/2);	var top=Math.round((self.screen.availHeight-h)/2);	if (!name) {		name='';	}		window.open(url, name, 'width=' + w + ', height=' + h + ', top=' + top + ', left=' + left + ', menubar=yes, status=yes, location=yes, toolbar=yes, statusbar=yes, status=yes, scrollbars=yes, resizable=yes');}