<!--
window.onerror = scriptError;

//*** GLOBAL VARIABLES/SETTINGS********************************************************************//
//*** DEVELOPMENT *******************************

//*** USB DRIVE 
/*
rootDir = "/Web%20Development/ORGMCC/website/development/";
resourceDir = "Web%20Development/ORGMCC/website/development/resources/";
imageDir = "/Web%20Development/ORGMCC/website/development/resources/images/";
scriptDir = "/Web%20Development/ORGMCC/website/development/resources/scripts/";
styleDir = "/Web%20Development/ORGMCC/website/development/resources/styles/";
*/
//*** PERSONAL LAPTOP 
/*
rootDir    = "/MyData/ORGMCC/Web%20Development/website/development/";
resourceDir= "/MyData/ORGMCC/Web%20Development/website/development/resources/";
imageDir   = "/MyData/ORGMCC/Web%20Development/website/development/resources/images/";
scriptDir  = "/MyData/ORGMCC/Web%20Development/website/development/resources/scripts/";
styleDir   = "/MyData/ORGMCC/Web%20Development/website/development/resources/styles/";
*/
//*** PRODUCTION ONLINE *************************

rootDir    = "/";
resourceDir= "/resources/";
imageDir   = "/resources/images/";
scriptDir  = "/resources/scripts/";
styleDir   = "/resources/styles/";

//*************************************************************************************************//

//*** SETTING TODAYS DATE FOR SCRIPT AVAILABILITY *************************************************//
today = new Date();
today.setHours(0);
today.setMinutes(0);
today.setSeconds(0);
//*************************************************************************************************//
function GetRandNum()
{
	RanNum = 0;

	RanNum = Math.random() + '';
	RanNum = parseInt(RanNum.charAt(3));
//	if(RanNum == 0)
//		RanNum = 1;
}

function setDocTitle(win){
//*** This Function sets the Popup window title to the title name of the calling/opening window. ***//

	eval(win + '.document.title="' + document.title +'"');

}

function displayRandomGraphic(basicGraphicName, graphicType)
{

	GetRandNum();
	document.write("<img src=\"" + imageDir + basicGraphicName + /*"_0" +*/ RanNum + "." + graphicType + "\" border=\"0\" usemap=\"#BANNER\">");

}
	
function Footer(){
// There's a style called actualFooter in layout.css which defines the style properties for the
// output of this function.

	var browNm  = navigator.appName;
	var browVer = parseFloat(navigator.appVersion);
	var isNN    = navigator.appName.indexOf("Netscape") != -1;
	var isIE    = navigator.appName.indexOf("Microsoft") != -1;
	var agent   = navigator.userAgent.toLowerCase();
	var isWin   = agent.indexOf("win") != -1;
	var isMac   = agent.indexOf("mac") != -1;
	var isUnix  = agent.indexOf("X11") != -1;
	var clPlatf = navigator.platform;
	
	/*	if(isNN && browVer < 6 )
			{
			document.write('<div align=\"center\"><span style=\"color : Red;\">');
			document.write('This site is best viewed with:<br>');
			document.write('<a href=\"http://www.microsoft.com/windows/ie\" target=\"_blank\"><span id=\"N12\"><b>Microsoft Internet Explorer</b></span></a>');
			document.write('</span></div>');
			}*/
	
	document.write('<div id=\"jsFooter\">');
	//document.write('<hr style="color : ' + hrColor + ';height: 2px;" />');
	
	document.write('&copy; 2007 ORGMCC.org (currently being hosted by: <a href="http://www.godaddy.com" target="_blank">godaddy.com</a>) &equiv; ');
	document.write('<a href=\"http://www.milonic.com/\" target="_blank">menu engine by milonic</a>');
	
	document.write('</span><span class="N7"><br />');
	
	//document.write('<b>Browser:</b> ' + browNm + ' <span class="N8"><b>&Xi;</b></span> <b>Platform:</b> ' + clPlatf + '<br />' + agent);
	document.write(agent);

	/*** OUTPUT THE Browser Requirments Image and Map ************************************************************************/
	document.write("<br><map name=\"browserReqs\">");
	document.write("<area coords=\"0,3,186,23\" href=\"http://www.microsoft.com/windows/ie/\"  target=\"_blank\">");
	document.write("<area coords=\"262,3,394,23\" href=\"http://www.mozilla.com/firefox/\" target=\"_blank\"></map>");
	document.write("<img src=\"" + imageDir + "image_browser_reqs.gif\" width=\"395\" height=\"26\" usemap=\"#browserReqs\">");
	/************************************************************************************************************************/
	
	document.write('</span></div>');

}

