function uyaz(baslik,mesaj,oto,renk){
if(renk==1 || renk==0) renk="FF0000";
if(renk==2) renk="009900";
document.write('<div style=\"position:relative; height:auto\">');
document.write('');
document.write('<div id=\"uyari\" style=\"background-image:url(fon5.jpg); top:0\"> <center> <font class=\"yazi\" color=\"#FFFFFF\"><b>'+baslik+'<br /><br />');
document.write(mesaj);
document.write('<br /><br />');
document.write('<a style=\"cursor:pointer\" onclick=\"javascript:ort()\"><div id=\"sayac1\">[X] CLOSE</div></a>');
document.write('</b></font></center></div></div>');
//if (oto!="") {sayaq(oto);}
}

function sayaq(t){
  o = document.getElementById("sayac1");
  if(t == 1){clearTimeout(z); ort();}
	else{t--;o.innerHTML= "["+t+"] CLOSE";c=t;z=setTimeout("sayaq(c)",1000);}
}


function ort(){
document.getElementById("uyari").style.height=0;
}