function jah(url, hedef, postable){
new Effect.Parallel([new Effect.Opacity(hedef, { from: 1.0, to: 0.4, duration: 0.1 })], {afterFinish:function() {

		new Ajax.Request(url,{
                        method : 'post',
                        postBody : postable,
			onFailure:function() {
				alert('Bir hata oluştu..')
			},

			onSuccess:function(t) {
				Element.update(hedef,t.responseText);
				new Effect.Parallel([new Effect.Opacity(hedef, { from: 0.4, to: 1.0, duration: 0.1 })]);
			}

		});

	}});
}

function hitEkle(id) {
new Ajax.Request('hitekle.php?id='+id+'',{
			onFailure:function() {
				alert('Bir hata oluştu..')
			}
		});
//jah('hitekle.php?id=' + id + '','hitekle');
}



function ara()
{
var inputString = document.getElementById('inputString').value
var inputString = inputString.replace("&", "%26")

jah('ajax.php?action=parcalar&aranan=' + inputString + '','parcalistesi');
}

function iframe_block()
{
  if (top.location != location) {
    top.location.href = document.location.href;
  }
}