var handleSuccessRakamlarlaGecenHafta = function(o) { if (o.responseText !== undefined) { document.getElementById('rakamlarlaGecenHafta').innerHTML = o.responseText; } } var handleFailureRakamlarlaGecenHafta = function(o) { if (o.responseText !== undefined) { document.getElementById('rakamlarlaGecenHafta').innerHTML = ""; } } function getRakamlarlaGecenHafta() { var request = YAHOO.util.Connect.asyncRequest('POST', "rakamlarla-gecen-hafta", { timeout :25000, success :handleSuccessRakamlarlaGecenHafta, failure :handleFailureRakamlarlaGecenHafta }, "dumpar=dumpar"); } var handleSuccessRGHContent = function(o) { if (o.responseText !== undefined) { document.getElementById('rghcontent').innerHTML = o.responseText; } } var handleFailureRGHContent = function(o) { if (o.responseText !== undefined) { document.getElementById('rghcontent').innerHTML = ""; } } function changeRGHdate(){ posted ="rghtype="+document.getElementById("rghtype").value+"&rghdate="+document.getElementById("rghdate").value; var request = YAHOO.util.Connect.asyncRequest('POST', "rakamlarla-gecen-hafta-content", { timeout :25000, success :handleSuccessRGHContent, failure :handleFailureRGHContent }, posted); } function changeRGHtype(){ posted ="rghtype="+document.getElementById("rghtype").value+"&rghdate="+document.getElementById("rghdate").value; var request = YAHOO.util.Connect.asyncRequest('POST', "rakamlarla-gecen-hafta-content", { timeout :25000, success :handleSuccessRGHContent, failure :handleFailureRGHContent }, posted); } var handleSuccessHippodromesProgram = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarProgramTabContent').innerHTML = o.responseText; } } var handleFailureHippodromesProgram = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarProgramTabContent').innerHTML = ""; } } function getHippodromesProgram(){ posted ="type=1"; var request = YAHOO.util.Connect.asyncRequest('POST', "yarislar-program", { timeout :25000, success :handleSuccessHippodromesProgram, failure :handleFailureHippodromesProgram }, posted); } var handleSuccessHippodromesProgramDetail = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarProgramDetay').innerHTML = o.responseText; document.getElementById('iframe_id').src = "yarislar-liste?cardId="+document.getElementById("cardId").value;; } } var handleFailureHippodromesProgramDetail = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarProgramDetay').innerHTML = ""; } } function getKosularList(){ posted ="ajaxCaller=true&card_id="+document.getElementById("kosularsecimcard_id").value; var request = YAHOO.util.Connect.asyncRequest('POST', "kosularsecim", { timeout :25000, success :handleSuccessKosularList, failure :handleFailureKosularList }, posted); } var handleSuccessKosularList = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarProgramDetay').innerHTML = o.responseText; document.getElementById('iframe_id').src = "kosularliste?card_id="+document.getElementById("kosularsecimcard_id").value;; } } var handleFailureKosularList = function(o) { if (o.responseText !== undefined) { } } function getHippodromesProgramDetail(){ posted ="type=1&detail=true&cardId="+document.getElementById("cardId").value; var request = YAHOO.util.Connect.asyncRequest('POST', "yarislar-program-detay", { timeout :25000, success :handleSuccessHippodromesProgramDetail, failure :handleFailureHippodromesProgramDetail }, posted); } var handleSuccessHippodromesSonuclar = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarSonuclarTabContent').innerHTML = o.responseText; getHippodromesSonuclarList(null); } } var handleFailureHippodromesSonuclar = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarSonuclarTabContent').innerHTML = ""; } } function getHippodromesSonuclar(){ posted ="dumpar=dumpar"; var request = YAHOO.util.Connect.asyncRequest('POST', "yarislar-sonuclar", { timeout :25000, success :handleSuccessHippodromesSonuclar, failure :handleFailureHippodromesSonuclar }, posted); } var handleSuccessHippodromesSonuclarDetail = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarSonuclarDetay').innerHTML = o.responseText; getHippodromesSonuclarList(null); getHippodromesSonuclarAltili(); } } var handleFailureHippodromesSonuclarDetail = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarSonuclarDetay').innerHTML = ""; } } function getHippodromesSonuclarDetail(){ posted ="detail=true&cardIdSonuclar="+document.getElementById("cardIdSonuclar").value; var request = YAHOO.util.Connect.asyncRequest('POST', "yarislar-sonuclar-detay", { timeout :25000, success :handleSuccessHippodromesSonuclarDetail, failure :handleFailureHippodromesSonuclarDetail }, posted); } var handleSuccessHippodromesSonuclarList = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarSonuclarListe').innerHTML = o.responseText; } } var handleFailureHippodromesSonuclarList = function(o) { if (o.responseText !== undefined) { document.getElementById('yarislarSonuclarListe').innerHTML = ""; } } function getHippodromesSonuclarList(num){ if(num==null){ num = 1; } posted ="cardIdSonuclar="+document.getElementById("cardIdSonuclar").value+"&raceNumSonuclar="+num; var request = YAHOO.util.Connect.asyncRequest('POST', "yarislar-sonuclar-liste", { timeout :25000, success :handleSuccessHippodromesSonuclarList, failure :handleFailureHippodromesSonuclarList }, posted); } var handleSuccessHippodromesSonuclarAltili = function(o) { if (o.responseText !== undefined) { document.getElementById('altiliSonuclar').innerHTML = o.responseText; } } var handleFailureHippodromesSonuclarAltili = function(o) { if (o.responseText !== undefined) { document.getElementById('altiliSonuclar').innerHTML = ""; } } function getHippodromesSonuclarAltili(){ posted ="detail=true&altili=altili&cardIdSonuclar="+document.getElementById("cardIdSonuclar").value; var request = YAHOO.util.Connect.asyncRequest('POST', "yarislar-sonuclar-altili", { timeout :25000, success :handleSuccessHippodromesSonuclarAltili, failure :handleFailureHippodromesSonuclarAltili }, posted); } function changeSelectedRace(obj, num, max) { var strUrl = obj.src.toString(); var selected = 0; for(i=1; i -1){ selected =i; break; } } if (strUrl.indexOf("on.gif") > -1) { if(obj.id=="onoff"+selected){ return; } strUrl = strUrl.replace("on.gif", "off.gif"); } else { strUrl = strUrl.replace("off.gif", "on.gif"); var preSelected = document.getElementById("onoff"+selected); var gifPre = preSelected.src.toString(); gifPre = gifPre.replace("on.gif", "off.gif"); preSelected.src = gifPre; } obj.src = strUrl; getHippodromesSonuclarList(num); } function loginCheck() { alert("Lütfen üye girişi yapınız."); } function submitH6() { document.getElementById("anabahisturu").value = document.getElementById("Vbahisturuana").value; try{ document.getElementById("aib").value=document.getElementById("aibaffsrc").value; document.getElementById("aih").value=document.getElementById("aihaffsrc").value; document.onaylaana.target = "_blank"; }catch(ex){} document.onaylaana.submit(); } function dummyValidationChecker(){ return true; } function submitQPpage() { document.onayla.onayid.value='1'; document.onayla.submit(); } function handleCheckTimes(o){ if(o.responseText !== undefined){ if(o.responseText.indexOf("TRUE")>-1){ try{ var formname = document.getElementById(o.argument.toString()); formname.aib.value = document.getElementById("aibaffsrc").value; formname.aih.value = document.getElementById("aihaffsrc").value; formname.target = "_blank"; }catch(ex){} document.getElementById(o.argument).submit(); }else if(o.responseText.indexOf("FALSE")>-1){ alert("Seçmiş olduğunuz kuponu yarış başladığı için oynayamazsınız."); return false; } } } function handleFailureTimes(o){ if(o.responseText !== undefined){ try{ var formname = document.getElementById(o.argument.toString()); formname.aib.value = document.getElementById("aibaffsrc").value; formname.aih.value = document.getElementById("aihaffsrc").value; }catch(ex){} document.getElementById(o.argument).submit(); } } function checkTimes(card,bettype,formname){ posted ="card_id="+card+"&bet_type="+bettype; var request = YAHOO.util.Connect.asyncRequest('POST', "/tjk/tjk-time-check", { timeout: 25000, success:handleCheckTimes, failure:handleFailureTimes, argument:[formname] },posted); }