	<%
	Function temizle(trh)
	if trh<10 then
		trh=Right(trh,1)
	end if
	temizle=trh
	End Function
	
	d_month=Request.QueryString("month")
	d_year=Request.QueryString("year")
	if d_year="" or d_year<1900 or d_year>2100 then
	d_year=Year(date)
	end if
	if d_month="" then d_month=month(date)
	if d_year="" then d_year=year(date)
	if d_month>12 then
	d_month=1
	d_year=d_year+1
	end if
	if d_month<1 then
	d_month=12
	d_year=d_year-1
	end if
	d_day=28
	while isdate(d_day&","&d_month&","&d_year)=true
	d_day=d_day+1
	wend
	d_day=d_day-1
	%>
	<table border="0" cellspacing="2" cellpadding="2" width="100%" align="center" style="border-collapse: collapse">
<tr>
		<td><div align="center" style="display:none"><a href="?month=<%=d_month-1%>&year=<%=d_year%>" title="Önceki Ay">«</a></div></td>
		<td align=center colspan=5><font class="blok"><b><%=Monthname(d_month)%> - <%=d_year%></b></font></td>
		<td>
		<p align="center" style="display:none"><a href="?month=<%=d_month+1%>&year=<%=d_year%>" title="Sonraki Ay">»</a></td>
	</tr>
	<tr>
	<td class="blok" align="center"><b>Pt</b></font></td>
	<td class="blok" align="center"><b>Sl</b></td>
	<td class="blok" align="center"><b>Çs</b></td>
	<td class="blok" align="center"><b>Ps</b></td>
	<td class="blok" align="center"><b>Cu</b></td>
	<td class="blok" align="center"><b>Ct</b></td>
	<td class="blok" align="center"><b>Pz</b></td>
	</tr>
	<tr>
	<%
	sayac=weekday("01,"&d_month&","&d_year)
	if sayac=1 then 
		sayac=6
	else
		sayac=sayac-2
	end if	
	
	for w=1 to sayac
	Response.Write("<td> </td>")
	next
	
	for w=1 to d_day
	if w = Day(Now()) then
	a = w
	else
	a = w
	end if
	if sayac mod 7=0 then Response.Write("</tr> <tr>")
	itarih=Cint(d_month)&"/"&a&"/"&Cint(d_year)
	
		%>
	<td align="center"<% IF a = Day(Now()) and Cint(d_month) = month(date) and Cint(d_year) = year(date) Then%> class="blog" <% End IF %>><font class="blog"><%=a%></font></td>

		<%
	sayac=sayac+1
	next
	%>
	</tr>
	</table>
	<div align="center"  style="display:none">
<table border="0" id="table1" cellpadding="0" style="border-collapse: collapse" style="display:none">
		<form method="GET" action="?">
	<tr>
		<td>
			<select name="month" class="alan" size="1" style="width:70px; font-size:12px;font-weight:normal;color:#336666;text-decoration:none">
			<option value="1">Ocak</option>
			<option value="2">Subat</option>
			<option value="3">Mart</option>
			<option value="4">Nisan</option>
			<option value="5">Mayis</option>
			<option value="6">Haziran</option>
			<option value="7">Temmuz</option>
			<option value="8">Agustos</option>
			<option value="9">Eylül</option>
			<option value="10">Ekim</option>
			<option value="11">Kasim</option>
			<option value="12">Aralik</option>
			</select>
		</td>
		<td>
		&nbsp;<input style="width:70px; font-size:12px;font-weight:normal;color:#336666;text-decoration:none" type="submit" value="Aya Git »" align="center" class="dugme" onClick="this.form.submit();this.disabled=true; return true;"></td>
	</tr>
		</form>
</table></div>