﻿var URI="pokermac.com.ar";function InicioClick(){window.location="http://"+URI}function ForoClick(){window.location="http://foro."+URI}function NuevoClick(){window.open('http://'+URI+'/Pages/CrearCuenta.aspx','external','width=944,height=589,directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,resizable=no,scrollbars=no')}function ContactoClick(){window.location="http://"+URI+"/Pages/Contact.aspx"}function TorneoClick(){window.location="http://"+URI+"/Torneos-Poker/Default.aspx"}function MisManosClick(){window.location="http://"+URI+"/Manos-Poker/Manos-Poker.aspx"}function MiPerfilClick(){window.location="http://foro."+URI+"/default.aspx?g=cp_profile"}function validaF5(e){var intKey=(window.Event)?e.which:e.keyCode;if(intKey==116||intKey==34){if(e.preventDefault){e.preventDefault()}else{event.returnValue=false;event.keyCode=0;return false}}}function focusPass(e){var intKey=(window.Event)?e.which:e.keyCode;if(intKey==13){if(document.getElementById('txtUser').value==''){alert('Debe ingresar el usuario');document.getElementById('txtUser').focus()}else{document.getElementById('txtPass').focus();return false}}}var timerID;function redirectBonos(){timerID=self.setTimeout("red()",1000)}function red(){window.location="http://www.pokermac.com.ar/Poker-Star/"}function close_titan(){document.getElementById('titan_div').style.visibility='hidden'}function OnlyLettersAndNumbers(control){var user=control.value;var tmpUser="";if(user!=''){var ok=false;var intKey=0;var intKey=0;for(var i=0;i<user.length;i++){ok=false;intKey=user.charCodeAt(i);if(intKey>=48&&intKey<=57)ok=true;else if(intKey>=65&&intKey<=90)ok=true;else if(intKey>=97&&intKey<=122)ok=true;else if(intKey>=13&&intKey<=16)ok=true;if(ok==false)break}if(ok==false){control.value='';alert('Solo se permiten letras y numeros para el nombre de usuario');control.focus();return false}if(user.length<6){alert('El nombre de usuario debe tener un minimo de 6 letras');control.focus();return false}}document.getElementById('ctl00_ContentPlaceHolder1_btnCheckIP').click();return true}