function minHeight(size)
{
	if (size < 100) { size = 100; }
	sizePx = size + "px";
	return sizePx;
}

function fitToText()
{
 if (this.scrollHeight>this.clientHeight)
 {
  this.style.height=minHeight(this.scrollHeight+20);
 }
 else
 {
  this.style.height="80px";
  this.style.height=minHeight(this.scrollHeight+20);
 }
	
}

function setHelperText(reset)
{
	var helperText = 'Remember to include your contact details in the body text of the release.';
	var textField  = document.getElementById('bodytext');
	
	if (textField != null)
		{
		if (textField.value == "" && reset == true) {
			textField.value = helperText; }
		else if (textField.value == helperText) {
			textField.value = ""; }
		}
}

