// JavaScript Document
<!-- Copyright 2002 Bontrager Connection, LLC

function getWeekDaySR(){
var calendarDay = 'utorak';
var today = new Date();
thisDay = today.getDay();
var myDays = ["nedelja","ponedeljak","utorak","sreda","cetvrtak","petak","subota"];
return myDays[thisDay];
}

function getWeekDay(){
var calendarDay = 'utorak';
var today = new Date();
thisDay = today.getDay();
var myDays = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];
return myDays[thisDay];
}

function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "jan";
   months[1]  = "feb";
   months[2]  = "mar";
   months[3]  = "apr";
   months[4]  = "maj";
   months[5]  = "jun";
   months[6]  = "jul";
   months[7]  = "avg";
   months[8]  = "sep";
   months[9]  = "okt";
   months[10] = "nov";
   months[11] = "dec";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname +
                    ' ' +
                    monthday +
                    ', ' +
                    year;
   return dateString;
} // function getCalendarDate()

function getCalendarDay()
{
   var months = new Array(13);
   months[0]  = "jan";
   months[1]  = "feb";
   months[2]  = "mar";
   months[3]  = "apr";
   months[4]  = "maj";
   months[5]  = "jun";
   months[6]  = "jul";
   months[7]  = "avg";
   months[8]  = "sep";
   months[9]  = "okt";
   months[10] = "nov";
   months[11] = "dec";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthday ;
   return dateString;
} // function getCalendarDate()

function getCalendarMonthSR()
{
   var months = new Array(13);
   months[0]  = "jan";
   months[1]  = "feb";
   months[2]  = "mar";
   months[3]  = "apr";
   months[4]  = "maj";
   months[5]  = "jun";
   months[6]  = "jul";
   months[7]  = "avg";
   months[8]  = "sep";
   months[9]  = "okt";
   months[10] = "nov";
   months[11] = "dec";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname;
   return dateString;
} // function getCalendarDate()

function getCalendarMonth()
{
   var months = new Array(13);
   months[0]  = "jan";
   months[1]  = "feb";
   months[2]  = "mar";
   months[3]  = "apr";
   months[4]  = "may";
   months[5]  = "jun";
   months[6]  = "jul";
   months[7]  = "aug";
   months[8]  = "sep";
   months[9]  = "oct";
   months[10] = "nov";
   months[11] = "dec";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname;
   return dateString;
} // function getCalendarDate()

function getCalendarYear()
{
	var months = new Array(13);
   months[0]  = "jan";
   months[1]  = "feb";
   months[2]  = "mar";
   months[3]  = "apr";
   months[4]  = "maj";
   months[5]  = "jun";
   months[6]  = "jul";
   months[7]  = "avg";
   months[8]  = "sep";
   months[9]  = "okt";
   months[10] = "nov";
   months[11] = "dec";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = year;
   return dateString;}

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                    ':' +
                    second +
                    " " +
                    ap;
   return timeString;
} // function getClockTime()

//-->