var now = new Date(); var w_id = "LadbrokesGamesHome_"; w_id += now.getYear(); w_id += now.getDate(); w_id += now.getMonth(); w_id += now.getHours(); w_id += now.getMinutes(); w_id += now.getSeconds(); self.window.name = w_id; function launchfromdropdown(game) { if (game.value > "0") { launchgame(game.value, "false"); } document.atoz.games.selectedIndex = 0; } function moregame () { document.genrepage.submit(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&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 Your Username"; } // validate an e-mail address if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.claim.email.value)){ theMessage = theMessage + "\n --> Enter a valid e-mail address"; } // If no errors, submit the form if (theMessage == noErrors) { return true; } else { // If errors were found, show alert message alert(theMessage); return false; } } function getParent(obj,objThis){ //obj is objDepartedNode while(obj){ //alert("obj.id="+obj.id) if(obj == objThis){ return obj; } obj = obj.parentNode; } return null } function IsChildHovered(e,objThis){ var isChildHovered = false; var objDepartedNode = (e.relatedTarget)?e.relatedTarget:e.toElement; /* var strAlert = "" for(var obj in e){ strAlert+=obj + "="+eval("e."+obj) + " "; } alert("strAlert:\n\n"+strAlert) */ var objParent = getParent(objDepartedNode,objThis); if(objParent){ isChildHovered = true; } return isChildHovered; } function isMouseOutObjectArea(e,objThis){//,obj2,obj3 //this is to detect if a user mouseout from one object to another object //for example, a user will mouseout from MORE to HIDEMELAYER or vice versa //in which case all further mouseout functionality will be void. var objDepartedNode = (e.relatedTarget)?e.relatedTarget:e.toElement; for(var a = 1; a < isMouseOutObjectArea.arguments.length; ++a){ if(objDepartedNode == isMouseOutObjectArea.arguments[a]){ return false; } } //a mouseout will trigger even if a user does a mouseover onto a node inside the parent node //so this detects if the mouseout was triggered by mouseover onto the parents child nodes. //and if it does then all further mouseout functionality will be void. if(IsChildHovered(e,objThis)){return false} return true; } function formatTable(obj) { obj = document.getElementById(obj); for (i=2; i