/* These two conditionals throw an error...though I don't know why...So I clipped them for now
if (document.all && window.attachEvent){
	window.attachEvent("onload", fixWinIE);
}
function fixWinIE() {
	if (document.body.scrollHeight<document.all.content.offsetHeight){
		document.all.content.style.display = 'block';
	}
}
*/

//Generate New Window
// Pop-Up Window Generator - Graphics
function openNew(imageName,imageWidth,imageHeight,alt) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onClick="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close(); 
	newWindow.focus();
}

//Generate New Window
//Pop-up Window Generator - Page
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 412,top = 284');");
}

// Generate Date
function showTheDate(){
	dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	monName = new Array ("January","February","March","April","May","June","July","August","September","October","November","December")
	now = new Date
	theDate = (dayName[now.getDay()] + " >> " + monName[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear())
	document.write('<div id="date">[&nbsp;&nbsp;<b>today is : <\/b>&nbsp;' + theDate + '&nbsp;&nbsp;]<\/div>')
}

/* If you want to display the time...add these function calls to the above document.write line
function showTheHours(theHour){
	if (theHour > 0 && theHour < 13){
		return (theHour)
	}
	if (theHour == 0){
		return (12)
	}
	return (theHour-12)
}
				
function showZeroFilled(inValue){
	if (inValue > 9) {
		return ":" + inValue
	}
	return ":0" + inValue
}
				
function showAmPm(){
	now = new Date
		if (now.getHours() < 12){
		return (" AM")
		}
	return (" PM")
}
				
function showTheTime(){
	now = new Date
	return (showTheHours(now.getHours()) + showZeroFilled(now.getMinutes()) + showAmPm())
}

+ showZeroFilled(now.getSeconds())  -- before '+ showAmPm()' to display seconds
*/

// Pre-Load Images
function newImage(arg){
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages(){
	if (document.images){
		main_nav_bar = newImage("http://www.mrgdc.org/images/main_nav_bar.gif");
		preloadFlag = true;
	}
}

// Status Bar
function stdStatus() {
	window.status = "The Middle Rio Grande Development Council Web Site";
	return true;
}

// Safe E-Mail Addresses
var user;
var domain;
var suffix;
var _string;

function jemail(user, domain, suffix, _string){
document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + _string + '</a>');
}

<!-- Original:  CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:  http://www.codelifter.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin openFrameless
//var windowW=300 // wide
//var windowH=300 // high
var windowX = 260 // from left
var windowY = 100 // from top
//var title =  "Privacy Policy"
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = true
// do not edit below this line
var beIE = document.all?true:false
function openFrameless(urlPop,windowW,windowH,title) {
s = "width="+windowW+",height="+windowH;
if (beIE) {
	NFW = window.open("","popFrameless","fullscreen,"+s);
	NFW.blur();
	window.focus();
	NFW.resizeTo(windowW,windowH);
	NFW.moveTo(windowX,windowY);
	var frameString=""+
	"<html>"+
	"<head>"+
	"<title>"+title+"</title>"+
	"</head>"+
	"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
	"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
	"<frame name='bottom' src='about:blank' scrolling='no'>"+
	"</frameset>"+
	"</html>";
	NFW.document.open();
	NFW.document.write(frameString);
	NFW.document.close();
}
else {
	NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
	NFW.blur();
	window.focus();
	NFW.resizeTo(windowW,windowH);
	NFW.moveTo(windowX,windowY);
	}
	NFW.focus();
	if (autoclose) {
	window.onunload = function(){NFW.close();}
   }
}
//  End -->
