	window.onload=function(){
		Nifty("div#kafa","small transparent");
		Nifty("div#icerikler_menu","normal transparent");
		Nifty("div#content_icerik","normal transparent");
		Nifty("div#footer","small transparent");
		Nifty("div#search","normal transparent");
		Nifty("div#topserit","small transparent");
		Nifty("div#samehleft","small transparent");
		Nifty("div#samehright","small transparent");

		Nifty("div#box1","small");
		Nifty("div#box2","small");
		Nifty("div#box3","small");
		Nifty("div#box4","small");
		Nifty("div#postakodu","small");
	}

	function pencere1(id){
		if(id==0){
			Element.hide('postakodu1'); Element.hide('box22');  Element.hide('box33');  Element.hide('box44');
		} else {
			new Ajax.Updater('box22', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); Element.hide('box22');  Element.hide('box33');  Element.hide('box44'); Element.show('yukle'); $('sehirler').disable(); }, onComplete: function() { Element.hide('yukle'); Element.show('box22'); $('sehirler').enable(); 
				new Ajax.Updater('postakodu1', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); Element.show('yukle'); }, onComplete: function() { Element.hide('yukle'); Element.show('postakodu1'); }, method: 'post', postBody:'id='+ id +'&pk=postakodu'});
			}, method: 'post', postBody:'id='+ id +'&pk=il'});
		}
	}

	function pencere2(id){
		if(id==0){
			Element.hide('postakodu1'); Element.hide('box33');  Element.hide('box44');
		} else {
			new Ajax.Updater('box33', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); Element.hide('box33'); Element.hide('box44'); Element.show('yukle'); $('ilceler').disable(); }, onComplete: function() {Element.hide('yukle'); Element.show('box33'); $('ilceler').enable(); 
				new Ajax.Updater('postakodu1', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); Element.show('yukle'); }, onComplete: function() { Element.hide('yukle'); Element.show('postakodu1'); }, method: 'post', postBody:'id='+ id +'&pk=postakodu'});
			}, method: 'post', postBody:'id='+ id +'&pk=ilce'});
		}
	}

	function pencere3(id){
		if(id==0){
			Element.hide('postakodu1'); Element.hide('box44');
		} else {
			new Ajax.Updater('box44', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); Element.hide('box44'); Element.show('yukle'); $('semtler').disable(); }, onComplete: function() { Element.hide('yukle'); Element.show('box44'); $('semtler').enable();
				new Ajax.Updater('postakodu1', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); Element.show('yukle'); }, onComplete: function() { Element.hide('yukle'); Element.show('postakodu1'); }, method: 'post', postBody:'id='+ id +'&pk=postakodu'});
			}, method: 'post', postBody:'id='+ id +'&pk=semt'});
			
		}
	}

	function pencere4(id){
		if(id!=0){
			new Ajax.Updater('postakodu1', 'postakodlari.php', {onLoading: function() { Element.hide('postakodu1'); $('mahalleler').disable(); Element.show('yukle'); }, onComplete: function() { Element.hide('yukle'); $('mahalleler').enable(); Element.show('postakodu1'); }, method: 'post', postBody:'id='+ id +'&pk=postakodu'});
		} else {
			Element.hide('postakodu1');
		}
	}

function ara(text,site,dizin) {
	if (document.PForm.kod.value == null || document.PForm.kod.value == ""){
		alert(text)
		document.PForm.kod.focus();
		return false;
	}

	location.href = site + dizin + '/' + document.PForm.kod.value + '-posta-kodlari.html';
	return false;
}
