function openWindow(url, parm) 
{
  var myWind = "";
  var xOffset = (screen.width - 800) / 2;
  var yOffset = (screen.height - 600) / 2;
  yOffset = 0;
  var winOpts = 'toolbar=no,menubar=yes,location=yes,scrollbars=yes,resizable=no,width=800,height=600,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'';
  myWind = window.open(url+"?parm="+parm,"_blank", winOpts);
  myWind.focus();
}


function openAppearanceDetailsWindow(url, parm, indexNo, county, year, adate) 
{
  var myWind = "";
  var xOffset = (screen.width - 800) / 2;
  var yOffset = (screen.height - 600) / 2;
  yOffset = 0;
  var winOpts = 'toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=no,width=800,height=600,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'';
  myWind = window.open(url+"?parm="+parm+"&indexNo="+indexNo+"&county="+county+"&year="+year,"_blank", winOpts);
  myWind.focus();
}

function openCaseDetailsWindow(url, parm, indexNo, county, year, adate) 
{
  var myWind = "";
  var xOffset = (screen.width - 800) / 2;
  var yOffset = (screen.height - 600) / 2;
  yOffset = 0;
  var winOpts = 'toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=no,width=800,height=500,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'';
  myWind = window.open(url+"?parm="+parm+"&indexNo="+indexNo+"&county="+county+"&year="+year,"_blank", winOpts);
  myWind.focus();
}


function returnToSearch()
{
var myWind = "";

myWind = window.location="NameSearchServlet";
}

function returnToSearch2()
{
var myWind = "";

myWind = window.location="IndexSearchServlet";
}

function returnToSearch3()
{
var myWind = "";

myWind = window.location="CalendarSearchServlet";
}


/*window.location="url+"?parm="+parm+"&indexNo="+indexNo+"&county="+county+"&year="+year";
 /* if(url == "CalendarSearchServlet")
  {
    document.getElementById('form').action = 'CalendarSearch';
  }
  else
  {
    document.getElementById('form').action = 'LCCalendarResult';
  }   
    document.getElementById('hAction').value = "toSearch";
    document.getElementById('form').target = '_parent';
    document.getElementById('form').method = 'GET';
    document.getElementById('form').submit();*/
/*}*/