//*** This Function specifically swaps Menu Item Images only.
function swapImage(imageName, imageSrcName){

	eval("document." + imageName + ".src='" + menuDir + imageSrcName + "'");

}

function newPopup(src,W,H,scr,sta,rsz){

	window.open(src,'','width=' + W + ',height=' + H + ',scrollbars=' + scr + ',status=' + sta + ',resizable=' + rsz + ',location=no,toolbar=no,menubar=no');

}

function popUpPix(popsrc,W,H,SCR,STA,RSZ){	//example:	popup('it2/cbs/pop.htm',300,150,'no','yes','no')

	ITASpopup = window.open(gallDir + popsrc,"PDF","width=" + W + ",height=" + H + ",scrollbars=" + SCR + ",status=" + STA + ",resizable=" + RSZ + ",location=no,toolbar=no,menubar=no");
	//setTimeout('ITASpopup.document.body.style.margin="0px";ITASpopup.document.title="' + document.title + '";','25');
	setTimeout('ITASpopup.document.body.style.margin="0px";setDocTitle("ITASpopup");','250');

}

function popUp(popsrc,W,H,SCR,STA,RSZ){	//example:	popup('it2/cbs/pop.htm',300,150,'no','yes','no')

	NewPopUp = window.open(popsrc,"PDF","width=" + W + ",height=" + H + ",scrollbars=" + SCR + ",status=" + STA + ",resizable=" + RSZ + ",location=no,toolbar=no,menubar=no");

}

function popUp2ssz(popsrc,SCR,STA,RSZ){	//example:	popup('it2/cbs/pop.htm','no','yes','no')

var sw = screen.width;
var sh = screen.height;

var pw = ((sw*1)-100);
var ph = ((sh*1)-100);

	popup2sz = window.open(popsrc,"PDF","width=" + pw + ",height=" + ph + ",scrollbars=" + SCR + ",status=" + STA + ",resizable=" + RSZ + ",location=no,toolbar=no,menubar=no");
	popup2sz.moveTo(50,25);
	
}

