function show(img, w, h) {
  var ew = w, eh = h, dw = 0, dh = 0;
  if (ew > 800) { ew = 800; dh = 16; }
  if (eh > 600) { eh = 600; dw = 16; }
  var ww = window.open('','Image','width='+(ew + dw)+',height='+(eh + dh)+',scrollbars='+(w > 800 || h > 600 ? 'on' : 'no'));
  ww.document.open();
  ww.document.writeln("<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0><img src=\""+img+"\" width="+w+" height="+h+" onClick='window.close()'>");
  ww.document.close();
}
function hide(id) {
  var el = document.getElementById(id);
  if (el) el.style.display = 'none';
}
function toggle(id) {
  var el = document.getElementById(id);
  if (el) {
    el.style.display = el.style.display == 'none' ? '' : 'none';
    if (el.style.display == '') el.focus();
  }
}
function popup(s) {
  window.open(s, '', 'width=680,height=670,scrollbars=1');
}


function startclock(ticker)
{
var thetime=new Date();

var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
//if(nmins.length==1) nmins="0"+nmins;
var nsecn=thetime.getSeconds();
//if(nsecn.length==1) nsecn="0"+nsecn;
var nday=thetime.getDay();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();
var AorP=" ";


if (nhours<10)
 nhours="0"+nhours;
if (nsecn<10)
 nsecn="0"+nsecn;

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

var ndaynumber = nday;
 if (nday==0)
  nday="Pazar";
if (nday==1)
  nday="Pazartesi,";
if (nday==2)
  nday="Sal&#305;";
if (nday==3)
  nday="&#199;ar&#351;amba";
if (nday==4)
  nday="Per&#351;embe";
if (nday==5)
  nday="Cuma";
if (nday==6)
  nday="Cumartesi";

nmonth+=1;

if (nyear<=99)
  nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
 nyear+=1900;


document.getElementById("saat").innerHTML = nhours+ticker+nmins+"<br>"+nday+"<br>"+ntoday+"/"+nmonth+"/"+nyear;

if(ticker==':'){ ticker = ' '; }
else{ ticker = ':'; }
//document.all.clockspot.value="Mon Jan 30 , 07:04:35  2006";
setTimeout('startclock("'+ticker+'")',1000);

}



/* ------------------ */
/*
function return_true() { return true; }
function return_false() { return false; }
function handle_click_ns(e) { return (e.which < 2 || e.which > 3); }
function handle_select_ns(e) { return false; }

if (document.all) { 
  document.oncontextmenu = return_false;
  document.onselectstart = return_false;
}
else if (document.layers || document.getElementById) {
  if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = handle_click_ns;
  } else {
    document.onmouseup = handle_click_ns;
    document.oncontextmenu = return_false;
  }
  if (window.sidebar){
    document.onmousedown = handle_select_ns;
    document.onclick = return_true();
  }
}
*/