	function puanDogrula(elmnt){
		var tPuan = new String();
		var tPuanInt = new Number();
		tPuan= elmnt.value;
		tPuanInt = parseInt(Math.round(tPuan));
		if(tPuanInt){
			elmnt.value = tPuanInt ;
		}else{
			elmnt.value = 1;
		}
	}
	function puanDogrula2(elmnt){
		var tPuan = new String();
		var tPuanInt = new Number();
		tPuan= elmnt.value;
		tPuanInt = parseInt(Math.round(tPuan));
		if(tPuanInt){
			elmnt.value = tPuanInt ;
		}else{
			elmnt.value = 0;
		}
	}	
	function fiyatBelirle(){
		var tStr = new String();var tAdet = new Number();var tFiyat;var tArr;
		tAdet = parseInt(document.urunEkle.adet.value);
		tStr = document.urunEkle.urun.value;
		if(tStr!=""){
			tArr = tStr.split('_');
			tFiyat = parseFloat(replaceCharacters(tArr[2],',','.'));
			document.getElementById('lblFiyat').innerHTML = (tFiyat*tAdet).toFixed(2) + ' YTL';
		}else{
			document.getElementById('lblFiyat').innerHTML = '';
		}
		return true;
	}
function temizle(str)
{
	var tStr = str;
	tStr = replaceCharacters(tStr,"<"," ");
	tStr = replaceCharacters(tStr,"'"," ");	
	tStr = replaceCharacters(tStr,'"'," ");			
	return tStr;
}
function replaceCharacters(conversionString,inChar,outChar)
{
  var convertedString = conversionString.split(inChar);
  convertedString = convertedString.join(outChar);
  return convertedString;
}
function submitForm(frm){
	var lbl;
	var lblstr = new String();
	var str = new String();
	var snc = true;
	str = temizle(frm.adsad.value);
	frm.adsad.value = str;
	if(snc){
		if((str.length>50)||(str.length<1)){snc=false;lblstr='Hatali Giris!(Ad Soyad)';frm.adsad.focus();};
	}	
	str = temizle(frm.email.value);
	frm.email.value = str;
	if(snc){
		if((str.length>50)||(str.length<1)){snc=false;lblstr='Hatali Giris!(E-Mail)';frm.email.focus();};
	};
	if(snc){
		if(str.indexOf("@") < 0){snc=false;lblstr='Hatali Giris!(E-Mail)';frm.email.focus();};
	};
	if(snc){
		if(str.lastIndexOf(".") < str.indexOf("@")){snc=false;lblstr='Hatali Giris(E-Mail)';frm.email.focus();};
	};
	str = temizle(frm.firma.value);
	frm.firma.value = str;
	if(snc){
		if((str.length>50)||(str.length<1)){snc=false;lblstr='Hatali Giris!(Firma)';frm.firma.focus();};
	}	
	str = temizle(frm.tel.value);
	frm.tel.value = str;
	if(snc){
		if((str.length>15)||(str.length<1)){snc=false;lblstr='Hatali Giris!(Telefon)';frm.tel.focus();};
	}	
	str = temizle(frm.mesaj.value);
	frm.mesaj.value = str;
	if(snc){
		if((str.length>250)||(str.length<1)){snc=false;lblstr='Hatali Giris!(Mesaj)';frm.mesaj.focus();};
	};
	if(snc){
		frm.submit();
	}else{
		alert(lblstr);					
	};
}
function siraDuzenle(elmnt){}



function selectAll(frm){
	var i = 1;
	while(frm.elements[i])
	{
		frm.elements[i].checked = frm.mail.checked;
		i++;
	}
}

