//Toggle fonksiyonu divleri açıp kapamaya yarar
function toggle(targetid){ 
  if (document.getElementById){ 
        target = document.getElementById(targetid); 
           if (target.style.display == 'none'){ 
              target.style.display = ''; 
           }else{ 
              target.style.display = 'none'; 
           } 
           return false;
     } 
}

//checkAll fonksiyonu Tümünü seç, hiçbirini seçme işlevini görür
function checkAll(checkname, exby) {
  for (i = 0; i < checkname.length; i++)
  checkname[i].checked = exby.checked? true:false
  checkname.checked = exby.checked? true:false
}


//secimsilkontrol fonksiyonu Tümü seçilmişleri silme işlemi olan formlarda kaçının seçildiğini hesaplar
function secimsilkontrol(checkname)
{
var check=0;
for (i=0; i<checkname.length; i++)
{if (checkname[i].checked==true)
{check=check+1;}
}
if (checkname.checked==true)
{check=check+1;}
if (check==0){alert('Seçim Yapmadan Silemezsiniz !');return false;}
else {return true;}
}


//Bilindik popup açma fonksiyonu...
function openWin(theURL,winName,features) 
{
window.open(theURL,winName,features);
return false; 
}


//Resim Önizleme...
function PrewiewPhoto(PhotoUrl,TargetPicID) 
{
document.getElementById(TargetPicID).src=PhotoUrl;
return false; 
}