function dispCurrDate(LANG){
//*** This functions displays the current date based on the argumented format you supply in either
//*** English[ENG] or Spanish[ESP], Date Arguments are:
//*** [MM=0,MMM=Jan.,MMMM=January] for Month
//*** [DD=1,DDD=Mon.,DDDD=Monday] for Day
//*** [YY=05,YYYY=2005] for Year
//*************************************************************************************************//

if(LANG.toLowerCase() != 'eng' && LANG.toLowerCase() != 'esp' || LANG == null)
	{
	alert("dispCurrDate() FUNCTION Error:\n\nInvalid LANGUAGE Argument!");
	return;
	}
else if(!(arguments.length > 2 && arguments.length < 6))
	{
	alert("dispCurrDate() FUNCTION Error:\nIncorrect amount of arguments supplied!");
	return;
	}
else
	{
	for(var checkArg=1; checkArg < arguments.length; checkArg++){
		switch(arguments[checkArg]){
			case 'DD': break;
			case 'DDD': break;
			case 'DDDD': break;
			case 'MM': break;
			case 'MMM': break;
			case 'MMMM': break;
			case 'YY': break;
			case 'YYYY': break;
			default: alert("dispCurrDate() FUNCTION Error:\nIncorrect Argument Supplied! : " + arguments[checkArg]);return;
			}
		}
	}

var Dt = new Date;
var dow = Dt.getDay();
var mth = Dt.getMonth();
var dom = Dt.getDate();
var yr  = Dt.getFullYear();

//*** DECIDE WHICH LANGUAGE ARRAY TO USE FOR THE DATE *********************************************//
if(LANG.toLowerCase() == 'eng')
	{
	var arrDOW = new Array('Sun.','Mon.','Tue.','Wed.','Thu.','Fri.','Sat.');
	var arrDOWfull = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	var arrMTH = new Array('Jan.','Feb.','Mar.','Apr.','May','Jun.','Jul.','Aug.','Sep.','Oct.','Nov.','Dec.');
	var arrMTHfull = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
	}
else
	{
	var arrDOW = new Array('Dom.','Lun.','Mar.','Mie.','Jue.','Vie.','Sab.');
	var arrDOWfull = new Array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado');
	var arrMTH = new Array('Ene.','Feb.','Mar.','Abr.','May.','Jun.','Jul.','Ago.','Sep.','Oct.','Nov.','Dic.');
	var arrMTHfull = new Array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');
	}

var DD   = dom;
var DDD  = arrDOW[dow];
var DDDD = arrDOWfull[dow];
var MM   = mth+1;
var MMM  = arrMTH[mth];
var MMMM = arrMTHfull[mth];
var YY   = yr.toString().substr(2);
var YYYY = yr;

//*** TEST: alert("DD is: " + DD + "\nDDD is: " + DDD + "\nDDDD is: " + DDDD + "\n\nMM is: " + MM + "\nMMM is: " + MMM + "\nMMMM is: " + MMMM + "\n\nYY is: " + YY + "\nYYYY is: " + YYYY);

//*** OUTPUT FOR NORMAL DATE PATTERNS *************************************************************//
if(arguments.length == 4 && arguments[1] == 'MM' && arguments[2] == 'DD' && arguments[3] == 'YY')
	document.write(MM + "/" + DD + "/" + YY);
else if(arguments.length == 4 && arguments[1] == 'MM' && arguments[2] == 'DD' && arguments[3] == 'YYYY')
	document.write(MM + "/" + DD + "/" + YYYY);
else if(arguments.length == 5 && LANG.toLowerCase() == 'eng' && arguments[1] == 'DDDD' && arguments[2] == 'MMMM' && arguments[3] == 'DD' && arguments[4] == 'YYYY')
	document.write(DDDD + ", " + MMMM + " " + DD + ", " + YYYY);
//*** Date Formats in Spanish *********************************************************************//
else if(arguments.length == 5 && LANG.toLowerCase() == 'esp' && arguments[1] == 'DDD' && arguments[2] == 'DD' && arguments[3] == 'MMMM' && arguments[4] == 'YYYY')
	document.write(DDD + " " + DD + " de " + MMMM + ", " + YYYY);
else if(arguments.length == 5 && LANG.toLowerCase() == 'esp' && arguments[1] == 'DDDD' && arguments[2] == 'DD' && arguments[3] == 'MMMM' && arguments[4] == 'YYYY')
	document.write(DDDD + ", " + DD + " de " + MMMM + ", " + YYYY);
else if(arguments.length == 5 && LANG.toLowerCase() == 'esp' && arguments[1] == 'DDD' && arguments[2] == 'DD' && arguments[3] == 'MMM' && arguments[4] == 'YYYY')
	document.write(DDD + " " + DD + " de " + MMM + ", " + YYYY);
else if(arguments.length == 5 && LANG.toLowerCase() == 'esp' && arguments[1] == 'DDDD' && arguments[2] == 'DD' && arguments[3] == 'MMM' && arguments[4] == 'YYYY')
	document.write(DDDD + ", " + DD + " de " + MMM + ", " + YYYY);
else
	for(var argument=1; argument < arguments.length; argument++){
		switch(arguments[argument]){
			case 'DD': document.write(DD + " ");break;
			case 'DDD': document.write(DDD + " ");break;
			case 'DDDD': document.write(DDDD + " ");break;
			case 'MM': document.write(MM + " ");break;
			case 'MMM': document.write(MMM + " ");break;
			case 'MMMM': document.write(MMMM + " ");break;
			case 'YY': document.write(", " + YY);break;
			case 'YYYY': document.write(", " + YYYY);break;
			}
		}

}

function pagePath(){
/**************************************************************************************************
 This function creates the hierarchy trail of links located right above the Title of the Page,
 except for the home page.
***************************************************************************************************/

	var arrow = "&nbsp;<span style=\"font-size : 10pt;\">&raquo;</span>&nbsp;";
	var URLhome = "<a href=\"" + rootDir + "index.html\">Home</a>";

	document.write("<span class=\"pagePath\">");
	document.write(URLhome);

	for(var path=0; path < arguments.length; path++){
		if(arguments[path] != null)
			if(arguments[path] == "self")
				{
				// Generate the self page link.
				document.write(arrow);
				// If the title of the page contains "CARPIO.org - ", substring whatever else is contained
				// on the title and use it as the name of the link.
				if(document.title.indexOf("CARPIO.org - ") != -1)
					document.write("<a href=\"" + location.pathname + "\">" + document.title.substring(13) + "</a>");
				else
					document.write("<a href=\"" + location.pathname + "\">" + document.title + "</a>");
				}
			else
				{
				document.write(arrow);
				document.write(getPagePathLink(arguments[path]));
				}
		}

	document.write("</span>");
	
}

