function giris(text)
{
	dg = document.getElementById? document.getElementById('txtAd') : document.all.sgk;
		metin = '';
		for(i=0; i<text.length; i++){
			if(text.charAt(i).search(/^[0123456789qwertyuopilkjhgfdsazxcvbnm_]+$/i) != -1) {
				metin = metin+''+text.charAt(i); 
			}
		}
		dg.value = metin;
}

function textCounter(field,countfield,maxlimit) {
   if (field.value.length>=maxlimit) {
      field.value = field.value.substring(0,maxlimit);
      alert('Imzaniz maksimum 255 karakterden olusabilir.');
      return false;
   } else {
      countfield.value=1+maxlimit-field.value.length;
   }
}

function openPopUp_300x250(href, target)
{
	window.open(href, target, 'width=300, height=250, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_500x350(href, target)
{
	window.open(href, target, 'width=500, height=350, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_400x300(href, target)
{
	window.open(href, target, 'width=400, height=300, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_400x400(href, target)
{
	window.open(href, target, 'width=400, height=400, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_520x390(href, target)
{
	window.open(href, target, 'width=520, height=390, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_520x450(href, target)
{
	window.open(href, target, 'width=520, height=450, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_800x600(href, target)
{
	window.open(href, target, 'width=800, height=600, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_350x625(href, target)
{
	window.open(href, target, 'width=350, height=625, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_700x450(href, target)
{
	window.open(href, target, 'width=700, height=450, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function blinkIt()
{
	if(!document.all)
		return;
	else
	{
		for(i=0; i<document.all.tags('blink').length; i++)
		{
			s=document.all.tags('blink')[i];
			s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
		}
	}
}
function SymError()
{
	return true;
}
var d=new Date();
var monthname=new Array("Ocak","Subat","Mart","Nisan","Mayis","Haziran","Temmuz","Agustos","Eylül","Ekim","Kasim","Aralik");
var TODAY =  d.getDate() + " " + monthname[d.getMonth()] + ", " + d.getFullYear();

 function saatYaz(){	
	var d = new Date();
	var mySaat=("00"+d.getHours()).substr(("00"+d.getHours()).length-2,2);
	var myDakika=("00"+d.getMinutes()).substr(("00"+d.getMinutes()).length-2,2);
	var mySaniye=("00"+d.getSeconds()).substr(("00"+d.getSeconds()).length-2,2);
	document.all.saat.innerHTML=mySaat+":"+myDakika+":"+mySaniye;
	setTimeout("saatYaz()",1000);}
