function validateEmailAddress(emailAddress) {

	var at = emailAddress.indexOf('@');
        var dot = emailAddress.indexOf('.');
         
        if(at == -1 || dot == -1 || dot == 0 || dot == emailAddress.length - 1) {
        
        	return false;
        	
        } else {
        
        	return true;
        	
        }
 
}

function validateSearch(oForm) {

	var searchTerm;

	searchTerm = oForm.searchTerm.value;

	if(searchTerm == "") {

		alert("Please enter a word or phrase to search on.");

		return false;

	} else {

		return true;

	}

 }
 
function application() {
 
	var left = window.screen.availWidth/2 - 275;
 	var top = window.screen.availHeight/2 - 330;
 
 	var winStats = "buttons=no,location=no,scrollbars=yes,menubar=no,resizable=no,titlebar=no,status=no,width=550,height=660,left=" + left + ",top=" + top;
 
 	//var winStats = "";
 	var winApplication = window.open("applications/enterEditIncident.asp?catId=1", "winApplication", winStats, true);
 	winApplication.focus();
 
}
 
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);       
var c = a + b
 
function DrawBotBoot() {

	document.write("What is "+ a + " + " + b +"? ");
        document.write("<input class='frmEntryText' style='width:40px;height:auto' name='BotBootInput' id='BotBootInput' type='text' maxlength='2' size='2'/>");

}    

function ValidBotBoot() {

	var d = document.getElementById('BotBootInput').value;
	if (d == c) return true;        
        return false;
         
}
