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){ //alert(id+'\n'+php+'\n'+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'; } function vergross() { var e = document.getElementById('igross'); var f = document.getElementById('inet'); var g = document.getElementById('isfgross'); var h = document.getElementById('isfnet'); var j = document.getElementById('vgross'); var k = document.getElementById('vnet'); var l = document.getElementById('vsfgross'); var m = document.getElementById('vsfnet'); var p = document.getElementById('botgross'); var r = document.getElementById('botsfgross'); if(e.style.display == 'block') { e.style.display = 'none'; f.style.display = 'block'; g.style.display = 'none'; h.style.display = 'none'; j.style.display = 'none'; k.style.display = 'block'; l.style.display = 'none'; m.style.display = 'none'; p.style.backgroundColor = '#780001'; r.style.backgroundColor = '#999'; } else { e.style.display = 'block'; f.style.display = 'none'; g.style.display = 'none'; h.style.display = 'none'; j.style.display = 'block'; k.style.display = 'none'; l.style.display = 'none'; m.style.display = 'none'; p.style.backgroundColor = '#000'; r.style.backgroundColor = '#999'; } } function versfgross() { var e = document.getElementById('igross'); var f = document.getElementById('inet'); var g = document.getElementById('isfgross'); var h = document.getElementById('isfnet'); var j = document.getElementById('vgross'); var k = document.getElementById('vnet'); var l = document.getElementById('vsfgross'); var m = document.getElementById('vsfnet'); var p = document.getElementById('botgross'); var r = document.getElementById('botsfgross'); if(g.style.display == 'block') { e.style.display = 'none'; f.style.display = 'none'; g.style.display = 'none'; h.style.display = 'block'; j.style.display = 'none'; k.style.display = 'none'; l.style.display = 'none'; m.style.display = 'block'; p.style.backgroundColor = '#999'; r.style.backgroundColor = '#090'; } else { e.style.display = 'none'; f.style.display = 'none'; g.style.display = 'block'; h.style.display = 'none'; j.style.display = 'none'; k.style.display = 'none'; l.style.display = 'block'; m.style.display = 'none'; p.style.background = ''; r.style.background = ''; p.style.backgroundColor = '#999'; r.style.backgroundColor = '#009'; } } function versfpract() { var e = document.getElementById('igross'); var f = document.getElementById('inet'); var g = document.getElementById('isfgross'); var h = document.getElementById('isfnet'); var j = document.getElementById('vgross'); var k = document.getElementById('vnet'); var l = document.getElementById('vsfgross'); var m = document.getElementById('vsfnet'); var p = document.getElementById('botprgross'); var r = document.getElementById('botprsfgross'); if(g.style.display == 'block') { e.style.display = 'none'; f.style.display = 'none'; g.style.display = 'block'; h.style.display = 'none'; j.style.display = 'none'; k.style.display = 'none'; l.style.display = 'block'; m.style.display = 'none'; p.style.background = ''; r.style.background = ''; p.style.backgroundColor = '#999'; r.style.backgroundColor = '#009'; } } 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'; } }