function columnise(text, cols, minlength) {
	// minlength is minimum chars in column
	// for now, columnise splits on dot-space so not too clever with code or markup
	// columnise written by braine.com
	var str = '<table cellpadding=0 cellspacing=0 style="margin-top:8px; margin-bottom:8px"><tr>'
	var chunklength = Math.max( minlength, Math.ceil( text.length / cols) )
	var from = 0
	var to = chunklength
	var colsa = new Array()
	var w = Math.floor(100/cols)
	for(var i=0; i<cols; i++)
	{
		colsa[i]='<td width="' + w + '%">&nbsp;<\/td>'
	}
	var counter=0
	while ( from < to ) {
		if(text.indexOf('. ', to+1) > -1){
			to = text.indexOf('. ', to+1)+2
		} else {
			to = text.length
		}
		colsa[counter] = '<td class=answer width="' + w + '%">'+ text.substring(from, to ).replace(/ ([^ >]+) *$/,"&nbsp;$1") + '<\/td>'
		from = to
		to = Math.min(text.length, to+chunklength)
		counter++
	}
	str += colsa.join('')
	str += '<\/tr><\/table>'
	return str
}

