/*  File: /includes/date.js     */
/*  For:  muschany.com          */
/*  By:   Jeremy Tredway        */
/*  Date: 04.21.04              */

// hide email from spambots

function build_mail_adv(s,e,h,d) {
	document.write("<a class='" + s + "' href='" + "mail" + "to:" + e + "@" + h + "." + d + "'>" + e + "<nos>&#64;</nos>" + h + "&#46;" + d + "</a>")
}

// display today's date

function ShowTodaysDate() {
   
   var ShowDay ="no";
   
   var Days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
   var Months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
   var TheDate = new Date();
   
   var TheWeekDay = TheDate.getDay();
   var Day ="";
   if (ShowDay == "yes"){
       Day = Days[TheWeekDay];
       Day += " ";}
   
   var TheMonth = Months[TheDate.getMonth()];
   
   var TheMonthDay = TheDate.getDate();
   if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;
   
   var TheYear = TheDate.getYear();
   if (TheYear < 1000) TheYear += 1900;
   
   var D = "";
       D += Day + TheMonth + " " + TheMonthDay + ", " + TheYear;
   
   document.write(D);
   
   }
   
if(top.location != self.location){top.location = self.location;}
