var flasher = false 
function MakeArray(n) { 
this.length = n 
return this 
} 
monthNames = new MakeArray(12) 
monthNames[1] = "January"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April" 
monthNames[5] = "May" 
monthNames[6] = "June" 
monthNames[7] = "July" 
monthNames[8] = "August" 
monthNames[9] = "September" 
monthNames[10] = "October" 
monthNames[11] = "November" 
monthNames[12] = "December" 

dayNames = new MakeArray(7) 
dayNames[1] = "Domingo" 
dayNames[2] = "Lunes" 
dayNames[3] = "Martes" 
dayNames[4] = "Miércoles" 
dayNames[5] = "Jueves" 
dayNames[6] = "Viernes" 
dayNames[7] = "Sábado" 

 
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1; 

// alert(map) 
var today=new Date(); 
       var theDay=dayNames[today.getDay() + 1] 
       var theDate=today.getDate() 
	   var Month=today.getMonth() + 1
       var theMonth = monthNames[today.getMonth() + 1] 
       var year1=today.getYear() 
       var year2=today.getYear() + 1900 
	   var year = InternetExplorer ? year1 : year2 
	   var min=today.getMinutes() 
	   var hr=today.getHours() 
       var theTime = "" + ((hr> 12) ? hr - 12 : hr) 
       theTime += ((min < 10) ? ":0" : ":") + min 
       theTime  += (hr >= 12) ? " pm" : " am" 
       theTime += ((flasher) ? " " : "*") 
       flasher = !flasher 
	   
	   document.write(theMonth + ' ' + theDate + ", " + year + ' ');
	   document.write("</td></tr></table>");
		
		(Month <= 9) ? M = "0" + Month.toString() : M = Month.toString();
		(theDate <= 9) ? D = "0" + theDate.toString() : D = theDate.toString();
		
		string=year.toString() + M + D;

function thisweek() {
	doc="http://www.archden.org/cgi-bin/cal_make.cgi?p1=WEE" + string
	open(doc,'_self');
	}

function thismonth() {
	doc="http://www.archden.org/cgi-bin/cal_make.cgi?p1=MON"
	open(doc,'_self');
	}
function thisday() {
//http://www.archden.org/cgi-bin/cal_make.cgi?p1=DAY20021104
	doc="http://www.archden.org/cgi-bin/cal_make.cgi?p1=DAY" + string
	open(doc,'_self');
	}	
