<!-- //*** begin script ***//
  
  var newwindow='', piclink='', title='', caption='', pictitle='', text='', rw=null, rh=null;
  
  function showNewPicWin(piclink, title, caption, pictitle, rw, rh) {
  	
  	if (rw==null) {
  		rw=360;
  		rh=480;
  	}
  	
    popup('', rw, rh);
    
    text = '<html><head><title>' + title + '</title><style type="text/css"><!-- ';
    text += 'body {background-color: black; font: normal normal normal 13px Comic Sans MS, Arial, cursive; color: white;}';
    text += '.big {font-size: 18px;} .sml {font-size: 15px;} .drg {text-align: right;}--> </style></head>';
    text += '<body><center><img src="' + piclink +'" alt="Image" width="100%">';
    text += '<p class="big">' + caption + '<span class="sml"><br>' + pictitle + '</span></p></center>';
    if (rw==360) {
    	text += '<p class="drg">Drag to resize --&gt;</p>';
    }
    text += '</body></html>';
    
    newwindow.document.write(text);
    newwindow.focus();
    newwindow.document.close();
    return false;
  }
  
//*** new function ***// 

  var uri='', ww=0, wh=0, rw=0, rh=0, sw=0, sh=0, rr=0;
      ww=Math.round(self.screen.availWidth)-180;
      wh=Math.round(self.screen.availHeight)-180; 
  
  function popup(uri,rw,rh) {
  
    sw=rw;
    sh=rh;
    
    if ((rw>ww)||(rh>wh)) {
    
      if (rh>=rw) {
        rr=(rh/wh);
      }
      else if (rw>rh) {
        rr=(rw/ww);
      }
      
      if (sh>0) {
      	sh=Math.round(rh/rr);
      }
      sw=Math.round(rw/rr);
    }
    
    if (sh>0) {
    	sw=sw+16;
    	sh=sh+96;
    }
    	
    doNewWin(uri,sw,sh);
//***    return false;    ***//
  }
  
//*** new function ***//
     
    function doNewWin(uri,sw,sh) {
    
  	  newwindow=window.open(uri,'mywindow','toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=' + sw + ',height=' + sh + ',left=10,top=10');
    } 
    
//*** new function ***//
  
  function showCal(m, y) {
     var mn = ['January','February','March','April','May','June','July','August','September','October','November','December'];
     var ldom = [31,29,31,30,31,30,31,31,30,31,30,31];
     var fstsat = [7,6,5,4,3,2,1];
     var thdfri = [20,19,18,17,16,15,21];
     
     var oD = new Date(y, m, 1);
     var dayone = oD.getDay()+1;
     
     var todaysdate=new Date();
     var istoday=(y==todaysdate.getFullYear() && m==todaysdate.getMonth())? todaysdate.getDate() : 0; //test for today's date
     
     ldom[1]=(((oD.getFullYear()%100!=0)&&(oD.getFullYear()%4==0))||(oD.getFullYear()%400==0))?29:28; // test for leap year (Feb)
     
     var t='<td><div class="outer"><table cols="7" cellpadding="0" cellspacing="0"><tr>';
         t+='<td colspan="7" class="month">'+mn[m]+'&nbsp;'+y+'</td></tr><tr>';
     
     for(s=0;s<7;s++) {
     	t+='<td class="weekdays">'+"SMTWTFS".substr(s,1)+'</td>';
     }
        t+='</tr><tr>';
        
     for(i=1;i<=42;i++) {
        var x=((i-dayone>=0)&&(i-dayone<ldom[m]))? i-dayone+1 : '&nbsp;';
        if (x==istoday && x==fstsat[dayone-1]) {
            t+='<td class="brkfst" title="!!! Breakfast is Today !!!">'+x+'</td>';
        }
           else if (x==istoday && x==thdfri[dayone-1]) {
            t+='<td class="mtgnite" title="!!! Club Meeting is Tonight !!!">'+x+'</td>';
        }
           else if (x==fstsat[dayone-1] ) {
            t+='<td class="evt" title="Breakfast at Geronimo&rsquo;s">'+x+'</td>';
        }
           else if (x==thdfri[dayone-1]) {
            t+='<td class="evt" title="Club Meeting">'+x+'</td>';
        }
           else if (x==istoday) {
            t+='<td class="today" title="Today&rsquo;s Date">'+x+'</td>';
        }
           else {
            t+='<td class="days">'+x+'</td>';
        }
        if(((i)%7==0)&&(i<36)) {
        	t+='</tr><tr>';
        }
     }
     return t+='</tr></table></div></td>';
  }

//*** new function ***//
  
  function lastMod() {
  
  	var i = null, xx = null, yy = null;
  	xx = document.lastModified;
 	yy = 'Last changed on: ';
 	yy += xx;
 	
  	return (yy);
  }
  
//*** new function ***//
  
  function copyrite() {
  
  	var nd = null, yy = null, xx = null;
     nd = new Date();
     yy = nd.getFullYear();
  	 xx = '&nbsp;-&nbsp;<a href="mailto:wd7k@arrl.net">Webmaster</a><br>&copy; 2004 - 2012 PARC';
  	return (xx);
  }
  
//*** end script *** -->

