/* author: thewildethings@earthlink.net */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 12/5/2003 */

function trim(s) 
{
	while (s.substring(0,1) == ' ') 
	{
		s = s.substring(1,s.length);
	}
	while (s.substring(s.length-1,s.length) == ' ') 
	{
		s = s.substring(0,s.length-1);
	}

	return s;
}


function IsFieldEmpty(field)
{
	return IsTextEmpty(field.value);
}


function IsTextEmpty(text)
{
	text = trim(text);
	return text.length == 0;
}

function start()
{
  if (document.getElementById)
  {
    element = document.getElementById('focusThis');
	if (element != null && !element.getAttribute('disabled'))
	{
	  element.focus();
	}
  }
  else if (document.all)
  {
    element = document.all['focusThis'];
	if (element != null)
	{
	  element.focus();
	}
  }
}