///////////////////////
///////////////////////	silent form entry demonstration script version 1.25.03.05
/////////////////////// 
/////////////////////// original concept content and design
/////////////////////// © digsby wyscher march mmv
/////////////////////// all rights reserved
/////////////////////// digsby@sonik-systems.com
/////////////////////// 
/////////////////////// no original part of this script should be copied, 
/////////////////////// used or reprinted without 
/////////////////////// express permission 
///////////////////////


//////////////////////////////////////////////////////////
//////////////***     you could read this    ***//////////
//////////////*** but it would spoil the fun ***//////////
//////////////////////////////////////////////////////////

midle='';


scum= new Array();
scum[1]='microsoft';


witches= new Array();
witches[1]='spell';
witches[2]='potion';
witches[3]='toad';
witches[4]='wand';
witches[5]='stardust';
witches[6]='broomstick';
witches[7]='cauldron';
witches[8]='curse';

people=new Array();
people[1]='witch';
people[2]='warlock';
people[3]='sorcery';
people[4]='magician';
people[5]='familiar';
people[6]='wizard';

riddle = new Array();
riddle[1]='riddle';
riddle[2]='enigma';
riddle[3]='mystery';
riddle[4]='conumdrum';
riddle[5]='rebus';
riddle[6]='hidden';
riddle[7]='anagram';

mumbo= new Array();
mumbo[1]='alchemy';
mumbo[2]='subrosa';
mumbo[3]='ambries';
mumbo[4]='apocrypha';
mumbo[5]='cabala';
mumbo[6]='camorra';
mumbo[7]='carbonari';
mumbo[8]='vehmgericht';
mumbo[9]='messoramia';
mumbo[10]='mazzini';
mumbo[11]='sphinx';
mumbo[12]='oracle';


computer= new Array();
computer[1]='science';
computer[2]='java';
computer[3]='javascript';
computer[4]='asp';
computer[5]='code';
computer[6]='encryption';
computer[7]='data';
computer[8]='information';
computer[9]='info';
computer[10]='timbrology';

magic=new Array();
magic[1]='password';
magic[2]='pass';
magic[3]='enter';
magic[4]='magic';
magic[5]='passpartout';
magic[6]='key';
magic[7]='clue';
magic[8]='hokus';
magic[9]='pokus';
magic[10]='permit';
magic[11]='allow';


skills = new Array();
skills[1]='intelligence';
skills[2]='wisdom';
skills[3]='cleverness';
skills[4]='perception';
skills[5]='judgement';
skills[6]='gumption';
skills[7]='acumen';
skills[8]='cunning';
skills[9]='brains';
skills[10]='wit';
skills[11]='patience';
skills[12]='sophistication';
skills[13]='provision';
skills[14]='foresight';
skills[15]='knowledge';
skills[16]='ingenuity';
skills[17]='wits';
skills[18]='confidence';


