		var selObj;
		
		function win_custom(url, x, y){ 
			if (window.cst_win) {
				cst_win.close();
			}
			cst_win = window.open(url,"cst_win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+ x +',height='+ y);
		}
		
		function open_window(iurl) {
			if (window.misc_win) {
				misc_win.close();
			}
			misc_win = window.open(iurl,"misc_win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height='+ (window.screen.availHeight - (window.screen.availHeight * .4)));
			
		}
			
		function ci(inObj, inName, inFunction) {
			if (inObj != selObj) {
				inObj.src = 'Images/navigation/'+ inName +'_'+ inFunction +'.gif';
			}
		} 
		
		function imagePreloader() {
			if (document.imgLoadArray==null) document.imgLoadArray = new Array();
			var i = document.imgLoadArray.length;
			for(var j=0;j<document.images.length; j++) {
				if (document.images[j].src.indexOf("_off.") > -1) {
					document.imgLoadArray[i] = new Image;
					document.imgLoadArray[i++].src = document.images[j].src.substring(0,document.images[j].src.indexOf("_off.")) +"_on.gif";
				} 
			}
		}
		function jsOutNewMsg(dDisplayUntil, sMessage) {
			var sReturn = "";
			var dToday  = new Date();
			if (sMessage == undefined) {
				sMessage = "New!";
			}
			if (compareDates(dToday, dDisplayUntil, "<=")) {
				sReturn = " <SPAN class='cNew'>" + sMessage + "</SPAN>";
			}
			return sReturn
		} 
function compareDates(inDate1, inDate2, inOperator) {
      var testDate1 = new Date(inDate1);
      var testDate2 = new Date(inDate2);
      var logRetVal = true;
      switch (inOperator) {
        case "=":  {
          logRetVal = (testDate1 == testDate2);
        break;     } //=
    	case ">":  {
          logRetVal = (testDate1  > testDate2);
        break;     } //>
    	case "<":  {
          logRetVal = (testDate1  < testDate2);
        break;     } //<
    	case ("!=" || "<>") : {
          logRetVal = (testDate1 != testDate2);
        break;     } //!=
        case ">=": {
          logRetVal = (testDate1 >= testDate2);
    	break;     } //>=
        case "<=": {
          logRetVal = (testDate1 <= testDate2);
        break;     } //<=
    	default:
    	  window.alert("DEVELOPER'S ALERT\nThe Operator you passed to compareDates (" +
    	    inOperator + ") is not valid and cannot be tested.  The function will return TRUE");
    	break;     // default
      } //switch
      return logRetVal;
    } //END: compareDates()