var message="Function Disabled!";

function clickIE4(){
if (event.button==2){
//alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
//alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false");

function siraDuzenle(elmnt){/*
	var str_isim = new String();
	var str_value = new String();
	var int_isim = new Number();
	var int_value = new Number();
	var i = new Number();
	var n = new Number();
	var element_name = new String();
	var isim = new String();
		
	str_value = elmnt.value;
	str_isim = elmnt.name;
	isim = str_isim.substring(0,str_isim.indexOf("_"));	
	
	int_isim = parseInt(str_isim.substring(str_isim.indexOf("_")+1,str_isim.length));
	int_value = parseInt(str_value);
	
	i=0;
	while(elmnt.form.elements(i)){		
		if(elmnt.form.elements(i).name == str_isim){
			n = i;
			while(elmnt.form.elements(n)){
				element_name = elmnt.form.elements(n).name;
				element_name = element_name.substring(0,element_name.indexOf("_"));
				//alert(element_name);
				if(element_name == isim ){				
					elmnt.form.elements(n).value = int_value;
					int_value = int_value + 1;
				}
				n = n + 1;
			}
		}		
		i++;		
	}*/
}
function gizlegoster(a)
	{
		//alert(document.getElementById(Y));
		
		diva = document.getElementById('Y'+a);
		//alert(diva.style.display);
		for (i=1;i<10;i++)
		{
			if(document.getElementById('Y'+i)){
				document.getElementById('X'+i).style.display='block';
				divb = document.getElementById('Y'+i);
				divb.style.display="none";
			}
		}
		
		if(diva.style.display=="none"){
			document.getElementById('X'+a).style.display='none';
			diva.style.display="block";
		}else{
			diva.style.display="none";
		}
	}
function selectAll(frm)
{
	var i = 1;
	
	while(frm.elements[i])
	{
		frm.elements[i].checked = frm.mail.checked;
		i++;
	}
}

function puanDogrula(elmnt){
	var tPuan = new String();
	var tPuanInt = new Number();
	tPuan= elmnt.value;
	tPuanInt = parseInt(Math.round(tPuan));
	if(tPuanInt){
		elmnt.value = tPuanInt ;
		siraDuzenle(elmnt)
	}else{
		elmnt.value = "";
	}
}
function duyuruGoster(id){
	window.open('../../duyuruGoster.asp?duyuruID='+id,'','toolbars=no,height=325,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 istediginizden 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 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=660,width=630,left=0,top=0');
}