// JavaScript Document
function confirm_all_yes() {
	
		document.getElementById("validate1").style.backgroundColor="";
		<!--document.getElementById("validate2").style.backgroundColor="";-->
		document.getElementById("validate3").style.backgroundColor="";
		document.getElementById("validate4").style.backgroundColor="";
		<!--document.getElementById("validate5").style.backgroundColor="";-->
		document.getElementById("validate6").style.backgroundColor="";
		document.getElementById("validate7").style.backgroundColor="";
		document.getElementById("validate8").style.backgroundColor="";
		document.getElementById("validate9").style.backgroundColor="";
		document.getElementById("validate10").style.backgroundColor="";
		document.getElementById("validate11").style.backgroundColor="";
		document.getElementById("validate12").style.backgroundColor="";
		
	
		var yesAtm = document.getElementById("yesAtm");
		var noAtm = document.getElementById("noAtm");
		var name = window.document.yesDivForm.name;
		var email = window.document.yesDivForm.email;
		var phone1 = window.document.yesDivForm.phone1;
		var phone2 = window.document.yesDivForm.phone2;
		var phone3 = window.document.yesDivForm.phone3;
		var address = window.document.yesDivForm.busAddress;
		var city = window.document.yesDivForm.city;
		var state = window.document.yesDivForm.state;
		var zip = window.document.yesDivForm.zip;
		var x = document.getElementById("averageTrans");
		var y = document.getElementById("bestTime");
		var z = document.getElementById("bestDays");
	

		if ( (yesAtm.checked == false) 
			&& (noAtm.checked == false)) {
				message0 = ("Do you own the ATM?"+"\n");
				makeStyle0 = document.getElementById("validate1").style.backgroundColor="#FFCC80";
		}
		else { 
				message0 = ("");
				makeStyle0 = ("");}	
				
		if( name.value == "") {	
			message1 = ("Please enter your name..."+"\n");	
			makeStyle1 = document.getElementById("validate6").style.backgroundColor="#FFCC80";
		}		
		else { 
				message1 = (""); 
				makeStyle1 = ("");
		}
		if( email.value == "") {
			message2 = ("Please enter your email..."+"\n");
			makeStyle2 = document.getElementById("validate7").style.backgroundColor="#FFCC80";
		}		
		else { 
				message2 = ("");
				makeStyle2 = ("");
		}
		if( (phone1.value == "") && (phone2.value == "") && (phone3.value == "")) {
			message3 = ("Please enter your entire phone #"+"\n");
			makeStyle3 = document.getElementById("validate8").style.backgroundColor="#FFCC80";
			}		
		else { message3 = (""); 
				makeStyle3 = ("");
		}
		if( address.value == "") {
			message4 = ("Please enter your address..."+"\n");
			makeStyle4 = document.getElementById("validate9").style.backgroundColor="#FFCC80";
			}		
		else { 
				message4 = ("");
				makeStyle4 = (""); 
		}
		if( city.value == "") {
			message5 = ("Please enter your city..."+"\n");
			makeStyle5 = document.getElementById("validate10").style.backgroundColor="#FFCC80";
			}		
		else { 
				message5 = ("");
				makeStyle = ("");
		}
		if( state.value == "") {
			message6 = ("Please enter your state..."+"\n");
			makeStyle6 = document.getElementById("validate11").style.backgroundColor="#FFCC80";
			}		
		else { 
				message6 = ("");
				makeStyle6 = ("");
		}
		if( zip.value == "") {
			message7 = ("Please enter your zip..."+"\n");
			makeStyle7 = document.getElementById("validate11").style.backgroundColor="#FFCC80";
			}		
		else { 
				message7 = ("");
				makeStyle7 = ("");
		}
		if (x.selectedIndex==0) { 
			message8 = ("Please select a value for average ATM transactions"+"\n");
			makeStyle8 = document.getElementById("validate4").style.backgroundColor="#FFCC80";
		}
		else { 
				message8 = ("");
				//makeStyle8 = ("");
		}		
		if (y.selectedIndex==0) {
			message9 = ("Please select the best time to contact you"+"\n");
			makeStyle9 = document.getElementById("validate12").style.backgroundColor="#FFCC80";
			}
		else { 
				message9 = ("");
				//makeStyle9 = ("");
		}
		if (z.selectedIndex==0) {
			message10 = ("Please select the best day(s) of the week to contact you"+"\n");
			makeStyle10 = document.getElementById("validate12").style.backgroundColor="#FFCC80";
		}
		else { 
				message10 = ("");
				//makeStylel0 = ("");
		}
		
		
		
		<!--if ( (document.getElementById("yesAtm").checked == false) && (document.getElementById("noAtm").checked == false) ) {	alert ("Do you own the ATM? - Please answer...");	document.getElementById("yesAtm").focus();	document.getElementById("validate1").style.backgroundColor="#FFCC80";	return false;	}-->
				
		<!--if ( (document.getElementById("yesContract").checked == false) && 	   	 (document.getElementById("noContract").checked == false) && (document.getElementById("dunnoContract").checked == false) ) {	alert ("Do you have a processing contract? - Please answer...");			document.getElementById("yesContract").focus();			document.getElementById("validate2").style.backgroundColor="#FFCC80"; return false;	}-->
	
		<!--var chks = document.getElementsByName("location[]"); var hasChecked = false; for (var i = 0; i < chks.length; i++) {	if (chks[i].checked) {	hasChecked = true;	break;	}}	if (!hasChecked) { alert("Please select at least one ATM location");	chks[0].focus(); document.getElementById("validate3").style.backgroundColor="#FFCC80";	return false;	}-->
				
			
			
		<!--var q = document.getElementById('q1[]'); for (var i = 0; i < q.length; i++) { if(q[i].value == "") {								alert("Please fill out all contact info");	return false;	}}
	
			
		
		
		<!--var x = document.getElementById("averageTrans"); 	if (x.selectedIndex==0) { alert ("Please select a value for average ATM transactions"); x.focus(); document.getElementById("validate4").style.backgroundColor="#FFCC80";	return false;		}
		
		<!--if ( (document.getElementById("atmOwn").checked == false) && 	   	 (document.getElementById("noOwn").checked == false) ) {	alert ("Are you interested in ATM owership or free placement? - Please answer...");	document.getElementById("atmOwn").focus(); 			document.getElementById("validate5").style.backgroundColor="#FFCC80"; return false;	}-->	
			
		<!--if (window.document.yesDivForm.name.value == "") {	alert ("The name field is empty - Please enter your name...");	window.document.yesDivForm.name.focus(); document.getElementById("validate6").style.backgroundColor="#FFCC80"; return false;		}
				
		<!--if (window.document.yesDivForm.email.value == "") {	alert ("The email field is empty - Please enter an email address..."); window.document.yesDivForm.email.focus(); document.getElementById("validate7").style.backgroundColor="#FFCC80";	return false;	}
		
		<!--if (window.document.yesDivForm.phone1.value == "") {alert ("The first phone field is empty - Please enter the first three digits of your phone number...");	window.document.yesDivForm.phone1.focus();		document.getElementById("validate8").style.backgroundColor="#FFCC80";	return false;	}

		<!--if (window.document.yesDivForm.phone2.value == "") { alert ("The second phone field is empty - Please enter the middle three digits of your phone number..."); 	window.document.yesDivForm.phone2.focus();		document.getElementById("validate8").style.backgroundColor="#FFCC80"; return false;		}
		
		<!--if (window.document.yesDivForm.phone3.value == "") {	alert ("The third phone field is empty - Please enter the last four digits of your phone number...");	window.document.yesDivForm.phone3.focus();	document.getElementById("validate8").style.backgroundColor="#FFCC80";	return false;		}-->
		
		<!--if (window.document.yesDivForm.busAddress.value == "") {	alert ("The address field is empty - Please enter your address...");		window.document.yesDivForm.busAddress.focus();		document.getElementById("validate9").style.backgroundColor="#FFCC80";	return false;	}-->
		
		<!--if (window.document.yesDivForm.city.value == "") {		alert ("The city field is empty - Please enter a city...");		window.document.yesDivForm.city.focus();		document.getElementById("validate10").style.backgroundColor="#FFCC80";	return false;		}-->
		
		<!--if (window.document.yesDivForm.state.value == "") {		alert ("The state field is empty - Please enter a state...");		window.document.yesDivForm.state.focus();		document.getElementById("validate11").style.backgroundColor="#FFCC80";		return false;	}-->
		
		<!--if (window.document.yesDivForm.zip.value == "") {alert ("The zip field is empty - Please enter a zip...");			window.document.yesDivForm.zip.focus();		document.getElementById("validate11").style.backgroundColor="#FFCC80";			return false;		}-->
		
		<!--var y = document.getElementById("bestTime")		if (y.selectedIndex==0) {		alert ("Please select the best time to contact you");		y.focus();	document.getElementById("validate12").style.backgroundColor="#FFCC80";			return false;		}-->
		
		<!--var z = document.getElementById("bestDays");	if (z.selectedIndex==0) {			alert ("Please select the best day(s) of the week to contact you");	z.focus();			document.getElementById("validate12").style.backgroundColor="#FFCC80";	return false;	}-->
		
		<!--else {return true;			}-->
		
		// if errors, display, else proceed
		
		var chks = document.getElementsByName("location[]"); 
		var hasChecked = false; 
		for (var i = 0; i < chks.length; i++) {	
		if (chks[i].checked) {	
		hasChecked = true;	break;	}}	
		if (!hasChecked) { alert("Please select at least one ATM location");
		chks[0].focus(); document.getElementById("validate3").style.backgroundColor="#FFCC80";
		return false; }
		
		
		if ( (message0 == "") && (message1 == "") && (message2 == "") && (message3 == "")
		&& (message4 == "") && (message5 == "") && (message6 == "") && (message7 == "") 
		&& (message8 == "") && (message9 == "") && (message10 == "") ) {
		return true;
		}
		else {
		alert(message0+message1+message2+message3+message4+message5+message6+message7+message8+message9+message10);
		return false;
		}
				
			
}//End validation function
	
		
function clickYes() {
var fillOutDiv = document.getElementById('fillOutDiv');
var required_fields = document.getElementById('required_fields');
var question_div1 = document.getElementById('question_div1');
var location_div= document.getElementById('location_div');
var multiple_div = document.getElementById('multiple_div');
var userInfoDiv = document.getElementById('userInfoDiv');
var footerDiv = document.getElementById('footerDiv');
var submitDiv = document.getElementById('submitDiv');

fillOutDiv.style.display = 'none';//hide buttons
required_fields.style.display = 'block';
question_div1.style.display = 'block';
location_div.style.display = 'block';
multiple_div.style.display = 'block';
userInfoDiv.style.display = 'block';
footerDiv.style.display = 'block';
submitDiv.style.display = 'block';
}

function otherYesTextEnabled() {
var otherYes = document.getElementById('otherYes')//checkbox
var otherYesText = document.getElementById('otherYesText')//textbox
}

function toggleTB(what){
if(what.checked){document.yesDivForm.otherYesText.disabled=0}
else{document.yesDivForm.otherYesText.disabled=1}
}
function toggleMultiYes(what){
if(what.checked){document.yesDivForm.howMany.disabled=0}
else{document.yesDivForm.howMany.disabled=1}
}
function toggleMultiNo(what){
if(what.checked){document.yesDivForm.howMany.disabled=1}
//else{document.yesDivForm.howMany.disabled=1}
}
function toggleOtherUrgency() {
var urgency =  document.getElementById('urgencyAtm');
var urgencyText = document.getElementById('urgencyAtmText');
if(urgency.value == "Other") {
urgencyText.disabled = false;
urgencyText.value = '';
urgencyText.focus();
	}
else {urgencyText.disabled = true;
urgencyText.value = 'Other';
	}
}//end function