function myMoo(){ var liblang = getCookie('Lang'); if (liblang == ""){liblang = 0} // start by handling the forms //1) Hidden form for tries counter var tries = parseFloat(document.forms["form1"].Store.value) + 1; document.forms["form1"].Store.value = tries; //2) the signin form [0] is only written if there is no user cookie (document.write("
)) if (document.forms[0].name == 'signin'){ setCookie('username',document.forms['signin'].user.value,365); } //3) read current values from page xrn = document.forms["hiddennumber"].Secret.value xx = document.forms["form1"].Guess.value document.forms["form1"].Guess.value = "" myLastResult = document.forms["form1"].Results.value if(xx != ""){ //Cheat mode&& if (xx == 9997){alert(all[20][liblang]); setCookie('LoScore',99,365); window.location.href = 'moo_mobile2.htm'; } // End cheat mode else{ //************** warn=myNumbCheck(xx) if (warn != "OK") {warn = "(*" + warn + "!)" alert ("The hidden number does not contain a double number." + "\n" + "All numbers are scored individually: " + warn) } else {warn = ""} //************** } cws = mootwo(xrn, xx, 1) bls = mootwo(xrn, xx, 0) if (cws == 1) {cowword = all[21][liblang]} else {cowword = all[22][liblang]} if (bls == 1) {bulword = all[23][liblang]} else {bulword = all[24][liblang]} if (bls < 4) { myResult = myLastResult + xx + " - " + cws + cowword + bls + bulword + warn + "\n" document.forms["form1"].Results.value =myResult } else { document.forms["hiddennumber"].Secret.value ="Press Restart" myResult = myLastResult + xx + " - " + cws + cowword + bls + bulword + all[25][liblang] + tries + all[26][liblang] document.forms["form1"].Results.value =myResult setCookie('score',tries,365); var HiScore = getCookie('HiScore') var LoScore = getCookie('LoScore') if (tries>HiScore){setCookie('HiScore',tries,365);} if (LoScore==0){setCookie('LoScore',tries,365);} if (tries