// +------------------------------------------------------------+
// | Created 04/17/2002              Last Modified 04/17/2002   |
// | Web Site:                 http://www.AmericanCatholic.org  |
// +------------------------------------------------------------+
// | Contains all the scripts for the e-News feature;	        |
// | Less clutter on page				        |
// |                                                            |
// | 								|
// +------------------------------------------------------------+

// "SAMPLE E-NEWSLETTER" Script begins
<!--
var objSample;
var sampleURL;
var sampleWinWidth;
var sampleWinHeight;
var sampleOptions;


function openSample(sampleURL) {
sampleWinWidth = 640;
sampleWinHeight = 600;
var sampleOptions = "width=" + sampleWinWidth + ",height=" + sampleWinHeight + ",scrollbars=yes,resizable=yes,menubar=no,status=no,toolbar=no,location=no,directories=no";
 if (sampleURL) {  
  if (!objSample || objSample.closed){
    objSample = window.open(sampleURL,'sampleWin', sampleOptions);  // Open a new window and show the specified page
    objSample.focus();
	objSample.moveTo(10,40);   
   									  }
  else{
    objSample.close();
	objSample = window.open(sampleURL,'sampleWin', sampleOptions);  // Open a new window and show the specified page
    objSample.focus();
	objSample.moveTo(506,40);
  	  }
 	    }
}

// Script Ends -->
// +------------------------------------------------------------+

// "ARCHIVE of previous years" Script begins
<!-- less clutter; shortens page 
<!--
var winArchive;
var fjURL;
var winArchiveWidth;
var winArchiveHeight;
var optionsArchiveWin;

function openArchive(fjURL){
winArchiveWidth = 300;
winArchiveHeight = 550;
optionsArchiveWin = "width=" + winArchiveWidth + ",height=" + winArchiveHeight + ",scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no";
 if (fjURL) {  
  if (!winArchive || winArchive.closed){
    winArchive = window.open(fjURL,'winArchiveWin', optionsArchiveWin);  // Open a new window and show the specified page
    winArchive.focus();
	winArchive.moveTo(506,40);   
   									  }
  else{
    winArchive.close();
	winArchive = window.open(fjURL,'winArchiveWin', optionsArchiveWin);  // Open a new window and show the specified page
    winArchive.focus();
	winArchive.moveTo(506,40);
  	  }
 	    }
}

// -->
// Script Ends -->
// +------------------------------------------------------------+