var timerID = null;
var timerRunning = false;
var timerDiv = document.getElementById("timeInCyprus");

function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}

function startclock () {
        stopclock();
        showtime();
}

function showtime () {
        var now = new Date();
        var hours = now.getHours()+2;
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = "" + ((hours >24) ? 0 :hours)
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds
		timerDiv.innerHTML = "Time in North Cyprus : " + timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
}
showtime ();
