// JavaScript Document
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);       
var c = a + b

function DrawBotBoot()
{
	document.write("This question is for testing whether you are a human visitor to prevent automated spam submissions.<br><br><strong>Math Question:</strong><br>");
	document.write("What is "+ a + " + " + b +"? ");
	document.write("<input id='BotBootInput' type='text' maxlength='2' size='2' class='input'/><br>Solve this math problem and enter the result. For 1+3, enter 4. <div id='BotBootDisp' style='color:red'></div>");
	document.forms[0].Submit.disabled=false;
	//  <input id='Button1' type='button' class='input' value='Check value' onclick='ValidBotBoot();'/>
}    
function ValidBotBoot(){
	var d = document.getElementById('BotBootInput').value;
	var bbdisp = document.getElementById("BotBootDisp");
	if (d == c){
	// document.forms[0].Submit.disabled=false;
	bbdisp.innerHTML = '';
	// document.forms[0].submit();
	return true;
	}
	else
	{
	// document.forms[0].Submit.disabled=true;
	bbdisp.innerHTML = 'Your answer is incorrect, please re-enter.';
	return false;
	}
}