var day=28;
var month=10;
var whenYear=2001;
function numAnni(whenDay,whenMonth,whenYear){

    var now = new Date();
    var thisDay = now.getDate(), thisMonth = now.getMonth() + 1, thisYear = now.getYear();
    var yearsDifference = thisYear - whenYear , monthsDifference = 0, daysDifference = 0, string = '';
    if (whenMonth >= thisMonth) monthsDifference = whenMonth - thisMonth;
    else { 
	 monthsDifference = whenMonth + 12 - thisMonth;
	 }
    if (whenDay >= thisDay) daysDifference = whenDay - thisDay;
    else {
        if (monthsDifference > 0) monthsDifference--;
        else { yearsDifference++; monthsDifference+=11; }
        daysDifference = whenDay + 31 - thisDay;
    }
    if (yearsDifference > 1) {
        string = yearsDifference;
    }

    return string;
}

function timeTillDate(whenDay,whenMonth) {
    var now = new Date();
    var thisDay = now.getDate(), thisMonth = now.getMonth() + 1, thisYear = now.getYear();
    var monthsDifference = 0, daysDifference = 0, string = '';
    if (whenMonth >= thisMonth) monthsDifference = whenMonth - thisMonth;
    else { monthsDifference = whenMonth + 12 - thisMonth; }

    if (whenDay >= thisDay) {
		daysDifference = whenDay - thisDay;
		}
    else {
        if (monthsDifference > 0) monthsDifference--;
        else { monthsDifference+=11; }
        daysDifference = whenDay + 31 - thisDay;
    }

    if (monthsDifference > 0) {
        string += monthsDifference + ' month';
        if (monthsDifference > 1) string += 's';
        string += ' ';
    }

    if (daysDifference > 0) {
        string += daysDifference + ' day';
        if (daysDifference > 1) string += 's';
        string += ' ';
    }

    var difference = Date.UTC(now.getYear(),now.getMonth(),now.getDate(),now.getHours(),now.getMinutes(),now.getSeconds()) -
                     Date.UTC(now.getYear(),now.getMonth(),now.getDate(),0,0,0);
                     
    difference = 1000*60*60*24 - difference;

    var hoursDifference = Math.floor(difference/1000/60/60);
    difference = difference - hoursDifference*1000*60*60
    var minutesDifference = Math.floor(difference/1000/60);
    difference = difference - minutesDifference*1000*60
    var secondsDifference = Math.floor(difference/1000);

if ((monthsDifference == 0) && (daysDifference == 0)){
		string += 'TODAY IS OUR ANNIVERSARY<br>HAPPY ANNIVERSARY!!!';
		}
	else {
    if (hoursDifference > 0) {
        string += hoursDifference + ' hour';
        if (hoursDifference > 1) string +='s';
        string += ' ';
    	}

    if (minutesDifference > 0) {
        string += minutesDifference + ' minute';
        if (minutesDifference > 1) string +='s';
        string += ' ';
    	}

    if (secondsDifference > 0) {
        string += secondsDifference + ' second';
        if (secondsDifference > 1) string +='s';
        string += ' ';
    	}
	}

    return string;
}

function WriteDate(){
// Dynamic Date Dreamweaver Object (c) 1999 Michael West, webmaster@mwwebdesign.com
// Please report any bugs or improvement suggestions.
document.write("<font color='#000000' font size='+0' font face='arial'><b><i>")
var mydate=new Date()
var year=mydate.getYear()
if (year<2000)
year += (year < 1900) ? 1900 : 0
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("&nbsp;"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"&nbsp;")
document.write("</b></i></font>")
}
