// JavaScript Document
function indeks(form,field,baslik,tip){
	MM_openBrWindow('indeks.php?form=' + form + '&f=' + field + '&type=' + tip+ '&baslik=' + baslik,'indeks','width=450,height=540,resizable=yes,scrollbars=yes,status=yes');
}

function dizin(form,field,header,datetime,multi,indeks,id,tip){
	MM_openBrWindow('dizinler.php?form=' + form + '&field=' + field+ "&header=" + header+ "&datetime=" + datetime+ "&multi=" + multi+ "&indeks=" + indeks+ "&id=" + id+ "&type_id=" + tip,'indeks','width=450,height=540,resizable=yes,scrollbars=yes,status=yes');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//Yukleniyor sayfasi icin
function dc(fl)
{
  var x,y;
  if (self.innerHeight)
  {// all except Explorer
    x = self.innerWidth;
    y = self.innerHeight;
  }
  else 
  if (document.documentElement && document.documentElement.clientHeight)
  {// Explorer 6 Strict Mode
   x = document.documentElement.clientWidth;
   y = document.documentElement.clientHeight;
  }
  else
  if (document.body)
  {// other Explorers
   x = document.body.clientWidth;
   y = document.body.clientHeight;
  }

  var el=document.getElementById('DIV_DESKTOP');
	if(null!=el)
	{
		el.style.visibility = (fl==1)?'visible':'hidden';
		el.style.display = (fl==1)?'block':'none';
		el.style.width = x + "px";
		el.style.height = y + "px";
		el.style.zIndex = 1;
	}

	var el=document.getElementById('loader');
	if(null!=el)
	{
		var top = (y/2) - 50;
		var left = (x/2) - 200;
		if( left<=0 ) left = 10;

		el.style.visibility = (fl==1)?'visible':'hidden';
		el.style.display = (fl==1)?'block':'none';
		el.style.left = left + "px"
		el.style.top = top + "px";
		el.style.zIndex = 2;
	}
}

function od(u,w,h,x,y)
{
  if(!w)w=320;if(!h)h=200;if(!x)x=(screen.width-w)/2;if(!y)y=(screen.height-h)/2;
  var w=window.open(u,"_blank","resizable=yes,scrollbars=yes,top="+x.toString()+",left="+y.toString()+",width="+w.toString()+",height="+h.toString());
  w.focus();
}

function ow(u,w,h,x,y)
{
        od(u,w,h,x,y);return false;
}
// yukleniyor sayfasi bitti

function checkall(say){
var i, status, metin;

if(document.getElementById('r_'+say+'').checked==false){
	status=true;
	metin="Tümünü Kaldır";	
}
else{
	status=false;
	metin="Tümünü Seç";		
}
	
	for(i=1;i<=say;i++){
		eval("document.getElementById('r_"+i+"').checked="+status);
	}
	document.slideform.checkbuton.value=metin;
}