function getPagePathLink(name){

	var pathLink = "";
	
	switch(name){
		case 'emma':
			pathLink = "<a href=\"" + rootDir + "emma/index.html\">Emma</a>";
			break;
		case 'joel':
			pathLink = "<a href=\"" + rootDir + "joel/index.html\">Joel</a>";
			break;
		case 'babyangel':
			pathLink = "<a href=\"" + rootDir + "babyangel/index.html\">Baby Angel</a>";
			break;
		case 'eva':
			pathLink = "<a href=\"" + rootDir + "eva/index.html\">Eva</a>";
			break;
		case 'juan':
			pathLink = "<a href=\"" + rootDir + "juan/index.html\">Juan</a>";
			break;
		case 'other':
			pathLink = "Other"; // <a href=\"" + rootDir + "other/index.html\">Other</a>
			break;
		case 'photogalls':
			pathLink = "Photo Galleries"; // <a href=\"" + rootDir + "gallery/index.html\">Photo Galleries</a>
			break;


/*		default:
			document.write("No Format Supplied");*/
		}

		return pathLink;

}

function showGraphicLinkTill(cutOffDate, popStyle, docLink, imgLink, sbMssg, SCROLL, STATUS, RESIZE, W, H){
//FUNCTION THAT DISPLAYS A GRAPHIC LINK TO A DOCUMENT UNTIL A SPECIFIED DATE.

/*** Parameter Definition *************************************************************************
+ cutOffDate = Date up to which to display graphic.
+ popStyle = Type of PopUp window. For PopUp you MUST include Width & Height.
			For PopUp2ssz DO NOT include Width & Height because it will create the window based on the screen size.
			VERY IMPORTANT: Case Sensitive, must be exactly "PopUp" or "PopUp2ssz".
+ docLink = location and name of the document to open.
+ imgLink = location and name of the graphic to display.
+ sbMssg = Status Bar Message to display on graphic Mouse Over. If none desired, MUST INCLUDE at least null string for example: ''
+ SCROLL = YES or NO to display scrollbars on the popup window.
+ STATUS = YES or NO to display the status bar on the popup window.
+ RESIZE = YES or NO to make the popup window resizable.
+ W = Width of the popup window for "PopUp" ONLY.
+ H = Height of the popup window for "PopUp" ONLY.
***************************************************************************************************/

//*** Cut Off Date should be formatted as: YYYYMMDD 
cutOffYear  = cutOffDate.substr(0,4);
cutOffMonth = cutOffDate.substr(4,2);
cutOffDay   = cutOffDate.substr(6,2);

	showTillDate = new Date(cutOffYear, (cutOffMonth-1), cutOffDay, 0, 0, 0);
	
	if(showTillDate > today)
		{
		if(popStyle == 'popUp')
			{document.write("<a href=\"javascript:" + popStyle + "('" + docLink + "'," + W + "," + H + ",'" + SCROLL + "','" + STATUS + "','" + RESIZE + "')\" onMouseOver=\"status='" + sbMssg + "';return true;\" onMouseOut=\"status='';return true;\"><img src=\"" + imgLink + "\" alt=\"" + sbMssg + "\" border=\"0\"></a>");}
		else if(popStyle == 'popUp2ssz')
			{document.write("<a href=\"javascript:" + popStyle + "('" + docLink + "','" + SCROLL + "','" + STATUS + "','" + RESIZE + "');\" onMouseOver=\"status='" + sbMssg + "';return true;\" onMouseOut=\"status='';return true;\"><img src=\"" + imgLink + "\" alt=\"" + sbMssg + "\" border=\"0\"></a>");}
		else
			{alert("Function Argument popStyle is incorrect!");}
		}

}

