function FormVaildateContact(f){
	MM_validateForm('FirstName','','R','LastName','','R','Email','','RisEmail');
	if(!document.MM_returnValue) return document.MM_returnValue;
	
	// this is a list of checkboxes of which we want people to select at least one
	var MoreInfoCheckBoxes = new Array(f.ContactMe_EMAIL,f.ContactMe_PHONE)
	
	var AtLeastOneMoreInfoChecked = false
	//loop thru the list
	for (var i = 0;i< MoreInfoCheckBoxes.length;i++){
			if (!AtLeastOneMoreInfoChecked && MoreInfoCheckBoxes[i].checked) {
				AtLeastOneMoreInfoChecked = true
			}
	}
	
	if (!AtLeastOneMoreInfoChecked) {
		// if none are selected
		alert("Please specify how you would like to be contacted.")
		return false;
	}
	
		if (f.ContactMe_PHONE.checked) {
		MM_validateForm('Telephone1','','R');
		if(!document.MM_returnValue) return document.MM_returnValue;
	}
	
	// this is a list of checkboxes of which we want people to select at least one
	var MoreInfoCheckBoxes = new Array(f.InfAbt_BF,f.InfAbt_HF,f.InfAbt_ST)
	
	var AtLeastOneMoreInfoChecked = false
	//loop thru the list
	for (var i = 0;i< MoreInfoCheckBoxes.length;i++){
			if (!AtLeastOneMoreInfoChecked && MoreInfoCheckBoxes[i].checked) {
				AtLeastOneMoreInfoChecked = true
			}
	}
	
	if (!AtLeastOneMoreInfoChecked) {
		// if none are selected
		alert("Please select at least one service to recieve more info about.")
		return false;
	}

	//if you make it this far...
	f.PostBack.value="1";
	return true;
}

function FormVaildateCareers(f){
		
	MM_validateForm('FirstName','','R','LastName','','R','Email','','RisEmail','Resume','','R');
	if(!document.MM_returnValue) return document.MM_returnValue;

	
	//if you make it this far...
	f.LocalPath.value = f.Resume.value
	//alert(f.LocalPath.value)	
	
	return true;
}


function setFormContent(elementArray, bCheckValue){
	//pass in a checkValue (boolean), then set the display based on that value
	var e;
	//alert(bCheckValue);
	for (var i=0;i<elementArray.length;i++){
		var e = document.getElementById(elementArray[i])
		if (bCheckValue){
			e.style.display = 'inline';
		}else{
			e.style.display = 'none';
		}
		//alert(e.style.display)
	}
}

