	function NewWindow(URL,Ancho,Alto,Scroll,Resize){
	window.open(URL,'ventana1','width=' + Ancho + ',height=' + Alto + ',toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function NewWin2(URL,Ancho,Alto,Scroll,Resize){
	window.open(URL,'ventana2','width=' + Ancho + ',height=' + Alto + ',toolbar=no,directories=no,menubar=yes,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function NewWin3(URL,Ancho,Alto,Scroll,Resize){
	window.open(URL,'ventana3','width=' + Ancho + ',height=' + Alto + ',toolbar=yes,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=5');	
	}
	function NewWin4(URL,Ancho,Alto){
	window.open(URL,'ventana4','width=' + Ancho + ',height=' + Alto + ',toolbar=yes,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=5');	
	}
	function lang_ch(URL){
	window.open(URL,'ventanalgch','width=10,height=10,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=100,left=100');	
	}
	function Torneos(URL){
	window.open(URL,'ventanat','width=750,height=520,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function Ranking(URL){
	window.open(URL,'ventanatar','width=750,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=20,left=20');	
	}
	function analisis(URL){
	window.open(URL,'ventananalisis','width=700,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function loginpl(){
	window.open('/loginpl.php?origen=head','ventanatalogin','width=400,height=300,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=250,left=250');	
	}
	function logoutpl(){
	window.open('/logout.php','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(LG){
	window.open('https://www.golfmol.com/playerid/index.php?lang='+ LG +'','ventanaplayersm','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}
	function registerpl(LG){
	window.open('https://www.golfmol.com/playerid/index.php?origen=golfmol&lang='+ LG +'','ventanaregplayer','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}
	function passretpl(LG){
	window.open('https://www.golfmol.com/playerid/index.php?seccion=passret&lang='+ LG +'','ventanapasretpl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}

	function misdatospl(LG){
	window.open('https://www.golfmol.com/playerid/index.php?seccion=adpm&lang='+ LG +'','ventanaadpmpl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}

	function teetimespl(ID,TOR){
	window.open('https://www.golfmol.com/playerid/index.php?id='+ ID +'&seccion=inscripcion&torneo='+ TOR +'&paso=2','ventanateetimespl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}

	function teetimesplh(ID,TOR,HR,TEE){
	window.open('https://www.golfmol.com/playerid/index.php?id='+ ID +'&seccion=inscripcion&torneo='+ TOR +'&paso=2&hora='+ HR +'&tee='+ TEE +'','ventanateetimespl','width=800,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}


	function activarid(CODIGO){
	window.open('https://www.golfmol.com/playerid/index.php?seccion=activarpm&origen=golfmol&code=' + CODIGO + '','ventanaactivaridpl','width=800,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}

	function infocenter(CLID){
	window.open('http://www.golfmol.com/redir.php?dest=' + CLID + '','ventana' + CLID + '','width=770,height=500,toolbar=yes,directories=yes,menubar=yes,status=yes,scrollbars=yes,resizable=yes,top=3,left=3');	
	}
	function infocenter2(URL){
	window.open(URL,'ventanainfo2','width=800,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=1,left=1');	
	}
	function erp(){
	window.open('https://www.golfmol.com/inet/index.php','ventana_inet_si','width=778,height=470,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=5,left=5');
	}
	function sics(){
	window.open('https://www.golfmol.com/cs/index-in.php','ventana_cs','width=750,height=475,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=10,left=5');
	}
	function aagdata(URL){
	window.open(URL,'ventanaaagdata','width=730,height=500,toolbar=no,directories=no,menubar=yes,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}
	function mailsend(IDX,LG){
	window.open('http://www.golfmol.com/noticia-env.php?idx=' + IDX + '&lang='+ LG +'','ventananot','width=470,height=420,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=100,left=100');	
	}
	function mailsendtor(PAG){
	window.open(PAG,'ventananot','width=420,height=370,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=100,left=100');	
	}
	function confirmSend()
	{
	var agree=confirm("ATENCION.\n\nEsta por enviar correo electronico (individual o masivo). Esta seguro de proceder ?.");
	if (agree)
		return true ;
	else
		return false ;
	}
	function confirmDelete()
	{
	var agree=confirm("ATENCIÓN.\n\n¿Está seguro de borrar este registro?. Esta acción no se puede DESHACER y toda la información se borra de manera definitiva.");
	if (agree)
		return true ;
	else
		return false ;
	}
	function borrarply()
	{
	var agree=confirm("ATENCIÓN | WARNING.\n\nDesea borrar la cuenta ?\n\nReally want to delete the account?.");
	if (agree)
		return true ;
	else
		return false ;
	}
	function confirmarrevision()
	{
	var agree=confirm("ATENCIÓN.\n\n¿Está seguro de GENERAR UN CIERRE DE REVISIÓN DE HANDICAPS?.");
	if (agree)
		return true ;
	else
		return false ;
	}
	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 cargarContenido(id,php,padre){
	//alert(id+'\n'+php+'\n'+padre);
	var pepe;
	pepe = document.getElementById(id);
	pepe.innerHTML = "<br><br><br><br><center><p class='GENERAL'>Leyendo Datos... Un momento por favor ...</p><br><br><p><img src='http://www.golfmol.com/images/wait.gif' /></p></center>";
	ajax=nuevoAjax();
	ajax.open("GET", php,true);
	ajax.onreadystatechange=function() {
	if (ajax.readyState==4) {
	//pepe.innerHTML = '<a href="#" onClick="new Effect.SlideUp(\''+padre+'\');">Cerrar</a><br>'+ajax.responseText;
	pepe.innerHTML=ajax.responseText;
	//new Effect.SlideDown(padre);
	}
	}
	ajax.send(null)
	}

	function cargarSC(id,php,padre){
	//alert(id+'\n'+php+'\n'+padre);
	var pepe;
	pepe = document.getElementById(id);
	pepe.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="625" id="AutoNumber1" height="110"><tr><td width="100%"><center><img src="http://www.golfmol.com/images/wait.gif" /></center></td></tr></table>';
	ajax=nuevoAjax();
	ajax.open("GET", php,true);
	ajax.onreadystatechange=function() {
	if (ajax.readyState==4) {
	//pepe.innerHTML = '<a href="#" onClick="new Effect.SlideUp(\''+padre+'\');">Cerrar</a><br>'+ajax.responseText;
	pepe.innerHTML=ajax.responseText;
	//new Effect.SlideDown(padre);
	}
	}
	ajax.send(null)
	}
	
	function cargarDivs(id,php,padre){
	//alert(id+'\n'+php+'\n'+padre);
	var pepe;
	pepe = document.getElementById(id);
	pepe.innerHTML = '<p style=" margin: 0px; padding: 10px 0px 10px 0px; text-align: center;"><img src="/images/ajax-loading.gif" /></p>';
	ajax=nuevoAjax();
	ajax.open("GET", php,true);
	ajax.onreadystatechange=function() {
	if (ajax.readyState==4) {
	//pepe.innerHTML = '<a href="#" onClick="new Effect.SlideUp(\''+padre+'\');">Cerrar</a><br>'+ajax.responseText;
	pepe.innerHTML=ajax.responseText;
	//new Effect.SlideDown(padre);
	}
	}
	ajax.send(null)
	}

	function Scorecards(id,php,padre){
	//alert(id+'\n'+php+'\n'+padre);
	var pepe;
	pepe = document.getElementById(id);
	pepe.innerHTML = '<div style=" width: 750px; height: 110px; text-align: center; margin: 0px auto 0px auto; border: #CCC solid 0px;"><center><p style=" margin: 0px; padding: 0px;"><img src="/images/ajax-loading.gif"></p></center></div>';
	ajax=nuevoAjax();
	ajax.open("GET", php,true);
	ajax.onreadystatechange=function() {
	if (ajax.readyState==4) {
	//pepe.innerHTML = '<a href="#" onClick="new Effect.SlideUp(\''+padre+'\');">Cerrar</a><br>'+ajax.responseText;
	pepe.innerHTML=ajax.responseText;
	//new Effect.SlideDown(padre);
	}
	}
	ajax.send(null)
	}

	function Content(id,php,padre){
	//alert(id+'\n'+php+'\n'+padre);
	var pepe;
	pepe = document.getElementById(id);
	pepe.innerHTML = "<br><br><br><br><center><p class='GENERAL'>Leyendo Datos... Un momento por favor ...</p><br><br><p><img src='http://www.golfmol.com/images/wait.gif' /></p></center>";
	ajax=nuevoAjax();
	ajax.open("GET", php,true);
	ajax.onreadystatechange=function() {
	if (ajax.readyState==4) {
	//pepe.innerHTML = '<a href="#" onClick="new Effect.SlideUp(\''+padre+'\');">Cerrar</a><br>'+ajax.responseText;
	pepe.innerHTML=ajax.responseText;
	//new Effect.SlideDown(padre);
	}
	}
	ajax.send(null)
	}

	function printid(nombre)
	{
	var ficha = document.getElementById(nombre);
	var ventimp = window.open(' ', 'popimpr','width=750,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=10,left=10');
	ventimp.document.write( ficha.innerHTML );
	ventimp.document.close();
	ventimp.print( );
	ventimp.close();
	}


	function submitonce(theform){
	//if IE 4+ or NS 6+
	if (document.all||document.getElementById){
	//screen thru every element in the form, and hunt down "submit" and "reset"
	for (i=0;i<theform.length;i++){
	var tempobj=theform.elements[i]
	if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
	//disable em
	tempobj.disabled=true
	}
	}	
	}

	function sel(UrlAdress){
	UrlAdress=document.frm.com[document.frm.com.selectedIndex].value;
	self.document.location.href=UrlAdress;
	}
	function exclusiones(TOR){
	window.open('datax/sp/desqualy.admin.php?torneo=' + TOR + '','ventana_desq','width=400,height=300,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=50,left=50');
	}
	function segmentossalidas(TOR){
	window.open('datax/sp/teetimes.admin.php?torneo=' + TOR + '','ventana_teetadm','width=600,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=50,left=50');
	}
	
    function catmultic(TOR,CAT){
	window.open('/datax/sp/categ.multi.php?torneo=' + TOR + '&categoria=' + CAT + '','ventana_desq','width=500,height=400,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=5,left=5');
	}

	function analisis(URL){
	window.open(URL,'ventananalisis','width=700,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function torneoscierre(URL){
	window.open(URL,'ventancierretor','width=700,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function torneosgrupos(URL){
	window.open(URL,'ventangrupos','width=700,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function SalidasTotal(TORNEO){
	window.open('datax/sp/salidas_r_relfr.php?torneo=' + TORNEO + '','ventanasalidarel','width=770,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}
	function cierrevuelta(URL){
	window.open(URL,'ventana_cierrevuelta','width=775,height=450,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=5,left=5');
	}
	function desempate(URL){
	window.open(URL,'ventanadesempate','width=600,height=400,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');	
	}
	function ManejoSalidas(){
	window.open('datax/sp/salidas_r.php','ventanamanejosalida','width=900,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}
	function ManejoSalidasSet(TOR){
	window.open('datax/sp/salidas_r.php?torneo='+ TOR +'','ventanamanejosalidaset','width=900,height=500,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=10');
	}
	function GruposSalidas(){
	window.open('datax/sp/salidas_r_grupos.php','ventanaGruposSalidas','width=530,height=475,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=50,left=150');
	}
	function eula(){
	window.open('datax/sp/eula.php','ventanaeula','width=750,height=450,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=100,left=100');	
	}
	function MatchWin(URL){
	window.open(URL,'ventanamatch','width=405,height=200,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=30,left=30');	
	}
	function MatchEq(URL){
	window.open(URL,'ventanamatcheq','width=520,height=350,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=30,left=30');	
	}
	function help(ID){
	window.open('https://www.golfmol.com/data/datax/helpview.php?item=' + ID + '','ventanahelpshort','width=750,height=450,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=25,left=30');	
	}
	function Search(){
	window.open('http://www.golfmol.com/goos.htm','ventanasearch','width=778,height=600,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=25,left=30');	
	}
	function setcateg(URL){
	window.open(URL,'ventanasetcateg','width=400,height=220,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=5,left=5');
	}
	function traeraag(DESDE){
	window.open('datax/sp/data.juga.hcpbuscaag-add.php?origen=' + DESDE + '','ventanaaagbusq','width=600,height=450,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=100,left=100');	
	}
	function OpenScorecard(URL){
	window.open('datax/sp/tarjetas-edita.new.php?' + URL + '&action=addsc','ventanscorecard1','width=800,height=550,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=100');	
	}
	function OpenScorecardEdit(URL){
	window.open('datax/sp/tarjetas-edita.new.php?' + URL + '&action=editsc','ventanscorecard2','width=800,height=550,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=10,left=100');	
	}
	function des(DES){
	window.open('desqualy.php' + DES + '','ventana_des','width=400,height=300,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=5,left=5');
	}
	function AddSalidas(URL){
	window.open(URL,'ventanaADDsalida','width=530,height=475,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=no,top=25,left=100');
	}
	function revisarhcp(URL){
	window.open(URL,'ventanaADDsalida','width=350,height=275,toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,top=25,left=100');
	}