var _cities = [ {n:'Adana',c:1},{n:'Adıyaman',c:2},{n:'Afyon',c:3},{n:'Ağrı',c:4},{n:'Aksaray',c:68},{n:'Amasya',c:5},{n:'Ankara',c:6},{n:'Antalya',c:7},{n:'Ardahan',c:75},{n:'Artvin',c:8},{n:'Aydın',c:9},{n:'Balikesir',c:10},{n:'Bartın',c:74},{n:'Batman',c:72},{n:'Bayburt',c:69},{n:'Bilecik',c:11},{n:'Bingöl',c:12},{n:'Bitlis',c:13},{n:'Bolu',c:14},{n:'Burdur',c:15},{n:'Bursa',c:16},{n:'Çanakkale',c:17},{n:'Çankırı',c:18},{n:'Çorum',c:19},{n:'Denizli',c:20},{n:'Diyarbakır',c:21},{n:'Düzce',c:81},{n:'Edirne',c:22},{n:'Elazığ',c:23},{n:'Erzincan',c:24},{n:'Erzurum',c:25},{n:'Eskişehir',c:26},{n:'Gaziantep',c:27},{n:'Giresun',c:28},{n:'Gümüşhane',c:29},{n:'Hakkari',c:30},{n:'Hatay',c:31},{n:'Iğdır',c:76},{n:'Isparta',c:32},{n:'İstanbul',c:34},{n:'İzmir',c:35},{n:'Kahramanmaraş',c:46},{n:'Karabük',c:78},{n:'Karaman',c:70},{n:'Kars',c:36},{n:'Kastamonu',c:37},{n:'Kayseri',c:38},{n:'Kırıkkale',c:71},{n:'Kırklareli',c:39},{n:'Kırşehir',c:40},{n:'Kilis',c:79},{n:'Kocaeli',c:41},{n:'Konya',c:42},{n:'Kütahya',c:43},{n:'Malatya',c:44},{n:'Manisa',c:45},{n:'Mardin',c:47},{n:'Mersin',c:33},{n:'Muğla',c:48},{n:'Muş',c:49},{n:'Nevşehir',c:50},{n:'Niğde',c:51},{n:'Ordu',c:52},{n:'Osmaniye',c:80},{n:'Rize',c:53},{n:'Sakarya',c:54},{n:'Samsun',c:55},{n:'Siirt',c:56},{n:'Sinop',c:57},{n:'Sivas',c:58},{n:'Şanlıurfa',c:63},{n:'Şırnak',c:73},{n:'Tekirdağ',c:59},{n:'Tokat',c:60},{n:'Trabzon',c:61},{n:'Tunceli',c:62},{n:'Uşak',c:64},{n:'Van',c:65},{n:'Yalova',c:77},{n:'Yozgat',c:66},{n:'Zonguldak',c:67} ]; function $(e){return document.getElementById(e);}; function $$(e){return e.srcElement || e.target;}; function epos(e){ var left = 0; var top = 0; while(e.offsetParent){ left += e.offsetLeft; top += e.offsetTop; e = e.offsetParent; } return {x:left+e.offsetLeft, y:top+e.offsetTop} }; function AjaxReq(){}; AjaxReq._msxml = [ 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP']; AjaxReq._polls = {}; AjaxReq._timeouts = {}; AjaxReq._tranId = 0; AjaxReq._handlerUrl = ''; AjaxReq._transactions = {}; AjaxReq._createConnection = function(){ try{ return new XMLHttpRequest(); }catch(e){ for(var i=0;i100 && t.http.readyState!=2){ var a = t.action; var p = t.params; var l = t.listener; AjaxReq.stopTransaction(t); AjaxReq.post(a,p,l,true); } else { if(t.timer++>300){ window.clearInterval(AjaxReq._polls[t.id]); delete AjaxReq._polls[t.id]; AjaxReq.handleTransaction(t,true); } } }, 50); }; AjaxReq.stopTransaction = function(t){ if(AjaxReq._transactions[t.id]){ window.clearInterval(t.id); delete AjaxReq._polls[t.id]; delete AjaxReq._transactions[t.id]; } AjaxReq._abortConnection(t.http); t.http = null; t = null; //dbg('Transaction cleared...'); }; AjaxReq.buildPost = function(params){ var result = ''; for(var prop in params){ if(result!='') result += '&'; result += encodeURIComponent(prop)+"="+encodeURIComponent(params[prop]); } return result; }; AjaxReq.handleTransaction = function(t,timeout){ if(!AjaxReq._transactions[t.id]) return; if(t.listener) t.listener['__ajaxRequest'] = false; if(timeout) { AjaxReq.stopTransaction(t); AjaxReq.doCallback(t,'handleAjaxError','timeout'); return; } var status,response; try{ if(t.http.status != undefined && t.http.status != 0) status = t.http.status; else status = 13030; }catch(e){status=13030;} if(status>=200 && status<300){ try{ response = eval('('+t.http.responseText+')');}catch(e){} } //try{ if(t.listener){ if(response){ if(response.error) AjaxReq.doCallback(t,'handleAjaxError',response.error); else AjaxReq.doCallback(t,'handleAjaxResponse',response); } else { AjaxReq.doCallback(t,'handleAjaxError',t.http.responseText); } }/* }catch(e){ AjaxReq.doCallback(t,'handleAjaxError',e.message); }*/ response = null; AjaxReq.stopTransaction(t); }; AjaxReq._abortConnection = function(c){ if(c){ if(c.readyState!=4 && c.readyState!=0) c.abort(); } } function AjaxUpdater(e,u,p){ this.element = document.getElementById(e); AjaxReq.post(u,p,this); }; AjaxUpdater.prototype.beforeAjax = function(a,p){ this.element.innerHTML = "
Yükleniyor...
"; } AjaxUpdater.prototype.handleAjaxError = function(a,p,v){ this.element.innerHTML = v; }