function isOneSelected(form){

}

function validateVolunteerForm(form) {
var email_addr = form.Email.value;
	if (form.FName.value == "") { 
	   alert("Please enter your First Name.");
	   form.FName.style.backgroundColor="#ffff00"; 
	   form.FName.focus(); 
	   return false; 
	}
	if (form.FName.value != ""){
	 form.FName.style.backgroundColor="#ffffff";
	}
	
	if (form.LName.value == "") { 
	   alert("Please enter your Last Name.");
	   form.LName.style.backgroundColor="#ffff00"; 
	   form.LName.focus(); 
	   return false; 
	}
	
	if (form.LName.value != ""){
		form.LName.style.backgroundColor="#ffffff";
	}
	
	if (form.Address1.value == "") { 
	   alert("Please enter your address.");
	   form.Address1.style.backgroundColor="#ffff00"; 
	   form.Address1.focus(); 
	   return false; 
	   }
	if (form.Address1.value != ""){
	 form.Address1.style.backgroundColor="#ffffff";
	 }
	if (form.City.value == "") { 
	   alert("Please enter your city.");
	   form.City.style.backgroundColor="#ffff00"; 
	   form.City.focus(); 
	   return false; 
	   }
	if (form.City.value != ""){
	 form.City.style.backgroundColor="#ffffff";
	 }
	 
	if (form.State.value == "") { 
	   alert("Please enter your state.");
	   form.State.style.backgroundColor="#ffff00"; 
	   form.State.focus(); 
	   return false; 
	   }
	if (form.State.value != ""){
	 	form.State.style.backgroundColor="#ffffff";
	}
	
	if (form.Zip.value == "") { 
	   alert("Please enter your zip.");
	   form.Zip.style.backgroundColor="#ffff00"; 
	   form.Zip.focus(); 
	   return false; 
	}
	
	if (form.Zip.value != ""){
		form.Zip.style.backgroundColor="#ffffff";
	}
	
	if (form.Country.value == "") { 
	   alert("Please enter your country.");
	   form.Country.style.backgroundColor="#ffff00"; 
	   form.Country.focus(); 
	   return false; 
	}
	
	if (form.Country.value != ""){
		form.Country.style.backgroundColor="#ffffff";
	}

	if ((email_addr.length<6) || (email_addr.indexOf(",")>=0) || 
	(email_addr.indexOf(";")>=0) || (email_addr.indexOf(":")>=0) || 
	(email_addr.indexOf("/")>=0) || (email_addr.indexOf(" ")>=0) || 
	(email_addr.indexOf("!")>=0) || (email_addr.indexOf("?")>=0) || 
	(email_addr.indexOf("@")<=0) || (email_addr.indexOf("@") != 
	email_addr.lastIndexOf("@")) || 
	(email_addr.lastIndexOf(".")<email_addr.indexOf("@")) || 
	(email_addr.lastIndexOf(".")+3>email_addr.length)) {
		alert("Please enter a valid email address.");
		form.Email.style.backgroundColor="#ffff00"; 
        form.Email.focus(); 
		return false; 
	}
		
	
 
	
	// CREDIT CARD VALIDATION
	if (form.CC_Number.value == "") { 
	   alert("Please enter your Credit Card Number.");
	   form.CC_Number.style.backgroundColor="#ffff00"; 
	   form.CC_Number.focus(); 
	   return false; 
	   }
	if (form.CC_Number.value != ""){
	 form.CC_Number.style.backgroundColor="#ffffff";
	 }

	if (form.CC_CSC.value == "") { 
	   alert("Please enter your Card Security Code.");
	   form.CC_CSC.style.backgroundColor="#ffff00"; 
	   form.CC_CSC.focus(); 
	   return false; 
	   }
	if (form.CC_CSC.value != ""){
	 form.CC_CSC.style.backgroundColor="#ffffff";
	 }


}
function toggle(id, id2){
	// Reference the objects Im going to be using for this function ...
	
	var obj = document.getElementById(id)
	var obj2 = document.getElementById(id2)
	// This is how to dynamically retrieve an object from the page ...
	var a = document.getElementById("a_"+id)
	
	// Check to see the current value of style.display ... and set it to the opposite of what it currently is 
	if (obj.style.display == "none"){
		obj.style.display = ""
		// If we're making the div visible, change the link to allow the user to hide it 
		//a.innerHTML = "Hide Object"
	} else {
		obj.style.display = "none"
		obj2.value = '';
		// If we're making the div hidden, change the link to allow the user to show it again
		//a.innerHTML = "Show Object"
	}
}
function resetVolForm(form){
	 form.FName.style.backgroundColor="#ffffff";
	 form.LName.style.backgroundColor="#ffffff";
	 form.Address1.style.backgroundColor="#ffffff";
	 form.Address2.style.backgroundColor="#ffffff";
	 form.City.style.backgroundColor="#ffffff";
	 form.State.style.backgroundColor="#ffffff";
	 form.Zip.style.backgroundColor="#ffffff";
	 form.Country.style.backgroundColor="#ffffff";
	 form.Email.style.backgroundColor="#ffffff";
	 form.CC_Number.style.backgroundColor="#ffffff";
	 form.CC_CSC.style.backgroundColor="#ffffff";
}
function exitVolForm(){
	if(confirm("Exit without saving?")){
		document.location.href='/index.php';
	} 
}
function show_sReq(op){
	document.getElementById('sReq').style.display='none';
	//document.form.Service_Reason.focus();
	if(op == "show"){
		document.getElementById('sReq').style.display="block";
	  } else {
	  	document.getElementById('sReq').style.display='none';
	  }
}
function agree(){
	document.getElementById('enterName').style.display="block";
	document.getElementById('Agree_Signature').focus();	
}
function enableSubmit(){
	//alert("typing");
	document.getElementById('Contine').disabled = false;;	
}
