///////////////////////
///////////////////////	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 
///////////////////////

trying='';
destinationHTML='';
quickchecker='';
answer='no';

function top10(val) { 

if (val==10) {trying='blank.html';}

else {
workingLyr.visibility='visible';
trying='in.asp?testthis='+endvalue; }

	if (document.layers) {hiddenLyr.load(trying, (available_width*0.55));}
	else {
		if (document.all) {eval('parent.ieContent.document.frames["ieframe"].document.location = trying');}
		else {eval("ns7input.src = trying");}
		}
if (val!=10) {timedresponse();}
}

function loademup(targetdiv) { // only relevant for ie and ns6+, call made from .asp
destinationHTML=eval(targetdiv+'HTML');
	if (document.all) {
		eval('parent.destinationHTML.innerHTML = parent.ieContent.document.frames["ieframe"].document.body.innerHTML');}
	else {
		eval("hiddenHTML.innerHTML = window.frames.ieframe.document.getElementById('body').innerHTML");}
//if (!document.all) {
top10(10);
//}  // clears the possibility of errors on refresh - cant remember why...
}


function timedresponse() {

if (quickchecker=="finished") {
stoptime();  
workingLyr.visibility='hidden';

	if (answer=="no") {bad_result();}
	else
	if (answer=="yes") {good_result();}

	quickchecker='';
	answer='no';

}
else

{testtimer = setTimeout("timedresponse()", 500);}
}


function stoptime() {clearTimeout(testtimer);}



