function valid_email(str) { var re = /^(([^<>()[].,;:s@"]+(.[^<>()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/ if (!str.match(re)) { alert("Invalid Email Address"); return false; } return true; } function validate() { var email = document.getElementById('email'); if (valid_email(email.value)==false){ email.focus() return false } } function swap_image(id, new_image) { var x=document.getElementById(id); x.style.backgroundImage = "url("+ new_image +")"; x.style.backgroundRepeat = "no-repeat"; x.style.height = "30px"; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i" var ni = document.getElementById('main'); var targetDiv = document.createElement('div'); targetDiv.setAttribute("id","dynDivPop"); targetDiv.innerHTML = fullTerm; ni.appendChild(targetDiv); $(document).mousemove(function(e){ var pageCoords = "( " + e.pageX + ", " + e.pageY + " )"; $("#dynDivPop").css({left:(e.pageX-225)+"px", top:(e.pageY-25)+"px"}); }) } function hideTerm() { isPopped = false; var d = document.getElementById('main'); var olddiv = document.getElementById('dynDivPop'); d.removeChild(olddiv); } function createTermPop() { idName = "dynDivPop"; newTerm = document.createElement('div'); newTerm.setAttribute('id', idName); document.body.appendChild(newTerm); return idName; } function swapBioPic(modelName,picNum) { $("#bioPic").attr("src", '/images/media-room/gaming-girls/girls/' + modelName + picNum + '.jpg' ); } function toggleQuestion(qName) { if (document.getElementById(qName).style.display != 'block') { show(qName); } else { hide(qName); } } (function($) { $.fn.equalizeCols = function(){ var maxH = 0; this.each( function() { if (this.offsetHeight>maxH) maxH = this.offsetHeight; } ).css("height", "auto").each( function() { var gap = maxH-this.offsetHeight; if (gap > 0) { t = document.createElement('div'); $(t).attr("class","fill").css("height",gap+"px"); $(this).append(t) } } ); } })(jQuery); function openTourneyDetails(tid){ var w=window.open('/online-casino/tournaments/tournament-information.html?t=' + tid,'TournamentInfo','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=710,height=500'); w.focus(); } function select_by_click(which_one) { document.getElementById('ReloadPromoTag_' + which_one).checked = true; }