<!--
var monthname=new Array("01","02","03","04","05","06","07","08","09","10","11","12");

function todayStr() 
{
  var today=new Date();
  return (today.getDate() + "/" + monthname[today.getMonth()] + "/" + today.getYear());
}

function noEnter() 
{
  return !(window.event && window.event.keyCode == 13); 
}

function Trim(s) 
{
  while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r'))
  {
    s = s.substring(1,s.length);
  }
  while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r'))
  {
    s = s.substring(0,s.length-1);
  }
  return s;
}

// page display functions
function goPage(url)
{
   window.location.href = url;
}

//                       width height left  down
function popUp(URL, name, winW, winH, winX, winY) 
{
  var newWindow;
  var name;
  var features;
  features = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1";
  features = features + ",width=" + winW + ",height=" + winH;
  //features = features + ",screenX=" + winY + ",screenY=" + winX;
  features = features + ",left=" + winX + ",top=" + winY;

  newWindow = window.open (URL,null,features);
  newWindow.focus();
  return false;
}

function closeWindow()
{
  window.opener=top; 
  window.close();
}

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
  if(document.layers)	   //NN4+
  {
     document.layers[szDivID].visibility = iState ? "show" : "hide";
  }
  else if(document.getElementById)	  //gecko(NN6) + IE 5+
  {
      var obj = document.getElementById(szDivID);
      obj.style.visibility = iState ? "visible" : "hidden";
  }
  else if(document.all)	// IE 4
  {
      document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
  }
}

//--->
