function DoPage(btn)
{
  frm_find.reset();
  if (parseInt(document.all["allPages"].value) < 0) return;
    switch (btn)
    {
      case 1 :
        if (parseInt(document.all["Page"].value) > 1)
	{
	  document.all.Page.value = "1";
	  frm_find.submit();
	}
	break;

      case 2 :
	if (parseInt(document.all["Page"].value) > 1)
	{
	  document.all.Page.value = parseInt(document.all["Page"].value) - 1;
	  frm_find.submit();
	}
	break;

      case 3 :
	if (parseInt(document.all["Page"].value) < parseInt(document.all["allPages"].value))
	{
	  document.all.Page.value = parseInt(document.all["Page"].value) + 1;
	  frm_find.submit();
	}
	break;

      case 4 :
	if (parseInt(document.all["Page"].value) < parseInt(document.all["allPages"].value))
	{
	  document.all.Page.value = parseInt(document.all["allPage"].value);
	  frm_find.submit();
	}
	break;
    }
}

function PageChange()
{
  frm_find.reset();
  document.all.Page.value = document.all.selPage(document.all.selPage.selectedIndex).value;
  frm_find.submit();
}

function DoFind()
{
  document.all.Page.value = "";
  frm_find.submit();
}