function bad_result() {

if (endvalue=='clean' && xxx>0) {
counter=0;
endvalue='';
xxx=(available_width/clipval)-20; 
run_hint('out');}

else

if (endvalue=='hint') {
showhint();}
else

{
rnd = Math.round(5*Math.random());
rnd3 = Math.round(100*Math.random());
if (times>1) {
if (rnd==2) {suffix='.';}
if (rnd<2) {suffix=' either.';}
if (rnd>3) {suffix='. Sorry!';}
}

rnd1 = Math.round(30*Math.random());
var returnstring=endvalue.toLowerCase();

if (rnd1>0 && rnd1<3) {prefix='No, it\'s not';}

if (rnd1==29) {higher();prefix='';suffix='? Hmm.';}
if (rnd1==27||rnd1==28) {higher();prefix='';suffix=' is not going to '+(rnd<2?'work.':'get the results you require.');}
if (rnd1==25||rnd1==26) {higher();prefix='';suffix=' still leaves '+(rnd<3?'you in the dark.':'me cold.');}
if (rnd1==24) {higher();prefix='';suffix=' back to you, too!';}

if (rnd1==22 || rnd1==23) {prefix='Sorry, but'; suffix=' is '+(rnd<2?'not the right answer':'incorrect')+'.';}

if (rnd1==20 || rnd1==21) {prefix='You should consider an answer '+(rnd<2?'a little':'')+(rnd<3?' different from':'other than');suffix='.';}

if (rnd1==18 || rnd1==19) {prefix='I\'m afraid that';suffix=' has '+(rnd<3?'nothing':'little')+' to do with it.';}

if (rnd1==16 || rnd1==17) {prefix='I don\'t think you\'ve got the hang of this -';suffix=(rnd>2?' makes no sense.':' is miles away.');}

if (rnd1==15 || rnd1==14) {prefix=(rnd>2?'A surprising effort, but':'An interesting choice, but'); 
suffix=(rnd<2?' simply does not cut the mustard.':' fails to stir me.');}

if (rnd1==13) {prefix='Couldn\'t be further from '+(rnd>2?'reality.':'the truth.'); higher();suffix=' is way out.';}

if (rnd1==12 || rnd1==11) {endvalue='';prefix='If I said '+(rnd<3?'something similar,':'the same,');suffix='would it mean anything more to you?';}

if (rnd1==10 || rnd1==9) {prefix='Have you nothing '+(rnd<2?'preferable to':'better than'); suffix='?';}
if (rnd1==8 || returnstring=='whats' || returnstring=='obvious' ){ higher();prefix='';suffix='<font color=white>?</font><br>I suppose you think that\'s '+(rnd>2?'an intelligent reply?':'clever, eh?');}

if (rnd1==7 || rnd1==6) {prefix='You\'ll have to try a lot harder than';
	if (rnd<2 && times>1) {suffix=' as well.';}
	}
if (rnd1==4 || rnd1==5) {prefix='Perhaps you should '+(rnd<2?'try':'contemplate trying')+' something '+(rnd<3?'different from':'other than'); suffix='?';}
if (rnd1==3 && times>1) {prefix='Nor is it';}
if (rnd1==0) {prefix='Nope, its not';}


////counting

if (counter<4&& rnd1>14) {lower();prefix='Try something '+(rnd<3?'longer':'more substantial')+' than ';suffix='.';}


//abstract
if (returnstring=='planning' ||returnstring=='mimicry' || returnstring=='amnesty' ) {lower();prefix='A cunning answer. Although';suffix=' is wrong, there\'s still some hope for you.';}

if (returnstring.indexOf('cunt')!= -1 || returnstring.indexOf('bastard')!= -1 || returnstring.indexOf('shit')!= -1 || returnstring.indexOf('fuck') != -1|| returnstring.indexOf('wank') != -1|| returnstring.indexOf('piss') != -1) { 
endvalue='';prefix='Using that sort of language will get you nowhere.';suffix='';}


if (returnstring=='security' || returnstring=='secrecy' || returnstring=='devious' || returnstring=='secret' ) {lower();prefix=(rnd1<7?'An admirable effort':'Nice try')+', but'; suffix=(rnd<3?' is a bit too obvious.':' is not that devious.');}


if (returnstring=='help' || returnstring=='aid' || returnstring=='sos') {endvalue='';prefix=(rnd<3?'As much as I\'d like to, ':'No, ')+'I can\'t';suffix=(rnd1>13?' assist':' help')+' you.';

	if (rnd3>50) {suffix=suffix+'<br>Perhaps you could try \'hint\' instead?';}
}

if (returnstring=='hello' || returnstring=='hi' || returnstring=='hiya' ||returnstring=='greetings' ) {endvalue='';prefix=(rnd1>10?'Hi there.':'Greetings.');suffix=(rnd<2?' How are things?':' I hope you are well.');}

if (returnstring=='begone' || returnstring=='goodbye' ||returnstring=='farewell'||returnstring=='bye' ||returnstring=='adios' ||returnstring=='later' ) {endvalue='';prefix=(rnd1>10?'I\'m going nowhere,':'I \'m in no rush,');suffix=(rnd<2?'where\'s the fire?':'stay for a bit longer.');}

if (returnstring=='asthmatic' || returnstring=='thematic' || returnstring=='matthew' ) {endvalue='';prefix='Anagrams, eh? Bad choice.';suffix='';}

if (returnstring=='artificial' || returnstring=='robot' ||returnstring=='robots' || returnstring=='fake' ) {endvalue='';prefix='Built by robots.';suffix='';}



//q and a
if (returnstring=='yes' ||returnstring=='yep' ||returnstring=='ok' ||returnstring=='answer'||returnstring=='tellme'||returnstring=='yowsa' ) {endvalue='';prefix=(rnd<3?'Is that your answer?':'No, \'fraid not.');suffix=(rnd<3?'Look closer at the question.':'C\'mon, use your noodle.');}

if (returnstring=='no'||returnstring=='nope') {endvalue='';prefix=(rnd1<13?'Is that your best answer?':'No?');suffix=(rnd>2?'Read the question.':'Try and be more positive.');}


if (returnstring=='why'||returnstring=='pourquoi') {endvalue='';prefix=(rnd1>14?'Is a crooked letter?':'Why not?');suffix=(rnd<4?'':'Answer me that?');}

if (returnstring=='huh'||returnstring=='wtf') {endvalue='';prefix='Never answer one question with another.';suffix='';}

if (returnstring=='whatever'||returnstring=='rubbish'||returnstring=='crap') {endvalue='';prefix='Don\'t be so dismissive.';suffix='';}

//ai
if (returnstring=='soul' ||returnstring=='life' ||returnstring=='heart' ||returnstring=='consciousness' ) {lower();prefix=(rnd<3?'There may be some spark':'A beating heart does lie within')+', but';suffix=' does not describe it '+(rnd1>10?'adequately.':'properly.');}

//tech terms
for (i=1;i<11;i++) {
if (returnstring==computer[i]&&rnd1>8) {lower();prefix=(rnd<3?'Technically speaking ':'')+'I do use';suffix=', but it is not what you seek.';}
}

//witches
for (i=1;i<9;i++) {
if (returnstring==witches[i]&&rnd1>5) {endvalue='';prefix='Words of '+(rnd<3?'magic':'power');suffix='have no '+(rnd<3?'power.':'magic.');}
}

//people
for (i=1;i<8;i++) {
if (returnstring==people[i]&&rnd1>5) {lower;prefix='No, but what would a';suffix=' say?';}
}

//timbrology
for (i=1;i<8;i++) {
if (returnstring==riddle[i]&&rnd1>4) {endvalue='';prefix='Yes, it is confusing,';suffix='but such is timbrology.';}
}

//skills
for (i=1;i<19;i++) {
if (returnstring==skills[i]) {lower(); prefix=(rnd<3?'I have loads of':'I appreciate');suffix=', but it is not '+(rnd1<10?'the right answer.':'what you need.');}
}

//mumbo
for (i=1;i<13;i++) {
if (returnstring==mumbo[i] && rnd1>7) {endvalue=''; prefix=(rnd<3?'None of that hokus pokus,':'None of that ancient claptrap,');suffix=' thank you.';}
}

//magic words
for (i=1;i<12;i++) {
if (returnstring==magic[i]&&rnd>0) {endvalue='';prefix='No, but you\'re definitely getting '+(rnd<3?'nearer to the answer.':'closer.');suffix='';}
}

if (returnstring=='kimota' ||returnstring=='abracadabra' ||returnstring=='sesame' ) {endvalue='';prefix=(rnd<3?'Very warm.':'You\'re nearly there.');suffix='';}

if (returnstring=='please' || returnstring=='nothing' ||returnstring=='presto' || returnstring=='open') {endvalue='';prefix=(rnd1<10?'Getting warmer.':'Right idea, wrong answer.');suffix='';}

if (returnstring=='friend') {endvalue='';prefix='This is not the Lord of the Rings.';suffix='';}
if (rnd1>10 &&(returnstring=='who'|| returnstring=='how')) {endvalue='';prefix='Do you always answer one question with another?';suffix='';}
if (rnd1>10 &&(returnstring=='lick'|| endvalue.toLowerCase()=='kiss'|| endvalue.toLowerCase()=='sex')) {endvalue='';prefix='There is no prospect of intimacy between us.';suffix='';}
if (returnstring=='shy') {lower();prefix='Don\'t say';suffix=' either.';}
if (returnstring=='hey') {endvalue='';prefix='Presto!';suffix='';}
if (returnstring=='death') {endvalue='';prefix='As opposed to life?';suffix='';}
if (returnstring=='god'||returnstring=='digsby'||returnstring=='wyscher') {endvalue='';prefix='You speak of the Creator.';suffix='';}
if (returnstring=='silent'||returnstring=='form'||returnstring=='entry'||returnstring=='demo') {endvalue='';prefix='It\'s unlikely to be a word that\'s already visible.';suffix='';}
if (returnstring=='welcome') {endvalue='';prefix='\'Tis I who should be welcoming you.';suffix='';}
if (returnstring=='sorry'&& rnd<3) {endvalue='';prefix='Don\'t be.';suffix='';}
if (returnstring=='what') {endvalue='';prefix='Are you deaf?';suffix='';}
if (returnstring=='really' && rnd1>7) {endvalue='';prefix='Truly!';suffix='';}
if (returnstring=='noodle' && rnd1>7) {endvalue='';prefix='Yes! Your melon.';suffix='';}
if (returnstring=='melon' && rnd1>7) {endvalue='';prefix='Lemon.';suffix='';}
if (returnstring=='hell' && rnd1>7) {endvalue='';prefix='Hath no fury.';suffix='';}
if (returnstring=='madly' && rnd1>10) {endvalue='';prefix='Deeply!';suffix='';}
if (returnstring=='money' && rnd1>10) {endvalue='';prefix='Makes the world go round.';suffix='';}
if (returnstring=='love' && rnd1<10) {endvalue='';prefix='Conquers all.';suffix='';}
if (returnstring=='fear' && rnd1>4) {endvalue='';prefix='Is the mind killer.';suffix='';}
if (returnstring=='silence' && rnd1>4) {endvalue='';prefix='Is golden.';suffix='';}
if (returnstring=='power' && rnd1>10) {endvalue='';prefix='Corrupts.';suffix='';}
if (returnstring=='monkey' || returnstring=='monkeys' || returnstring=='chimps' ) {endvalue='';prefix='As in Hamlet and a typewriter?';suffix='A valiant effort indeed.';}

if (returnstring=='mum' && rnd1>6) {endvalue='';prefix='Is certainly the word, but no, you\'re still wrong.';suffix='';}
if ((returnstring=='question'||returnstring=='idea')&& rnd1>6) {endvalue='';prefix='Yes?';suffix='';}
if ((returnstring=='stop' ||returnstring=='halt')&& rnd1>6) {endvalue='';prefix='I '+(rnd>2?'wish I could.':'can\'t.');suffix='';}
if (returnstring=='peace'&& rnd1>6) {endvalue='';prefix='Goodwill to all.';suffix='';}
if ((returnstring=='start'|| returnstring=='begin')&& rnd1>6) {endvalue='';prefix='It\'s already begun.';suffix='';}
//if (returnstring=='answer') {endvalue='';prefix='That\'s what I\'m looking for.';suffix='';}

if (returnstring=='too many') {lower(); prefix='You have selected ';suffix=' characters.';}

if (rnd3>65 && rnd<4 && returnstring!='what') {suffix=suffix+' OK?';}
	else
	{
		if (rnd3>70 && rnd<3) {suffix=suffix+' Don\'t be too concerned.';}
		else
			{if (rnd3>20 && rnd<2) {suffix=suffix+' Keep calm.';}
}}

if (rnd1>16 && rnd3>70) { suffix=suffix+' Please try again.'}
else
{
if (rnd1>11 && rnd3<45) { suffix=suffix+' Have another go.'}
else
{if (rnd1>4 && rnd3<75) {} else {suffix=suffix+' Have another crack at it.'}
}
}
maintext='<table height='+available_height+' width='+available_width+' border=0 ><tr><td align=center valign=center><font color=orangered face=arial><font size=+3><br><br></font><font size=+2><br><br><b>'+prefix+' <font color=white>'+endvalue+'</font>'+suffix+'</td></tr></table>';
destination=responseHTML;
magiccontents();

counter=0;
endvalue='';

if (rnd1>3) {prefix='No, its not';}
else
{prefix='Its not going to be';}
suffix='.';
scrolltimer = setTimeout("query()", 25000);
}
}

