eval(function(a,b,c,d){while(b--)if(c[b])a=a.replace(new RegExp(d+b+d,'g'),c[b]);return a}("function ajaxFormatURL(1){2 3=document.getElementById(1);2 4='';for(2 a=0;a<3.5.6;a++){switch(3.5[a].type){7'checkbox':{8(3.5[a].9==10){8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13}14}7'file':{14}7'hidden':{8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13;14}7'image':{14}7'password':{8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13;14}7'radio':{8(3.5[a].9==10){8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13}14}7'15-multiple':{14}7'15-one':{8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13;14}7'text':{8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13;14}7'textarea':{8(4.6>0)4=4+'*11*';4=4+3.5[a].12+'='+3.5[a].13;14}}}4=encodeURI(4);4=4.16(/\\+/g,'% 2B');4=4.16(/&/g,'% 26');4=4.16(/\\*11\\*/g,'&');return 4}",17,'|the_form_name|var|the_form|to_be_returned|elements|length|case|if|checked|true|AMP|name|value|break|select|replace'.split('|'),'\\b'))
function ajaxSubmit(method,target,asynchronous,variables_to_send){var req=null;if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP")}}req.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){var returned_value=req.responseText;eval(returned_value)}else{}}};req.open(method,target,asynchronous);if(method=='POST'){req.setRequestHeader('Content-Type','application/x-www-form-urlencoded')}req.send(variables_to_send)}

function emailToAFriend() {
  document.tfn__email_to_a_friend.the_url.value = location.href;
  document.tfn__email_to_a_friend.page_title.value = document.title;
  document.getElementById('popover_container__2').style.display = 'none';
  ajaxSubmit('POST', webpage_url + 'oddsandends.php', true, ajaxFormatURL('tfn__email_to_a_friend'));
}

function hideEmailToAFriend() {
  document.getElementById('popover_container__2').style.display = 'none';
}

function loadUrl(the_url) {
  document.location.href = the_url;
}

function rateCard(game_type, card_number, score) {
  ajaxSubmit('GET', webpage_url + 'oddsandends.php?game_type=' + game_type + '&page=RateElement&element_number=' + card_number + '&score=' + score, true, null);
}

function showEmailToAFriend() {
  the_victim = document.getElementById('popover_container__2');
  the_victim.style.left = ((document.body.clientWidth - the_victim.offsetWidth) / 2) + document.body.scrollLeft;
  the_victim.style.top = ((document.body.clientHeight - the_victim.offsetHeight) / 2) + document.body.scrollTop;
  the_victim.style.display = 'block';
}

