function ifade_ekle(veri) {
 document.mesajform.txtYorum.value = document.mesajform.txtYorum.value + veri;
 textsayici();
 document.mesajform.txtYorum.focus();
}

function textsayici() {
	if (document.mesajform.txtYorum.value.length > 1000) {
		document.mesajform.txtYorum.value = document.mesajform.txtYorum.value.substring(0, 1000);
	} else {
		document.mesajform.sayac.value = 1000 - document.mesajform.txtYorum.value.length;
	}
}

function degistir(resim){
document.getElementById('mansetresim').src=resim;

}

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_400x200(href, target)
{
	window.open(href, target, 'width=400, height=200, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_600x400(href, target)
{
	window.open(href, target, 'width=600, height=400, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_600x500(href, target)
{
	window.open(href, target, 'width=600, height=500, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_600x420(href, target)
{
	window.open(href, target, 'width=600, height=420, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_510x700(href, target)
{
	window.open(href, target, 'width=510, height=700, 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;
}
