DT=new Date()
hd=DT.getUTCDate()
hm=DT.getUTCMonth()+1
hy=DT.getUTCFullYear()

function ma(size){
	this.length=size
	for (var i = 1; i <= size; i++){
		this[i]=0
	}
	return this
}

month=new ma(12)
	month[1]=31;
	month[2]=28;
	month[3]=31;
	month[4]=30;
	month[5]=31;
	month[6]=30;
	month[7]=31;
	month[8]=31;
	month[9]=30;
	month[10]=31;
	month[11]=30;
	month[12]=31;

function lpt(str){
	document.write(str);
}


function telAf(dd,mm,yy){
	var totDays=0;

	var ad=dd-hd;
	var am=mm-hm;
	var ay=yy-hy;

	for (var i=hm;i<mm;i++){
		totDays=totDays+month[i];
	}
	totDays=totDays+ad;
	totDays=totDays+(ay*356);
	return totDays;
}
