// Days left till every Christmas and New Year (by Zhitya - zhitya@mail.ru)
// Please, post letters with subjects including in any position such words: "JavaScript maker" 
var mn=[31,28,31,30,31,30,31,31,30,31,30,31];
function christ(){
	var today = new Date();
	var mon = today.getMonth()+1;
	var day = today.getDate();
	var xx=0;
	var yy=0;
	for(i=0;i<mon-1;i++){
		xx+=mn[i];
	}
	xx=359-(xx+day);
	yy=xx+6;
	if (xx<0) {xx="Christmas Left :( but ";}
	else {xx=xx + " days up to Christmas, ";}
	document.write(xx + yy +" days remain New Year");
}/*put such code in html to test the script: <script type="text/javascript">christ();</script>*/