<!--
//Used in the Good Shepherd's Studio (http://www.goodshepherdstudio.org)

function popup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  window.open(href, windowname, 'width=400,height=400,scrollbars=yes');
  return false;
  }

function mcpopup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  window.open(href, windowname, 'width=500,height=400,scrollbars=yes');
  return false;
  }

function calendarpopup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  window.open(href, windowname, 'width='+(screen.width-50)+',height='+(screen.height-100)+',top=15,left=15,screenX=15,screenY=15,scrollbars=yes,resizable=yes,status=yes');
  return false;
  }

function fadpopup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name='mainparent';
  window.open(href, windowname, 'width=500,height=450,scrollbars=yes');
  return false;
  }

function cpopup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  var winProps = "width=" + window.screen.availWidth + ",height=" + window.screen.availHeight + ",scrollbars=yes,resizable=no";
  window.open(href, windowname, winProps);
  return false;
  }

function fppopup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  var winProps = "width=" + (window.screen.availWidth / 2) + ",height=" + (window.screen.availHeight / 2) + ",scrollbars=yes,resizable=yes";
  window.open(href, windowname, winProps);
  return false;
  }

function qbpopup(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.open(href, windowname, 'width=450,height=450,scrollbars=yes');
  return false;
  }

function jukeboxpopup(mylink)
  {
  if(!window.focus)
    return true;

  var leftdist = (screen.width - 500) / 2;    // distance to left edge of window
  var topdist = (screen.height - 404) / 2;     // distance to top edge of window

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  //window.open(href, 'gssjukebox', 'width=439,height=355,resizable=no,toolbar=no,scrollbars=no,menubar=no');
  //window.open(href, 'gssjukebox', 'width=500,height=404,resizable=no,toolbar=no,scrollbars=no,menubar=no');
  window.open(href, 'gssjukebox', 'width=500,height=404,status=no,directories=no,location=no,resizable=no,toolbar=no,scrollbars=yes,menubar=no');
  return false;
  }

function pview(mylink, windowname)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  window.open(href, windowname, 'width=620,height=600,scrollbars=yes,resizable=yes');
  return false;
  }

function moviepopup(mylink)
  {
  if(!window.focus)
    return true;

  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
  window.self.name="mainparent";
  window.open(href, 'gssmoviewin', 'width=400,height=385,resizable=yes,toolbar=no,scrollbars=no,menubar=no');
  return false;
  }

function test() { alert("works"); }

function appointmentpopup(href)
  {
  if(!window.focus)
    return true;

  window.self.name="mainparent";
  window.open(href, 'gssappointment', 'width=575,height=450,resizable=no,toolbar=no,scrollbars=yes,menubar=no');
  return false;
  }
//-->
