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_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_400x350(href, target)
{
	window.open(href, target, 'width=400, height=350, 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_500x400(href, target)
{
	window.open(href, target, 'width=500, height=400, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_450x550(href, target)
{
	window.open(href, target, 'width=450, height=550, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_450x600(href, target)
{
	window.open(href, target, 'width=450, height=600, 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_350x450(href, target)
{
	window.open(href, target, 'width=350, height=450, 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_900x700(href, target)
{
	window.open(href, target, 'width=900, height=700, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_1024x768(href, target)
{
	window.open(href, target, 'width=1024, height=768, 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;
}