function reklama() {
document.write('');
}

function customDateString(nTip) {
	currentDate = new Date()
	var theDay = currentDate.getDate()-1
	var theMonth = currentDate.getMonth()+1
        var theHour=currentDate.getHours()
	var theTip

        if (nTip==1) {
          theTip='j'
        }
	else {
          theTip='o'
        }

        if (theHour<11) {
          theDay=theDay-1
        }
	if (theDay<=0) {
          theDay=1
        }
	if (theDay<10) {
          theDay="0"+theDay
        }

	if (theMonth<10) {
          theMonth="0"+theMonth
        }
        
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear()
	}
	else {
	     var theYear = currentDate.getYear() +1900
	}
        theYear=theYear-2000
	if (theYear<10) {
          theYear="0"+theYear
        }
	return "<a href='http://anekdot.ru/an/an"+theYear+theMonth+"/"+theTip+theYear+theMonth+theDay+";1.html'>"
}
