


///// THE INFAMOUS POPUP WINDOW				        		///// javascript:popWindow('theURL','winName','scrollbars=no,width=100,height=100')

function popWindow(daURL,daName,daFeats) {
	window.open(daURL,daName,daFeats);
}



///// ROLLOVER IMAGES										///// ONMOUSEOVER="changeImages('name', 'file.gif'); return true;"
															///// ONMOUSEOUT="changeImages('name', 'file.gif'); return true;"
var changesImages;
function changeImages(daName, toSwap) {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i < changeImages.arguments.length; i+=2) {
			document[daName].src = toSwap;
		}
	}
}



///// THE PRELOAD FUNCTION						    		///// onload="preloadImages();"

var preloadFlag = false;
var preloadImages;
function preloadImages() {
	if (document.images) {
		//navBarOver = newImage("shared/navBar_over.gif");
		preloadFlag = true;
	}
}

function newImage(imgName) {
	if (document.images) {
		toChg = new Image();
		toChg.src = imgName;
		return toChg;
	}
}



///// THE IMAGE SWAPPER						        		///// onclick="imgSwap('toSwap','swapWith'); return false;"

function imgSwap(swapWith) {
	if (document.images) {
		document.images['pict'].src = swapWith;
	}
}



///// ALLOWS PNGS IN IE4+

if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
	window.attachEvent("onload", fnLoadPngs);
}

function fnLoadPngs() {
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) {
		if (itsAllGood && img.src.match(/\.png$/i) != null) {
			var src = img.src;
			img.style.width = img.width + "px";
			img.style.height = img.height + "px";
			img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
			img.src = "shared/mrI.gif";
		}
		img.style.visibility = "visible";
	}
	///// ANY PNGS USED AS ROLLOVERS MUST BE DONE MANUALLY HERE

	
}


///// RELOADS PAGE IS N4 RESIZES

function reloadPage(init){
	if (init==true) with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerWidth; 
			document.MM_pgH=innerHeight; 
			onresize=MM_reloadPage; 
		}
	} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) history.go(0);
}
reloadPage(true);


///// CHANGING FORM FIELD BACKGROUND COLORS					///// ChgFldBdgClr('fieldName', '#000000');

function chgFldBgdClr(frmNam, fldNam, theValue){
	eval("document." + frmNam + "." + fldNam + ".style.background='" + theValue + "'");
}