function docStatus(Y,M,D,DAYS,TYPE,SHOWLAST){
/**************************************************************************************************
	This Function will show/place a graphic indicating a Document that has a Recent "Update"
	if (TYPE) is 'UPD' or Recent "Addition" if (TYPE) is 'ADD' until the amount of specified (DAYS) 
	from Date (Y,M,D) have passed.  After the amount of days have passed it will then show a 
	LAST UPDATE graphic, which will also show the last update date by hovering over the graphic.
	The last parameter SHOWLAST will only display a "Last Update" graphic if set to 'YES'.
***************************************************************************************************/

rDt = new Date(Y,M-1,D+DAYS);	// Date to last show recent update/addition graphic.
dDt = new Date(Y,M-1,D);		// Date document updated.
nDt = new Date();				// Current Date.

	if((nDt <= rDt) && SHOWLAST == 'NO')
		{
		if(TYPE == "UPD")
			document.write("<img src='/it2/cbs/images/btn_rcnt_upd.gif' width='114' height='14' alt='updated on: " + dDt.toDateString() + "' border='0'>");
		else
			document.write("<img src='/it2/cbs/images/btn_new_doc.gif' width='134' height='14' alt='added on: "  + dDt.toDateString() + "' border='0'>");
		}
		else	// Just display the Last Update graphic, showing the date the document was last updated.
			{
			document.write("<img src='/it2/cbs/images/btn_last_upd.gif' width='73' height='12' alt='" + dDt.toDateString() + "' border='0'>");
			}

}


//*********************************************************************************************************************//
//*** PHOTO GALLERY FUNCTIONS that should be used on pages that call up a Photo Gallery.
//*********************************************************************************************************************//
popixWin = null;

function popPix(arg1){
//*** This function opens up the Photo Gallery showing the clicked photo number first *************//

InitPix = arg1;

	popixWin = window.open("gallery.html","PhotoGallery","width=600,height=590,resizable=no,status=no,scrollbars=no");

}

function popPhotoGallery(){
//*** This function opens up the Photo Gallery showing the first photo ****************************//

InitPix = 1;

	popixWin = window.open("gallery.html","PhotoGallery","width=600,height=590,resizable=no,status=no,scrollbars=no");

}

function unloadGallery(){
//*** This function must be set on the onUnload event of the Photo Gallery calling page. **********//

	if(popixWin != null)
		popixWin.close();

}
//*********************************************************************************************************************//
//*********************************************************************************************************************//

