function loginpl(){ window.open('http://my.plus.golf/?or=book','ventanatalogin','width=400,height=460,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=100,left=250'); } function logoutpl(){ window.open('https://my.plus.golf/logout.php?or=book','ventanatalogout','width=20,height=20,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=250,left=250'); } function Players(URL){ window.open(URL,'ventanataplayers','width=760,height=465,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=5,left=5'); } function openpl(){ window.open('https://my.plus.golf/home','ventanaplayersm','width=500,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=100'); } function registerpl(){ window.open('https://my.plus.golf/register','ventanaregplayer','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10'); } function passretpl(){ window.open('https://my.plus.golf/register/reset/','ventanapasretpl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10'); } function myaccountpl(){ window.open('http://my.plus.golf/account','ventanapasretpl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10'); } function notifypl(){ window.open('http://my.plus.golf/push','ventanapasretpl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10'); } function goFullscreen(page) { var URLen=page; var windowNamen="ventanafull"; var browserName=navigator.appName; var operatingSystem=navigator.platform; var version = parseFloat(navigator.appVersion); //alert(browserName); // Netscape check version 4.0+ on Win if (browserName.indexOf("Netscape")!=-1 && version>=4.0 && operatingSystem.indexOf("Win")!=-1) { window.open(URLen,windowNamen,'titlebar=no,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',scrollbars=1,screenX=0,screenY=0,top=0,left=0') } // MSIE Mac check else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Mac")!=-1) { window.open(URLen,windowNamen,'titlebar=no,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',scrollbars=1,screenX=0,screenY=1,top=0,left=0') } // Netscape Mac check else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Mac")!=-1) { window.open(URLen,windowNamen,'width='+screen.width+',height='+screen.height+',top=0,left=0'); } // MSIE Windows else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Win")!=-1) { //window.open(URLen,windowNamen,'fullscreen=yes') var win = window.open(URLen,windowNamen,'titlebar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availHeight+',screenX=0,screenY=1,top=0,left=0') win.resizeTo(screen.width, screen.height); //win.moveTo(1, 1); //win.moveTo(0, 0); //win.resizeTo(screen.width, screen.height); } // Netscape Windows else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Win")!=-1) { window.open(URLen,windowNamen,'width='+screen.width+',height='+screen.height+',top=0,left=0'); } else { window.open(URLen,windowNamen); } } function LeaderFull(ID){ window.open('http://www.golfmol.com/goleader.php?ancho='+ window.screen.availWidth +'&alto=' + window.screen.availHeight + '&' + ID + '','ventanaleaderG','width=' + window.screen.availWidth+',height=' + window.screen.availWidth+',toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=0,left=0'); } function infocont(ID){ window.open('https://www.golfmol.com/incs/sp/info.contacto.in.php?id='+ ID +'','ventana_zdxq','width=480,height=270,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=10,left=5'); } function nuevoAjax(){ var xmlhttp=false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function cargardatos(id,php,padre){ var readajax; readajax = document.getElementById(id); readajax.innerHTML = '

'; ajax=nuevoAjax(); ajax.open("GET", php,true); ajax.onreadystatechange=function() { if (ajax.readyState==4) { readajax.innerHTML=ajax.responseText; } } ajax.send(null) } function PostAjax(id,php){ //alert(id+'\n'+php+'\n'+padre); var readajax; readajax = document.getElementById(id); readajax.innerHTML = '

'; ajax=nuevoAjax(); ajax.open("POST", php,true); ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); ajax.send(parameters) ajax.onreadystatechange=function() { if (ajax.readyState==4) { readajax.innerHTML=ajax.responseText; } } ajax.send(null) } function inscr_ok(torneo,matricula,nombre) { var agree=confirm("ATENCION ... CONFIRME que va a inscribir en este torneo al jugador:\n\n\n" + nombre + ""); //self.frames['regt'].location.href='/do/limitada_feg_do.php?id=FEG&lang=sp&NUMF=' + torneo + '&player=' + matricula + '&st=A '; location.href='/do/limitada_feg_do.php?id=FEG&lang=sp&NUMF=' + torneo + '&player=' + matricula + '&st=A '; if (agree) return true ; else return false ; } function inscr_prov(torneo,matricula,nombre) { var agree=confirm("INSCRIPCION PROVISORIA ...\n\nVa a inscribir en este torneo al jugador con ESTADO DE BAJA:\n\n" + nombre + "\n\nRecuerde que tiene un dia habil para abonar LA MATRICULA ANUAL DE HANDICAP. Caso contrario esta inscripcion sera cancelada."); //self.frames['regt'].location.href='/do/limitada_feg_do.php?id=FEG&lang=sp&NUMF=' + torneo + '&player=' + matricula + '&st=B '; location.href='/do/limitada_feg_do.php?id=FEG&lang=sp&NUMF=' + torneo + '&player=' + matricula + '&st=B '; if (agree) return true ; else return false ; } function confenter() { var agree=confirm("Please confirm you will commit to this Event ..."); if (agree) return true ; else return false ; } function confirmar_del_res() { var agree=confirm("ATENCION ... CONFIRME que intenta eliminar y cancelar esta reserva"); if (agree) return true ; else return false ; } function Reservar(URL){ window.open(URL,'ventanares','width=900,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10'); } function openRound(evt, cityName) { // Declare all variables var i, tabcontent, tablinks; // Get all elements with class="tabcontent" and hide them tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } // Get all elements with class="tablinks" and remove the class "active" tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } // Show the current tab, and add an "active" class to the button that opened the tab document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; } function veroc(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } // Selector de score de la tarjeta (scorecardround.php): muestra el panel kind-variant // (stroke|stable x gross|net) y sincroniza el estado visual del contenedor + pills. function pgScoreSelect(kind, variant) { kind = (kind == 'stable') ? 'stable' : 'stroke'; variant = (variant == 'net') ? 'net' : 'gross'; var pick = kind + '-' + variant; var panels = { 'stroke-gross': ['igross', 'vgross'], 'stroke-net': ['inet', 'vnet'], 'stable-gross': ['isfgross', 'vsfgross'], 'stable-net': ['isfnet', 'vsfnet'] }; for (var m in panels) { for (var i = 0; i < panels[m].length; i++) { var el = document.getElementById(panels[m][i]); if (el) el.style.display = (m == pick) ? 'block' : 'none'; } } var pills = document.querySelectorAll('.scorecard-score-switch [data-score-pick]'); for (var p = 0; p < pills.length; p++) { var on = (pills[p].getAttribute('data-score-pick') == pick); pills[p].className = 'scorecard-score-pill' + (on ? ' is-active' : ''); pills[p].setAttribute('aria-pressed', on ? 'true' : 'false'); } var groups = document.querySelectorAll('.scorecard-score-switch [data-score-group]'); for (var g = 0; g < groups.length; g++) { var gk = groups[g].getAttribute('data-score-group'); groups[g].className = 'scorecard-score-group' + (gk == kind ? ' is-active' : ''); } } // Compatibilidad con los botones viejos (toggle Gross/Net dentro de cada modalidad) function vergross() { var n = document.getElementById('inet') || document.getElementById('vnet'); pgScoreSelect('stroke', (n && n.style.display == 'block') ? 'gross' : 'net'); } function versfgross() { var n = document.getElementById('isfnet') || document.getElementById('vsfnet'); pgScoreSelect('stable', (n && n.style.display == 'block') ? 'gross' : 'net'); } function statsswap() { var e = document.getElementById('grossdiv'); var f = document.getElementById('netdiv'); var p = document.getElementById('botgrosstats'); if(e.style.display == 'block') { e.style.display = 'none'; f.style.display = 'block'; p.style.backgroundColor = '#780001'; } else { e.style.display = 'block'; f.style.display = 'none'; p.style.backgroundColor = '#000'; } }