var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds

function writeclock()
{
	i_clock++
	if (document.all || document.getElementById || document.layers) 
	{
		clockid[i_clock]="clock"+i_clock
		document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
	}
}

function clockon() 
{
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	thistime = hours+":"+minutes+":"+seconds
	if (document.all) 
	{
		for (i=0;i<=clockid.length-1;i++) 
		{
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	if (document.getElementById) 
	{
		for (i=0;i<=clockid.length-1;i++) 
		{
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}

window.onload=clockon



function writeDate()
{
	var mydate=new Date()
	var year=mydate.getYear()
	if (year < 1000)
	year+=1900
	var day=mydate.getDay()
	var month=mydate.getMonth()
	var daym=mydate.getDate()
	if (daym<10)
	daym="0"+daym
	var dayarray=new Array("","","","","","","")
	var montharray=new Array("/ 01 /","/ 02 /","/ 03 / ","/ 04 / ","/ 05 /","/ 06 /","/ 07 /","/ 08 /","/ 09 / ","/ 10 /","/ 11 /","/ 12 /")
	tarih = daym + " " + montharray[month] + " " + year + " " + dayarray[day];
	document.write("<span id='myDate' style='position:relative'>"+tarih +"</span> - ")
}
function writeShortDate()
{
	var mydate=new Date()
	var year=mydate.getYear()
	if (year < 1000)
	year+=1900
	var day=mydate.getDay()
	var month=mydate.getMonth()+1;
	var daym=mydate.getDate()
	
	if (daym<10) daym="0"+daym;
	if (month<10) month="0"+month;
	
	
	tarih = daym + "." + month + "." + year;
	document.write("<span id='myDate' style='position:relative'>"+tarih +"</span>&nbsp; ")
}


		 