//This Script jumps to a different monthly letter
function jump2MoLetter(O){
switch(O.value){
// 2009 Letters.
	case "0912en":
		openMoLetter('../resources/documents/monthly_2009_12_eng.pdf');
		break;
	case "0911en":
		openMoLetter('../resources/documents/monthly_2009_11_eng.pdf');
		break;
	case "0910en":
		openMoLetter('../resources/documents/monthly_2009_10_eng.pdf');
		break;
	case "0909en":
		openMoLetter('../resources/documents/monthly_2009_09_eng.pdf');
		break;
	case "0908en":
		openMoLetter('../resources/documents/monthly_2009_08_eng.pdf');
		break;
	case "0907en":
		openMoLetter('../resources/documents/monthly_2009_07_eng.pdf');
		break;
	case "0906en":
		openMoLetter('../resources/documents/monthly_2009_06_eng.pdf');
		break;
	case "0905en":
		openMoLetter('../resources/documents/monthly_2009_05_eng.pdf');
		break;
	case "0904en":
		openMoLetter('../resources/documents/monthly_2009_04_eng.pdf');
		break;
	case "0903en":
		openMoLetter('../resources/documents/monthly_2009_03_eng.pdf');
		break;
	case "0902en":
		openMoLetter('../resources/documents/monthly_2009_02_eng.pdf');
		break;
	case "0901en":
		openMoLetter('../resources/documents/monthly_2009_01_eng.pdf');
		break;
	case "0912es":
		openMoLetter('../resources/documents/monthly_2009_12_esp.pdf');
		break;
	case "0911es":
		openMoLetter('../resources/documents/monthly_2009_11_esp.pdf');
		break;
	case "0910es":
		openMoLetter('../resources/documents/monthly_2009_10_esp.pdf');
		break;
	case "0909es":
		openMoLetter('../resources/documents/monthly_2009_09_esp.pdf');
		break;
	case "0908es":
		openMoLetter('../resources/documents/monthly_2009_08_esp.pdf');
		break;
	case "0907es":
		openMoLetter('../resources/documents/monthly_2009_07_esp.pdf');
		break;
	case "0906es":
		openMoLetter('../resources/documents/monthly_2009_06_esp.pdf');
		break;
	case "0905es":
		openMoLetter('../resources/documents/monthly_2009_05_esp.pdf');
		break;
	case "0904es":
		openMoLetter('../resources/documents/monthly_2009_04_esp.pdf');
		break;
	case "0903es":
		openMoLetter('../resources/documents/monthly_2009_03_esp.pdf');
		break;
	case "0902es":
		openMoLetter('../resources/documents/monthly_2009_02_esp.pdf');
		break;
	case "0901es":
		openMoLetter('../resources/documents/monthly_2009_01_esp.pdf');
		break;
// 2008 Letters.
	case "0812en":
		openMoLetter('../resources/documents/monthly_2008_12_eng.pdf');
		break;
	case "0811en":
		openMoLetter('../resources/documents/monthly_2008_11_eng.pdf');
		break;
	case "0810en":
		openMoLetter('../resources/documents/monthly_2008_10_eng.pdf');
		break;
	case "0809en":
		openMoLetter('../resources/documents/monthly_2008_09_eng.pdf');
		break;
	case "0808en":
		openMoLetter('../resources/documents/monthly_2008_08_eng.pdf');
		break;
	case "0807en":
		openMoLetter('../resources/documents/monthly_2008_07_eng.pdf');
		break;
	case "0806en":
		openMoLetter('../resources/documents/monthly_2008_06_eng.pdf');
		break;
	case "0805en":
		openMoLetter('../resources/documents/monthly_2008_05_eng.pdf');
		break;
	case "0804en":
		openMoLetter('../resources/documents/monthly_2008_04_eng.pdf');
		break;
	case "0803en":
		openMoLetter('../resources/documents/monthly_2008_03_eng.pdf');
		break;
	case "0802en":
		openMoLetter('../resources/documents/monthly_2008_02_eng.pdf');
		break;
	case "0801en":
		openMoLetter('../resources/documents/monthly_2008_01_eng.pdf');
		break;
	case "0812es":
		openMoLetter('../resources/documents/monthly_2008_12_esp.pdf');
		break;
	case "0811es":
		openMoLetter('../resources/documents/monthly_2008_11_esp.pdf');
		break;
	case "0810es":
		openMoLetter('../resources/documents/monthly_2008_10_esp.pdf');
		break;
	case "0809es":
		openMoLetter('../resources/documents/monthly_2008_09_esp.pdf');
		break;
	case "0808es":
		openMoLetter('../resources/documents/monthly_2008_08_esp.pdf');
		break;
	case "0807es":
		openMoLetter('../resources/documents/monthly_2008_07_esp.pdf');
		break;
	case "0806es":
		openMoLetter('../resources/documents/monthly_2008_06_esp.pdf');
		break;
	case "0805es":
		openMoLetter('../resources/documents/monthly_2008_05_esp.pdf');
		break;
	case "0804es":
		openMoLetter('../resources/documents/monthly_2008_04_esp.pdf');
		break;
	case "0803es":
		openMoLetter('../resources/documents/monthly_2008_03_esp.pdf');
		break;
	case "0802es":
		openMoLetter('../resources/documents/monthly_2008_02_esp.pdf');
		break;
	case "0801es":
		openMoLetter('../resources/documents/monthly_2008_01_esp.pdf');
		break;
// 2007 Letters.
	case "0712en":
		openMoLetter('../resources/documents/monthly_2007_12_eng.pdf');
		break;
	case "0711en":
		openMoLetter('../resources/documents/monthly_2007_11_eng.pdf');
		break;
	case "0710en":
		openMoLetter('../resources/documents/monthly_2007_10_eng.pdf');
		break;
	case "0709en":
		openMoLetter('../resources/documents/monthly_2007_09_eng.pdf');
		break;
	case "0708en":
		openMoLetter('../resources/documents/monthly_2007_08_eng.pdf');
		break;
	case "0707en":
		openMoLetter('../resources/documents/monthly_2007_07_eng.pdf');
		break;
	case "0706en":
		openMoLetter('../resources/documents/monthly_2007_06_eng.pdf');
		break;
	case "0705en":
		openMoLetter('../resources/documents/monthly_2007_05_eng.pdf');
		break;
	case "0704en":
		openMoLetter('../resources/documents/monthly_2007_04_eng.pdf');
		break;
	case "0703en":
		openMoLetter('../resources/documents/monthly_2007_03_eng.pdf');
		break;
	case "0702en":
		openMoLetter('../resources/documents/monthly_2007_02_eng.pdf');
		break;
	case "0701en":
		openMoLetter('../resources/documents/monthly_2007_01_eng.pdf');
		break;
	case "0712es":
		openMoLetter('../resources/documents/monthly_2007_12_esp.pdf');
		break;
	case "0711es":
		openMoLetter('../resources/documents/monthly_2007_11_esp.pdf');
		break;
	case "0710es":
		openMoLetter('../resources/documents/monthly_2007_10_esp.pdf');
		break;
	case "0709es":
		openMoLetter('../resources/documents/monthly_2007_09_esp.pdf');
		break;
	case "0708es":
		openMoLetter('../resources/documents/monthly_2007_08_esp.pdf');
		break;
	case "0707es":
		openMoLetter('../resources/documents/monthly_2007_07_esp.pdf');
		break;
	case "0706es":
		openMoLetter('../resources/documents/monthly_2007_06_esp.pdf');
		break;
	case "0705es":
		openMoLetter('../resources/documents/monthly_2007_05_esp.pdf');
		break;
	case "0704es":
		openMoLetter('../resources/documents/monthly_2007_04_esp.pdf');
		break;
	case "0703es":
		openMoLetter('../resources/documents/monthly_2007_03_esp.pdf');
		break;
	case "0702es":
		openMoLetter('../resources/documents/monthly_2007_02_esp.pdf');
		break;
	case "0701es":
		openMoLetter('../resources/documents/monthly_2007_01_esp.pdf');
		break;
// 2006 Letters.
	case "0612en":
		openMoLetter('../resources/documents/monthly_2006_12_eng.pdf');
		break;
	case "0611en":
		openMoLetter('../resources/documents/monthly_2006_11_eng.pdf');
		break;
	case "0610en":
		openMoLetter('../resources/documents/monthly_2006_10_eng.pdf');
		break;
	case "0609en":
		openMoLetter('../resources/documents/monthly_2006_09_eng.pdf');
		break;
	case "0608en":
		openMoLetter('../resources/documents/monthly_2006_08_eng.pdf');
		break;
	case "0607en":
		openMoLetter('../resources/documents/monthly_2006_07_eng.pdf');
		break;
	case "0606en":
		openMoLetter('../resources/documents/monthly_2006_06_eng.pdf');
		break;
	case "0605en":
		openMoLetter('../resources/documents/monthly_2006_05_eng.pdf');
		break;
	case "0604en":
		openMoLetter('../resources/documents/monthly_2006_04_eng.pdf');
		break;
	case "0603en":
		openMoLetter('../resources/documents/monthly_2006_03_eng.pdf');
		break;
	case "0602en":
		openMoLetter('../resources/documents/monthly_2006_02_eng.pdf');
		break;
	case "0612es":
		openMoLetter('../resources/documents/monthly_2006_12_esp.pdf');
		break;
	case "0611es":
		openMoLetter('../resources/documents/monthly_2006_11_esp.pdf');
		break;
	case "0610es":
		openMoLetter('../resources/documents/monthly_2006_10_esp.pdf');
		break;
	case "0609es":
		openMoLetter('../resources/documents/monthly_2006_09_esp.pdf');
		break;
	case "0608es":
		openMoLetter('../resources/documents/monthly_2006_08_esp.pdf');
		break;
	case "0607es":
		openMoLetter('../resources/documents/monthly_2006_07_esp.pdf');
		break;
	case "0606es":
		openMoLetter('../resources/documents/monthly_2006_06_esp.pdf');
		break;
	case "0605es":
		openMoLetter('../resources/documents/monthly_2006_05_esp.pdf');
		break;
	case "0604es":
		openMoLetter('../resources/documents/monthly_2006_04_esp.pdf');
		break;
	case "0603es":
		openMoLetter('../resources/documents/monthly_2006_03_esp.pdf');
		break;
	case "0602es":
		openMoLetter('../resources/documents/monthly_2006_02_esp.pdf');
		break;
	default:
		break;
	}
}

function openMoLetter(LOCATION){
	window.open(LOCATION, "","scrollbars=no,status=no,resizable=no,location=no,toolbar=no,menubar=no");
}


function scriptError(msg, url, line){
//*** SCRIPT ERROR HANDLER FUNCTION ***************************************************************//

alert("JavaScript Error Ocurred!:\n\n\nError Message is: " + msg + "\n\nError at Line: " + line);
	
return true;

}


//-->