<!--

var xRef = "";      // xRef = internal link
var xURL = "";		// xURL = Window URL
var xNAME = "";		// xNAME = Window name
var w = 0;			// w = Window width
var h = 0;		    // h = Window height
var yr = ""; 		// yr = Year
var mo = ""; 		// mo = Month
var da = "";		// da = Day


// GENERIC
function openWindow(xURL,xNAME,w,h)
  {
   newWindow = window.open(xURL,xNAME,"width=" + w + ",height=" + h + ",scrollbars,resizable");
   return true;
  }


// CELL GROUP STUDIES
function openCell(yr,mo,da)
  {
   xURL = "c" + yr + "/" + yr + mo + da + ".html";
   newWindow = window.open(xURL,"Cell","width=600,height=500,scrollbars,resizable");
   return true;
  }


// FAMILY OF THE MONTH
function openFamily(yr,mo)
  {
   xURL = "f" + yr + "/" + yr + mo + ".html";
   newWindow = window.open(xURL,"Family","width=640,height=300,scrollbars,resizable");
   return true;
  }


// GLOSSARY - from link
function openGloss(fle)
  {
   xURL = "glossary.asp?w=" + fle;
   newWindow = window.open(xURL,"Glossary","width=400,height=250,top=100,left=250,scrollbars");
   return true;
  }


// GLOSSARY - from option box
function runProc(sel)                 // build URL & display window
  {
  fle = sel.options[sel.selectedIndex].value;
  if (fle == "") 
    alert('Please select a term')
  else
    xURL = "glossary.asp?w=" + fle;
    newWindow = window.open(xURL,"Glossary","width=400,height=250,top=100,left=250,scrollbars");
    return true;
  }



// MINISTRY
function openBio(xURL)
  {
   xURL = "mllfa/" + xURL + ".html";
   newWindow = window.open(xURL,"Bio","width=600,height=350,scrollbars,resizable");
   return true;
  }



// MINISTRY
function openMin(xURL)
  {
   xURL = "min" + xURL + ".html";
   newWindow = window.open(xURL,"Ministry","width=600,height=350,scrollbars,resizable");
   return true;
  }


// PHOTO ALBUM
function openPhoto(xURL)
  {
   xURL = "photos/" + xURL;
   newWindow = window.open(xURL,"Album","width=720,height=500,scrollbars,resizable");
   return true;
  }


// SERMON
function openSermon(yr,mo,da)
  {
   xURL = "s" + yr + "/" + yr + mo + da + ".html";
   newWindow = window.open(xURL,"Sermon","width=700,height=550,scrollbars,resizable");
   return true;
  }


// SERMON QUESTION EMAIL FORM
function openSermQst(xFilename)
  {
   xURL = "../sermquest.html?fn=" + xFilename;
   newWindow = window.open(xURL,"Question","width=300,height=500");
   return true;
  }


// SERMON FOOTNOTES
function openSermonNotes(yr,mo,da,xRef)
  {
   xURL = yr + mo + da + "fn.html#" + xRef;
   newWindow = window.open(xURL,"Footnotes","width=450,height=300,top=80,scrollbars,resizable");
   return true;
  }


// SERVICE DIRECTORY
function openListing(xURL)
  {
   xURL = "servdir.asp?c=" + xURL;
   newWindow = window.open(xURL,"Directory","width=450,height=300,scrollbars,resizable");
   return true;
  }


// BIBLE VERSE for Daily Devotion
function openVerse(fle)
  {
   xURL = "verse.asp?w=" + fle;
   newWindow = window.open(xURL,"Verse","width=400,height=250,top=100,left=250,scrollbars");
   return true;
  }


// -->
