var lapso = 90000; var scoresTimer = setTimeout("",refresh); var c = false; var gt; var gr; var mystr = ''; function cargarleader(cref,idt,dbb,hadmin){ gt=cref; gr=idt; gs=dbb; ha=hadmin; cargar_si('MainDIV','ContDiv', cref,idt,dbb,hadmin) } function cargar_si(PDiv,CDiv, cref,idt,dbb,hadmin){ var URL= '/leader/leader.js.content.php?id='+idt+'&torneo='+ cref +'&dbb='+ dbb +'&hadmin='+ hadmin +''; refresh(URL) } function refresh(URL){ if(bw.ns){ document.layers['ScoresAqui'].load(URL,0); } if(bw.ie){ document.frames['ScoresAqui'].location.href=URL; } if(bw.ns6){ document.getElementById('ScoresAqui').src='about:blank'; document.getElementById('ScoresAqui').src=URL; } else{ document.frames['ScoresAqui'].location.href=URL; } scoresTimer = setTimeout("refresh('" + URL + "')",lapso); } function player_scores(idtor,creft,ccodcli,startPos,currPos,Difer,Name,Country,CurrHole,scoreToPar,d1score,d2score,d3score,d4score,total,foto,todayscore){ //,oom_rank){ this.idtor=idtor; this.creft=creft; this.ccodcli=ccodcli; this.startPos=startPos; this.currPos=currPos; this.Difer = Difer; this.Name=Name; this.Country=Country; this.CurrHole=CurrHole; this.scoreToPar=scoreToPar; this.d1score=d1score; this.d2score=d2score; this.d3score=d3score; this.d4score=d4score; this.dd1score=d1score; this.dd2score=d2score; this.dd3score=d3score; this.dd4score=d4score; this.total=total; this.foto=foto; this.todayscore=todayscore; this.get_player_row=getPlayerRow; this.get_player_row_my=getPlayerRowMy; } function getPlayerRow(){ var strOom = ''; if (this.oom_rank!=null){ strOOM = this.oom_rank; }else{ strOOM = ''; } var str = ''; var strRow = '':'scoresRowBgAlternate">') if (this.idtor == 'thecut'){ //if(screcho >= 1) { str += '
Projected Cut '+this.startPos+'
'; //str += ''; //this.ccodcli = -this.ccodcli; //} } if (this.idtor == 'finalcut'){ //if(screcho >= 1) { str += '
The Cut
'; //str += ''; //this.ccodcli = -this.ccodcli; //} } if (this.idtor == 'tenpos'){ //if(screcho >= 1) { //str += 'Top 10'; //str += ''; //this.ccodcli = -this.ccodcli; //} } var strRow2 = ''; var strRow33 = ''; var strRow34 = ''; if (this.idtor !== 'tenpos' && this.idtor !== 'thecut' && this.idtor !== 'nocut' && this.idtor !== 'finalcut' && this.idtor !== 'OUT') { if (this.d1score != '') { } else { this.d1score = '   '; } if (this.d2score != '') { } else { this.d2score = '   '; } if (this.d3score != '') { } else { this.d3score = '   '; } if (this.d4score != '') { } else { this.d4score = '   '; } str += '
' str += '
' +'
'+this.currPos+'
' +'
'+this.startPos+'
' +'
'+this.Country+'
' +'

'+this.Name+'

' +'
'+this.CurrHole+'
' +'
'+this.todayscore+'
' +'
'+this.scoreToPar+'
' +'
'+this.d1score+'
' +'
'+this.d2score+'
' +'
'+this.d3score+'
' +'
'+this.d4score+'
' +'
'+this.total+'
' +'
'; str += strRow2 } if (this.idtor == 'nocut') { if (this.d1score != '') { } else { this.d1score = '   '; } if (this.d2score != '') { } else { this.d2score = '   '; } if (this.d3score != '') { } else { this.d3score = '   '; } if (this.d4score != '') { } else { this.d4score = '   '; } str += '
' str += '
-
' +'
'+this.currPos+'
' +'
'+this.startPos+'
' +'
'+this.Country+'
' +'

'+this.Name+'

' +'
'+this.CurrHole+'
' +'
'+this.todayscore+'
' +'
'+this.scoreToPar+'
' +'
'+this.d1score+'
' +'
'+this.d2score+'
' +'
'+this.d3score+'
' +'
'+this.d4score+'
' +'
'+this.total+'
' +'
'; str += strRow2 } if (this.idtor == 'OUT') { str += '
' str += '
-
' +'
'+this.CurrHole+'
' +'
 
' +'
'+this.Country+'
' +'

'+this.Name+'

' +'
 
' +'
 
' +'
 
' +'
 
' +'
 
' +'
 
' +'
 
' +'
 
' +'
'; str += strRow2 } c=!c; return str; } function getPlayerRowMy(){ var strOom = ''; if (this.oom_rank!=null){ strOOM = this.oom_rank; }else{ strOOM = ''; } var str = ''; var strRow = '':'scoresRowBgAlternate">') // LOOP DE MY LEADER if(Get_Cookie('myLeader')!=null){ var strMyPlayers = Get_Cookie('myLeader') var arrMyPlayers=strMyPlayers.split(",") for (i=0; i
' +'
'+this.currPos+'
' +'
'+this.startPos+'
' +'
'+this.Country+'
' +'

'+this.Name+'

' +'
'+this.CurrHole+'
' +'
'+this.todayscore+'
' +'
'+this.scoreToPar+'
' +'
'+this.dd1score+'
' +'
'+this.dd2score+'
' +'
'+this.dd3score+'
' +'
'+this.dd4score+'
' +'
'+this.total+'
' +'
'; } break; } } } var strRow2 = ''; var strRow33 = ''; var strRow34 = ''; c=!c; return str; } function concat_scores(scoringtime,scores,status,cancha){ var cancha = new Array(); var str = ''; str += '
' str +='
' +'

My

' +'

Pos

' +'

Ini

' +'

Flag

' +'

P L A Y E R

' +'

Hole

' +'

Rd

' +'

Scr

' +'

R1

' +'

R2

' +'

R3

' +'

R4

' +'

Tot

' +'
'; var headerMy = '

My+Leaderboard

'; var headerFull = '

Full+Leaderboard

'; for(var i=0;i 100) { str += headerMy; break; } } } for(var i=0;i 100) { str += headerFull; break; } } } for(var i=0;i