function duyuruGoster(id){
	window.open('../../duyuruGoster.asp?duyuruID='+id,'','toolbars=no,height=300,width=400,scrollbars=yes,status=yes,left='+((screen.width/2)-200)+',top='+((screen.height/2)-150));
}
function openWindow(pURL)
{
	myWindow = window.open(pURL, "myLittleCalendar", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=143,height=172');
}
function duyuruSil(duyuruID){
	var snc = new Boolean();
	snc = confirm("Bu haberi silmek istediinizden emin misiniz?");
	if (snc){
		window.location = 'duyuruSil.asp?duyuruID='+duyuruID;
	}
}
function geriDon(){
	window.setTimeout("window.location='default.asp'",3000);
}
function ackapa(bn){
	if(document.getElementById(bn).style.display=='none'){
		document.getElementById(bn).style.display='block';
	}else{
		document.getElementById(bn).style.display='none';
	}
}
function change(id){
	window.open('change.asp?id='+id,'','toolbars=no,height=10,width=10,left=0,top=0');
}		
function resimDegistir(adres){
	window.open(adres,'resimDegistir','toolbars=no,height=350,width=400,left=200,top=200');
}
function resimSil(adres){
	window.open(adres,'resimSil','toolbars=no,height=10,width=10,left=0,top=0');
}
function resimYukle(adres){
	window.open(adres,'resimYukle','toolbars=no,height=100,width=400,left=200,top=200');
}
function guncelle(adres){
	window.open(adres,'guncelle','resizable=no,scrollbars=yes,toolbars=no,height=640,width=720,left=0,top=0');
}

// *********************************************************
// ***********   AÇILIR KAPANIR MENU JAVA SCRIPT ***********
// *********************************************************
var gorunurluk = new Array();

var tempInt= new Number();
tempInt=null;
var tempInt2= new Number();
tempInt2=null;

var currentUID = new Number();
currentUID=null;

var currentUL = new String();
currentUL=null;

function uniqIDInt(elmnt){
	var uID=new String();
	uID = elmnt;
	var uIDInt=parseInt(uID.slice(1,uID.length));
	return uIDInt;
}
	function gizle(elmnt){	
		//alert(elmnt);
		if(tempInt2!=null){
			window.clearTimeout(tempInt2);
		}			
			tempInt = window.setTimeout("gizle2('"+elmnt+"')",400);	
			gorunurluk[uniqIDInt(elmnt)]=0;
			currentUID=uniqIDInt(elmnt);
			currentUL=elmnt;	
	}

	function gizle2(elmnt){
		if(gorunurluk[uniqIDInt(elmnt)]==0){
			document.getElementById(elmnt).style.display='none';	
		}
				
	}	

	function goster(elmnt){	
		gorunurluk[uniqIDInt(elmnt)]=1;
		if(currentUID!=null){
			if(currentUL.slice(0,2)!=elmnt.slice(0,2)){
				document.getElementById(currentUL).style.display='none';	
			}

		}		
		if(tempInt!=null){
			window.clearTimeout(tempInt);
		}
		tempInt2=window.setTimeout("goster2('"+elmnt+"')",400);	
	}
	function goster2(elmnt){
		if(gorunurluk[uniqIDInt(elmnt)]==1){
			document.getElementById(elmnt).style.display='block';				
		}
	}	

// *************************************************

function submitMailList(kadi,mail){
	var lbl;
	var lblstr = new String();
	var str = new String();
	var snc = true;
	str = temizle(kadi);	
	if(snc){
		if((str.length>50)||(str.length<1)){snc=false;lblstr='Hatali Giris!(Ad Soyad)';};
	}		
	str = temizle(mail);
	if(snc){
		if((str.length>50)||(str.length<1)){snc=false;lblstr='Hatali Giris!(E-Mail)';};
	};
	if(snc){
		if(str.indexOf("@") < 0){snc=false;lblstr='Hatali Giris!(E-Mail)';};
	};
	if(snc){
		if(str.lastIndexOf(".") < str.indexOf("@")){snc=false;lblstr='Hatali Giris(E-Mail)';};
	};	
	if(snc){
		window.open('../addMail/default.asp?adsad='+temizle(kadi)+'&mail='+temizle(mail),"addMail",'toolbars=no,height=110,width=400,scrollbars=yes,status=yes,left='+((screen.width/2)-200)+',top='+((screen.height/2)-150));
	}else{
		alert(lblstr);					
	};
}