function displayStatusMsg(msgStr)
{
  window.status = msgStr;
  return true;
} 

function set_init_focus()
{
  // zet focus op eerste veld.
  for (var i = 0; i < document.forms[0].elements.length; i++)
  {
    if(document.forms[0].elements[i].type != 'hidden')
    {
      document.forms[0].elements[i].focus();
      break;
    }
  }
}

function VoorkomenFraming()
{
	if (top.frames.length != 0)
  {
		top.location = self.document.location;
	}
}

function smallwin(url)
{
	popupWin = window.open(url,'SmallWin','width=365,height=550,scrollbars=yes,resizable');
	popupWin.focus();
}


function trim(strTextvar)
{
	if (strTextvar == null) return strTextvar;

	var strText = new String("")
	strText = strTextvar; //needed for NN

	// this will get rid of leading spaces 
	while (strText.substring(0,1) == ' ') 
		strText = strText.substring(1, strText.length);

	// this will get rid of trailing spaces 
	while (strText.substring(strText.length-1,strText.length) == ' ')
		strText = strText.substring(0, strText.length-1);

	return strText;
} 
