function todaysDate()
{
	var rightNow = new Date();
	var theDay = rightNow.getDay();
	var theDate = rightNow.getDate();
	var theMonth = rightNow.getMonth();
	var theYear = rightNow.getYear();

	/* Converting Days */
	if(theDay == "0")
		theDay = "Pazar";

	if(theDay == "1")
		theDay = "Pazartesi";

	if(theDay == "2")
		theDay = "Sali";

	if(theDay == "3")
		theDay = "Carsamba";

	if(theDay == "4")
		theDay = "Persembe";

	if(theDay == "5")
		theDay = "Cuma";

	if(theDay == "6")
		theDay = "Cumartesi";

	/* Converting Months */
	if(theMonth == "0")
		theMonth = "Ocak";

	if(theMonth == "1")
		theMonth = "Subat";

	if(theMonth == "2")
		theMonth = "Mart";

	if(theMonth == "3")
		theMonth = "Nisan";

	if(theMonth == "4")
		theMonth = "Mayis";

	if(theMonth == "5")
		theMonth = "Haziran";

	if(theMonth == "6")
		theMonth = "Temmuz";

	if(theMonth == "7")
		theMonth = "Agustoz";

	if(theMonth == "8")
		theMonth = "Eylul";

	if(theMonth == "9")
		theMonth = "Ekim";

	if(theMonth == "10")
		theMonth = "Kasim";

	if(theMonth == "11")
		theMonth = "Aralik";

	var justDate = "<i>"+theDay+", "+theDate+" "+theMonth+", "+theYear+"</i>";
	document.write(justDate);
}

function clockAndDate()
{
	var rightNow = new Date();
	var theHours = rightNow.getHours();
	var theMinutes = rightNow.getMinutes();
	var theSeconds = rightNow.getSeconds();
	var theDay = rightNow.getDay();
	var theDate = rightNow.getDate();
	var theMonth = rightNow.getMonth();
	var theYear = rightNow.getYear();

	if(theHours < 10)
		theHours = "0"+theHours;

	if(theMinutes < 10)
		theMinutes = "0"+theMinutes;

	if(theSeconds < 10)
		theSeconds = "0"+theSeconds;

	/* Converting Days */
	if(theDay == "0")
		theDay = "Sunday";

	if(theDay == "1")
		theDay = "Monday";

	if(theDay == "2")
		theDay = "Tuesday";

	if(theDay == "3")
		theDay = "Wednesday";

	if(theDay == "4")
		theDay = "Thursday";

	if(theDay == "5")
		theDay = "Friday";

	if(theDay == "6")
		theDay = "Saturday";

	/* Converting Months */
	if(theMonth == "0")
		theMonth = "January";

	if(theMonth == "1")
		theMonth = "February";

	if(theMonth == "2")
		theMonth = "March";

	if(theMonth == "3")
		theMonth = "April";


	if(theMonth == "4")
		theMonth = "May";

	if(theMonth == "5")
		theMonth = "June";

	if(theMonth == "6")
		theMonth = "July";

	if(theMonth == "7")
		theMonth = "August";

	if(theMonth == "8")
		theMonth = "September";

	if(theMonth == "9")
		theMonth = "October";

	if(theMonth == "10")
		theMonth = "November";

	if(theMonth == "11")
		theMonth = "December";

	window.status = theHours+":"+theMinutes+":"+theSeconds+" - "+theDay+", "+theDate+" "+theMonth+", "+theYear;
}

setInterval("clockAndDate()", 1000);

function changeScreenSize(w,h,left,top)
{
	window.resizeTo(w,h)
	window.moveTo(left, top)
}

function addToFavorites()
{
	var urlAddress = "http://www.cemkaraca.com";
	var pageName = "CemKaraca.com";

	if(window.external)
	{
		window.external.AddFavorite(urlAddress,pageName)
	}
	else
	{ 
		alert("Sorry! Your browser doesn't support this function.");
	}
}

function emptyEBox(obj)
{
	var val = obj.value;
	if(val == "your email")
		obj.value='';
}

