
function resimGoster(strURL) {
	var pencere = window.open("resimGoster.php?id="+strURL, "Resim", "scrollbars=yes,height=400,width=450,status=no,toolbar=no,menubar=no,location=no,resizable=yes");
}

function ayrintiGoster(param_adi,intId) {
	showModalDialog("Frame.php?"+ param_adi+"="+ intId,window,"dialogHeight:450px;dialogWidth:650px;status:no;")
}
function ayrintiGoster1(param_adi,intId) {
	showModalDialog("Frame.php?"+ param_adi+"="+ intId,window,"dialogHeight:650px;dialogWidth:650px;status:no;")
}


function ayrintiGoster2(param_adi,intId,ozellik) {
	showModalDialog("Frame.php?"+ param_adi+"="+ intId,window,ozellik)
}


function yeniAyrinti() {
	showModalDialog('../images/products/<?=$rs[image];?>',window,'resizable=yes,width=250,height=200,top=250,left=250')
}

function yeniAyrinti1(sayfa) {
	showModalDialog("yeniFrame.php?ISIM="+sayfa,window,"dialogHeight:650px;dialogWidth:650px;status:no;")
}

function addField(area,field,limit) {
if(!document.getElementById) return;
var field_area = document.getElementById(area);
var all_inputs = field_area.getElementsByTagName("input");

var last_item = all_inputs.length - 1;
var last = all_inputs[last_item].id;
var count = Number(last.split("_")[1]) + 1;

if(count > limit && limit > 0) return;

field_area.innerHTML += "<li><input type='button' value=' + ' onclick=\"addField('enemies_area','dosya_',0);\" /><input name='"+(field+count)+"' id='"+(field+count)+"' type='file' /></li>";
var element= document.getElementById("sayac").value=count;
}

function show(id) 
{
var diq = document.getElementById(id).style;
diq.display=(diq.display=="none") ? "block" : "none";
}

function onay(data)
{
	if(data)
		{
	 	var cfm = confirm(data);
		}
	else
		{
		var cfm = confirm("Silme işlemi gerçekleşecek\nDevam etmek istiyor musunuz ?");
		}
	 if(cfm == true){
	 	return true;
	 }
	 return false;
}

