
//-----------------------
// open new window with contents of targ
function newWin(targ)
{
  nm = window.open(targ,"tourTarg","scrollbars=0,toolbar=0,directories=0,status=0,menubar=0,resizable=1,width=610,height=550")
  nm.focus();
}

//-----------------------
// open new window with contents formatted to print nicely
function newWinPrt(targ)
{
  pnm = window.open(targ,"prtTarg","scrollbars=0,toolbar=0,directories=0,status=0,menubar=1,resizable=1,width=725,height=900")
  pnm.focus();
}

//-----------------------
// open new window for a map
function newWinMap(targ)
{
  mnm = window.open(targ,"mapTarg","scrollbars=0,toolbar=0,directories=0,status=0,menubar=0,resizable=0,width=470,height=585")
  mnm.focus();
}

//-----------------------
// open new window for a lot
function newWinLot(targ)
{
  mnm = window.open(targ,"lotTarg","scrollbars=0,toolbar=0,directories=0,status=0,menubar=0,resizable=0,width=575,height=855")
  mnm.focus();
}

//-----------------------
// open new window, pass in size
function newWinTstmy(nm,targ,wd,ht)
{
  var winargs = "scrollbars=0,toolbar=0,directories=0,status=0,menubar=0,resizable=0,width=" + wd +",height=" + ht

  wnm = window.open(targ,nm,winargs)
  wnm.focus();
}

//-----------------------
// close a window
function closeWin()
{
    if (confirm('Are you sure you want to close this window?'))
      parent.window.close()
    else
      alert('OK, this window will not close yet.')
}

//-----------------------
// close a window, no confirmation
function closeWinNoConf()
{
  parent.window.close()
}



