function popUp(URL,WIDTH,HEIGHT){var winleft=(screen.width-WIDTH)/2;var winright=(screen.height-HEIGHT)/2;day=new Date();id=day.getTime();eval("page"+id+"=window.open(URL,'"+id+"','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=400,height=400,left="+winleft+",top="+winright+"');");} function PopupWindow(URL, WIDTH, HEIGHT){var winleft=(screen.width-WIDTH)/2;var winright=(screen.height-HEIGHT)/2;day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL,'"+id+"','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width="+WIDTH+",height="+HEIGHT+",left="+winleft+",top="+winright+"');");} function openThawte() { PopupWindow('https://secure.mobilefun.co.uk/mobilefun/checkout/thawte-redirect.php', 500, 500); } function checkLoginPage(form){var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;var message="";var proceedflag=1;if(form.email.value==""){document.getElementById("email").style.border="1px solid red";document.getElementById("email").focus();message=message+"Please enter your email address.";proceedflag=0;}else if(filter.test(form.email.value)){document.getElementById("email").style.border="1px solid #AFAFAF";proceedflag=1;}else{document.getElementById("email").style.border="1px solid red";document.getElementById("email").focus();message=message+"Please check your email address. Check that you have put the @ and the dots in the right places.\n";proceedflag=0;} if(proceedflag==1){return true;}else{alert(message);return false;}} function changeFieldColour(current){if(current.value==""){document.getElementById(current.name).style.border="1px solid red";return 0;}else{document.getElementById(current.name).style.border="1px solid #AFAFAF";return 1;}} function checkRegistrationPage(form){var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;var message="";var proceedflag=1;var password1=form.password1.value;var password2=form.password2.value;if(!filter.test(form.email.value)){document.getElementById("email").style.border="1px solid red";message=message+" - Your email address looks incorrect. Check that you have put the @ and the dots in the right places.\n";proceedflag=0;}if(password1==password2){if(password1.length < 6){document.getElementById("password1").style.border="1px solid red";document.getElementById("password2").style.border="1px solid red";document.getElementById("password1").value="";document.getElementById("password2").value="";message=message+" - Your passwords should be at least 6 characters long\n";proceedflag=0;}}else{document.getElementById("password1").style.border="1px solid red";document.getElementById("password2").style.border="1px solid red";document.getElementById("password1").value="";document.getElementById("password2").value="";message=message+" - Your passwords do not match - please enter them again\n";proceedflag=0;}if(proceedflag==1){return true;}else{message="Sorry....\n"+message;alert(message);return false;}}