function higher() {endvalue=endvalue.substr(0,1).toUpperCase()+endvalue.substr(1);}
function lower(){endvalue=endvalue.toLowerCase();}

function query() {
clearTimeout(scrolltimer);

rnd2 = Math.round(9*Math.random());
if (rnd2==0) {midle='';}
if (rnd2==1) {midle='Have you nothing to say?';}
if (rnd2==2) {midle='I\'m waiting...';}
if (rnd2==3) {midle='C\'mon, have a go...';}
if (rnd2==4) {midle='It\'s not as hard as you think...';}
if (rnd2==5) {midle='In your own time...';}
if (rnd2==6) {midle='Anything\'ll do to get you started...';}
if (rnd2==7) {midle='Don\'t be shy...';}
if (rnd2==8) {midle='Whenever you\'re ready...';}
maintext='<table height='+available_height+' width='+available_width+' border=0 ><tr><td align=center valign=center><font color=orangered face=arial><font size=+3><br><br></font><font size=+2><br><br><b>'+midle+'</td></tr></table>';
destination=responseHTML;
magiccontents();

scrolltimer = setTimeout("query1()", 5000);

}
function query1() {
clearTimeout(scrolltimer);
maintext='<table height='+available_height+' width='+available_width+' border=0 ><tr><td align=center valign=center><font color=orangered face=arial></td></tr></table>';
destination=responseHTML;
magiccontents();

scrolltimer = setTimeout("query()", 30000);

}

function good_result() {


//alert(quickchecker);

if (answer=="yes") {
//if (answer=="yes" && GetCookie('open')=="true") {
DelCookie('open');



maintext='<table height='+available_height+' width='+available_width+' border=0 ><tr><td align=center valign=center><font color=white face=arial><font size=+3><br><br></font><font size=+2><br><br><b>Of course it is, what took you so long<br>If this was not a demo, you would now have access to the site.</td></tr></table>';
destination=responseHTML;
magiccontents();
counter=0;
endvalue='';
}}

