function ilet(){
	var t;
	if (document.form1.product_id.length>1){
		for (var i=0; i<document.form1.product_id.length;i++) {
			if (document.form1.product_id[i].checked == true)
				t = 'ok';
		}
	}
	else { 
		if (document.form1.product_id.checked == true)
			t = 'ok';
	}
	if (t == 'ok'){
		//document.form1.mode.value='iletisim';
		document.form1.submit();
	}
}

function OrjinalFoto(product_id, secim, width, height, web_url) {
	scrollbars = 'yes';
	if (height > screen.availHeight){
		h = screen.availHeight;
	} else {
		h = height;
	}
	if (width > screen.availWidth) {
		w = screen.availWidth;
	} else {
		w = width;
	}
	if ((h == height) && (w == width)) {
		scrollbars = 'no';
	}
	gl_width = 400; gl_height = 400;
	if ((gl_height > h) && (gl_width > w)) {
		h = gl_height;
		w = gl_width;
	}
	t = screen.availHeight/2 - h/2;
	l = screen.availWidth/2 - w/2;

	//alert(web_url+'FotoDetay/'+secim+'/'+product_id+'/');
	window.open(web_url+'/FotoDetay/'+secim+'/'+product_id+'/', 'urun_foto', 'toolbar=no,width='+w+',height='+h+',directories=no,status=no,scrollbars='+scrollbars+',resizable=no,menubar=no,top='+t+',left='+l);
}

function ResimDegistir(resim_no, adet){
	for (i=1;i<=adet;i++){
		if (resim_no != i)
			document.getElementById('degistir['+i+']').style.display = 'none';
	}
	document.getElementById('degistir['+resim_no+']').style.display = '';
}

function popuptkst(URL,w,h,Top,sbars,resizable)
{
 var  _width  = w;
 var  _height = h;
 var  _top  = 0;
 var  _left = 0;
 var  _scrollbars = sbars;
 day = new Date();
 id = day.getTime();
 window.open(URL, 'taksit_hesapla', 'toolbar=0,scrollbars=1,location=0,left='+_left+',top='+_top+',statusbar=0,menubar=0,resizable='+resizable+',width='+_width+',height='+_height+'');
}
