var prefixUrl = 'http://151.9.233.4/wps'; var prefixGuide = 'http://151.9.233.6'; fixK = "&lang=5&sid=null&ms=MS"; function redirectUser(redir) { this.location.href = redir; } function popUp(strURL, strType, strHeight, strWidth) { var strOptions = ''; window.open(strURL); } function checkLoginForm() { df = document.getElementById("loginForm"); if ( df.j_username.value == "" || df.j_password.value == "" ) return false; else if ( df.j_username.value == "username" || df.j_password.value == "password" ) return false; return true; } function downloadAppScommesse() { document.location.href = 'sport?action=scommesse_main_comm'; } function downloadAppRouletteClassica() { document.location.href = 'vbox?action=fog_main_comm'; } function openAccount() { document.location.href = 'http://151.9.233.4/wps/oait.go?channel=sb&stage=prefill&p_show=&lang=5&sid=5&ms=MS&site=5&tab=sports'; } function logIn() { var mobileContentDiv = document.getElementById('mobileContentDiv'); $.ajax({ url: "msite/mobile_logIn.jsp", cache: false }).done(function( html ) { $("#mobileContentDiv").slideUp("fast",function(){mobileContentDiv.innerHTML = html;}); $("#mobileContentDiv").slideDown("fast"); }); } function logOut() { document.location.href = 'sport?action=logout_comm'; } function refreshUserInfo() { var mobileUserInfoDiv = document.getElementById('mobileUserInfoDiv'); $.ajax({ url: "msite/mobile_info_utente.jsp", cache: false }) .done(function( html ) { mobileUserInfoDiv.innerHTML = html; }) .fail(function() { alert("La tua sessione e' scaduta.\nRieffettua l'accesso."); document.location.reload(); }); } function gestioneConto() { window.open(prefixUrl + '/payit.go?stage=6&channel=sb&' + fixK); } function homePageMobile() { document.location.href = 'vbox'; } function openDesktopSite() { document.location.href = 'vbox?viewMode=desktop'; } function openAAMS() { window.open('http://www.aams.gov.it/site.php?id=2457'); } function callGuide(g) { if ( g.length > 0 ) { popUp(g, 'console', 750, 1000); } } function openGuide() { callGuide(prefixGuide + '/guida/conto-di-gioco'); } function openGuideOfferte() { callGuide('http://www.eurobet.it/guida/index.html#offerte'); } function openDeposito() { callGuide('http://www.eurobet.it/guida/pagamento.html'); } function openGuidaPrelievo() { callGuide(prefixGuide + '/guida/conto-di-gioco/prelievo'); } function openGiocoResponsabile() { callGuide(prefixGuide + '/guida/informazioni/gioco-responsabile'); } function callGuidaSkillGames() { callGuide('http://www.eurobet.it/guida/skillgames.html'); } function aboutUs() { callGuide(prefixGuide + '/guida/informazioni/chi-siamo'); } function contactUs() { callGuide(prefixGuide + '/guida/informazioni/contatti'); } function bookingGuide() { callGuide('http://www.eurobet.it/guida/simula.html'); } function openAffiliates() { callGuide(prefixGuide + '/guida/informazioni/affiliati'); } function fog_guida() { callGuide('http://www.eurobet.it/guida/giochi.html'); }