var popUpWin=0;
function HY(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
function xp(elm){
return document.getElementById(elm);
}
function MW(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
var isIE;
function checkBrowser() {
if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4)
{
isIE = true;
return true;
}
else
isIE = true;
return true;
}
function frame_goster(link,sutuns,satirs){
if (checkBrowser()) {
var prokilit = window.document.forms['SayfaDetay'].elements['pkilit']
prokilit.value = 1;
var satirs = parseFloat(satirs) + 1;
var tablo= document.getElementById("sayfalar");
var esatir = window.document.forms['SayfaDetay'].elements['eskisatir'];
if(parseFloat(esatir.value) > 0) {
tablo.deleteRow(esatir.value)
}
var tablo= document.getElementById("sayfalar");
var x=tablo.insertRow(satirs)
var y=x.insertCell(0)
y.colSpan = sutuns
x.bgColor = '#FFFFFF';
y.align = 'left';
y.valign = 'middle';
y.innerHTML='
';
esatir.value = satirs
}
else {
location.href=link;
}
}
function frame_kapat(satirs){
var prokilit = window.document.forms['SayfaDetay'].elements['pkilit']
if (prokilit.value == 1) {
alert('Lütfen editörün yüklenmesini bekleyiniz');
return false;
}
if(parseFloat(satirs) > 0) {
var tablo= document.getElementById("sayfalar");
var esatir = window.document.forms['SayfaDetay'].elements['eskisatir'];
tablo.deleteRow(satirs);
esatir.value = '';
}
}
function swapImg() {
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n=0;i--){
SelectBox.remove(i);
}
}
function getitemdata(list) {
if (list.selectedIndex < 0) {
return 0;
} else {
return list.options(list.selectedIndex).value;
}
}
function getitemtext(list) {
if (list.selectedIndex < 0) {
return null;
} else {
return list.options(list.selectedIndex).text;
}
}
function array_filter_fill2list(data, list, parentlist) {
// data is an 2D array containing 3 columns
// id | name | parent_id (used for filtering)
var rec_cnt, i, filter_key = 0;
if (parentlist.selectedIndex >= 0) {
filter_key = parentlist.options(parentlist.selectedIndex).value;
}
rec_cnt = data.length;
ClearSelectBox(list);
AddOption(list,jscript_list_entry1,0);
if (filter_key == 0) {return; }
for (i = 0; i < rec_cnt; i++) {
if (filter_key == 0 ||
filter_key == data[i][2]) {
AddOption(list,data[i][1],data[i][0]);
}
}
list.selectedIndex = 0;
}
// filtre fonksiyonlarının sonu :))