function toggleMessage(id) {
	var span = document.getElementById( "msg"+id );
	if (span.style.display == 'none')
		{
			// hide the more link
			document.getElementById('msglink'+id).style.display='none';
			// show the div
			span.style.display = 'inline';
			// show the less link
			document.getElementById('msglesslink'+id).style.display='inline';
			// switch the image
			document.getElementById('image'+id).src=img_open;
			//show the abuse link:
			document.getElementById( 'abuselink'+id ).style.display='inline';
		 
		}
	else // it's already showing
		{
			// hide the less link
			document.getElementById('msglesslink'+id).style.display='none';
			// show the more link
			document.getElementById('msglink'+id).style.display='inline';
			// hide the span
			span.style.display = 'none';
			// switch the image
			document.getElementById('image'+id).src=img_closed;
			//hide the abuse link:
			document.getElementById( 'abuselink'+id ).style.display='none';
		}
}

function clickReply(str)
{
	if (str.substring(0,3) != 'Re:')
		str = 'Re: ' + str;
	
	document.getElementById('newmsg').style.display='block';

	document.getElementById('messageSubject').value = str;
	document.getElementById('messageBody').focus();
	scroll(0, document.body.clientHeight);
}

