//BASLA//
//<meta http-equiv=Content-Type content="text/html; charset=iso-8859-9">
function sayfaBas() { if(parseInt(navigator.appVersion) >= 4) window.print(); }
function popAc(sayfaadi, popunadi, genislik, yukseklik, cubuk, buyut) {
var wins=(screen.width - genislik) / 2; var wint = (screen.height - yukseklik) / 2;
poptipi='height='+yukseklik+',width='+genislik+',top='+wint+',left='+wins+',scrollbars='+cubuk+',resizable='+buyut;
win = window.open(sayfaadi, popunadi, poptipi); if(parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function git(sayfa) { window.top.location.href=sayfa; }
function sbm(msgStr) { status=msgStr; document.rV=true; }
//style="filter:alpha(opacity=20);-moz-opacity:0.2" onMouseover="visible(this,0)" onMouseout="visible(this,1)"
function visible(cur,which){ 
		strength=(which==0)? 70 : 0.6; 
		if(cur.filters) { cur.filters.alpha.opacity=strength*100 } 
}

function degis(divid) {
		var nesne=document.getElementById(divid);
		if(nesne.style.visibility=="hidden") { nesne.style.visibility = "visible"; 
											   nesne.style.display = "inline"; }
		else { nesne.style.visibility = "hidden";  nesne.style.display = "none"; }
}

function goster(divid) { var nesne=document.getElementById(divid); 
		nesne.style.visibility = "visible"; 
		nesne.style.display = "inline"; 
		return true;
}

function sakla(divid) { var nesne=document.getElementById(divid); 
		nesne.style.visibility = "hidden"; 
		nesne.style.display = "none"; 
		return true;
}

function deger_degis(inputid,ilkd,ikincid) {
		var nesne=document.getElementById(inputid);
		if(nesne.value==ilkd) { nesne.value = ikincid; }
		else { nesne.value = ilkd; }
}

function onay(str){ return confirm(str); }

function boyut_goster(gel_obj) { 
	var en = gel_obj.width; var boy = gel_obj.height; 
    gel_obj.alt = 'En: ' + en + ' px\nBoy: ' + boy + ' px'; return true;   
}

function boyutla(resim,en,boy) { var orj_en = resim.width; var orj_boy = resim.height; 
if(orj_en>en) { var oran = orj_en/orj_boy; var boy = Math.round(en/oran); resim.width = en; resim.height = boy;
resim.alt = 'Orjinal En: ' + orj_en + ' px\nOrjinal Boy: ' + orj_boy + ' px\n\nGörünen En: ' + en + ' px\nGörünen Boy: ' + boy + ' px';
} else { resim.alt = 'En: ' + orj_en + ' px\nBoy: ' + orj_boy + ' px'; 
if(orj_boy>boy) { var oran = orj_en/orj_boy; var en = Math.round(boy/oran); resim.width = en; resim.height = boy;
resim.alt = 'Orjinal En: ' + orj_en + ' px\nOrjinal Boy: ' + orj_boy + ' px\n\nGörünen En: ' + en + ' px\nGörünen Boy: ' + boy + ' px';
} else { resim.alt = 'En: ' + orj_en + ' px\nBoy: ' + orj_boy + ' px'; }  }
}
function renk_sectir(gelen,gform) {  
var obj = gelen.name;  var formobj = gform.name; 
var table_str = "color_table.php?form_name="+formobj+"&col_name="+obj ; 
 window.open( table_str , "renk_p", "width=230px, height=163px,left=200px,top=200px, resizable: no, help: no, status: no, scrollbars: no,");
 return true;
}

function numberFormat(deger){ var strDeger = deger + ""; var retval="";
      if(strDeger.length > 3){
		retval = numberFormat(strDeger.substr(0,strDeger.length-3))+ "." + strDeger.substr(strDeger.length-3,3);
        } else{ retval = strDeger; }
    return retval;
}

//BITIR//