function suck_punct(str) { var out = str.replace(/[^\w]*/g,""); return(out); } // creates a string which php can eval as an array of: name => value function get_fields(/*...*/) { if(!arguments.length) return(''); var str = 'Array ('; for(var i=0; i "' + suck_punct(obj.value) + '",'; } } str = str.slice(0,-1) + ');'; return(str); } function chk_answer() { var post_data = new Array(); var ans_obj = document.getElementById("answer"); var tstr = get_fields('realname','sender_name','sender_email','nama_webmaster','webmaster','message'); var inpstr = Base64.encode(tstr); post_data["fields"] = inpstr; post_data["word"] = qword; post_data["answer"] = ans_obj.value; var ret = HTTP.blocking_post("_chk_answer.php",post_data); if(ret == "ok") return(true); else { alert("That's not the right answer!\nTry again!"); get_question(); ans_obj.value = ''; ans_obj.focus(); } return(false); } function get_question() { var post_data = new Array(); var ret = HTTP.blocking_post("_get_word.php",post_data); if(ret) { var x = eval("(" + ret + ")"); var obj = document.getElementById("question"); qword = x.word; obj.innerHTML = x.text + x.word; } } function get_another_question() { get_question(); var ans_obj = document.getElementById("answer"); ans_obj.value = ''; ans_obj.focus(); } function checkLoad() { get_question(); }

Contact us

Your Name Your Email
* *
Message *

To prevent spam - we ask you to complete the following sentence.
If you don't know to complete it, click on the sentence to get another one.
Even if you get it wrong, the data you entered will not disappear.
You get as many chances to get it right as you need.

 


1111 E. Wylie St.
Bloomington, IN 47401
PHONE/FAX (812) 333-0838
email:
Contact Ooolitic Music