' + who + ' (' + FullDate(birthDay,birthMonth,birthYear) + ')'; } } return output; } //**** Event routines function Easter(Y) { var C = Math.floor(Y/100); var N = Y - 19*Math.floor(Y/19); var K = Math.floor((C - 17)/25); var I = C - Math.floor(C/4) - Math.floor((C - K)/3) + 19*N + 15; I = I - 30*Math.floor((I/30)); I = I - Math.floor(I/28)*(1 - Math.floor(I/28)*Math.floor(29/(I + 1))*Math.floor((21 - N)/11)); var J = Y + Math.floor(Y/4) + I + 2 - C + Math.floor(C/4); J = J - 7*Math.floor(J/7); var L = I - J; var M = 3 + Math.floor((L + 40)/44); var D = L + 28 - 31*Math.floor(M/4); return padout(M) + '.' + padout(D); } function getMM(string) { return eval(string.substring(0,2)); } function getDD(string) { return eval(string.substring(3,5)); } function getYYYY(string) { return eval(string.substring(0,string.indexOf('.'))); } function getMMDD(string) { return string.substring(string.indexOf('.')+1,string.length); } function daysinyear(year) { if (LeapYear(year)) return 366; else return 365; } function addDays(day,month,year,addition) { if (LeapYear(year)) var number = day + accumulateLY[month] + addition; else var number = day + accumulate[month] + addition; var days = daysinyear(year); while (number > days) { number -= days; days = daysinyear(++year); } while (number < 1) { days = daysinyear(--year); number += days; } month = 1; if (LeapYear(year)) { while (number > accumulateLY[month]) { month++; } day = number - accumulateLY[--month]; } else { while (number > accumulate[month]) { month++; } day = number - accumulate[--month]; } return year + '.' + padout(month) + '.' + padout(day); } function NthDay(nth,weekday,month,year) { if (nth > 0) return (nth-1)*7 + 1 + (7 + weekday - DayOfWeek((nth-1)*7 + 1,month,year))%7; if (LeapYear(year)) var days = daysofmonthLY[month]; else var days = daysofmonth[month]; return days - (DayOfWeek(days,month,year) - weekday + 7)%7; } function setFont(size) { return '' } function GenOutput (form, bgCount) { if (ChosenDate(form)) { var backgroundIMG = "" var rbBackground = form.bgImageSRC // alert("rbBackground="+rbBackground) for (i = 0; i < rbBackground.length; i++) { if (rbBackground[i].checked) { backgroundIMG = rbBackground[i].value // alert("backgroundIMG="+backgroundIMG) } } var oWindow = window.open("","BdayCert") if (oWindow != null) { var starsign = StarSign(day,month) var chineseyearrange = '' var chineseyearname = '' var chineseyear = Chinese(day,month,year) var zodiac = starsigns[starsign] var stardate = StarDate(day,month,year) var zodiacImage = '

' + zodiacImage + '<\/TD>' cContent += ' | ' + setFont("+3") + Child(DayOfWeek(day,month,year)) + '<\/TD>' cContent += ' | ' + zodiacImage + '<\/TD>' cContent += '<\/TR> | |||||
' + setFont("+2")
cContent += '' + form.Name.value + '<\/FONT><\/B>'
cContent += ' is geboren op ' + FullDate(day,month,year) + ' Sterrenbeeld: ' + zodiac + '<\/P>' cContent += ' Geboortebloem: ' + birthflowers[month] + '<\/P>' cContent += ' Geboortesteen: ' + birthstones[month] + ' ' + zodiacImage + '<\/TD>'
cContent += ' | <\/I><\/TD>'
cContent += ' | ' + zodiacImage + '<\/TD>'
cContent += '<\/TR><\/TABLE><\/BODY><\/HTML>'
oWindow.document.write(cContent)
oWindow.document.close()
oWindow.focus()
} else {
alert("Het certificaat kan niet gemaakt worden. Check uw browser of deze java ondersteund.")
}
}
}
// ]]>
|
LET OP: |