<!-- Begin

var day_of_week = new Array('Ïîíäîâð','Òí','Ûò','Þí','Ê&ccedil;','Ýð','Øì','Âð');
var month_of_year = new Array('Ê&#259;ðëà÷','Íàð&#259;ñ','Ïóø','Àêà','&Ccedil;ó','&Ccedil;&#277;ðòìå','Óò&#259;','&Ccedil;óðëà','Àâ&#259;í','Þïà','×&yuml;ê','Ðàøòàâ');


var Calendar = new Date();

var year = Calendar.getYear();
year = year % 100;
year = ((year < 50) ? (2000 + year) : (1900 + year));
var month = Calendar.getMonth();  
var today = Calendar.getDate();    
var weekday = Calendar.getDay();    

var ttoday = new Date();
var d = ttoday.getDay();

var DAYS_OF_WEEK = 7;    
var DAYS_OF_MONTH = 31;   
var cal;   

Calendar.setDate(1);   
Calendar.setMonth(month); 



var TR_start = '<TR>';
var TR_end = '</TR>';
var highlight_start = '<TD WIDTH="30"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=#E8E7D2 BORDERCOLOR=black><TR><TD WIDTH=18><B><CENTER><font size=3 color=black>';
var highlight_end   = '</font></CENTER></B></TD></TR></TABLE>';
var highlight_start_1 = '<TD WIDTH="30"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=#E8E7D2 BORDERCOLOR=DCDCDC><TR><TD WIDTH=18><CENTER><font size=3 color=black>';
var highlight_end_1   = '</font></CENTER></TD></TR></TABLE>';
var TD_start = '<TD WIDTH="26"><CENTER>';
var TD_end = '</CENTER></TD>';



cal =  '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR=BBBBBB><TR><TD>';
cal += '<TABLE BORDER=0 BORDERCOLOR=DCDCDC CELLSPACING=0 CELLPADDING=1>' + TR_start;
cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#A0A63A"><CENTER><font color=white size=4 face=Times new roman><B>';
cal += month_of_year[month]  + '   ' + year + '</B></font>' + TD_end + TR_end;
cal += TR_start;



for(index=1; index < DAYS_OF_WEEK+1; index++)
{
if(d==0)
{
d="7";
}
if(d == index)
cal += TD_start + '<B>' + day_of_week[index] + '</B>' + TD_end;


else
cal += TD_start + day_of_week[index] + TD_end;
}

cal += TD_end + TR_end;
cal += TR_start;

fgf = Calendar.getDay(); 
if(fgf == 0)
{
fgf = "7";
}

for(index=1; index < fgf; index++)
{

cal += TD_start + '  ' + TD_end;
}


for(index=0; index < DAYS_OF_MONTH; index++)
{
if( Calendar.getDate() > index )
{

week_day =Calendar.getDay();

  if(week_day == 1)
  cal += TR_start;

  if(week_day != DAYS_OF_WEEK)
  {


  var day  = Calendar.getDate();


  if( today==Calendar.getDate() )
  cal += highlight_start + day + highlight_end + TD_end;


  else
  cal += highlight_start_1 + day + highlight_end_1;
  }


  if(week_day == DAYS_OF_WEEK)
  cal += TR_end;
  }


  Calendar.setDate(Calendar.getDate()+1);

}


cal += '</TD></TR></TABLE></TABLE>';


document.write(cal);

//  End -->
