function changePhoto(val){
	self.document.IMG1.width = 100;
	self.document.IMG1.alt = 'loading:  Image';
	self.document.IMG1.src = val.value;
}
function r(hval, field)
{
	var col1 = document.getElementById('cols');
	var col2 = document.getElementById('cols2');
	col1.bgColor=hval;
	col2.bgColor=hval;
	document.form1.elements[field].value=hval;
}
function r2(hval, field)
{
	var col2 = document.getElementById('cols');
	col2.style.color=hval;
	document.form1.elements[field].value=hval;
}

function show_answers(this_type) {
	var tr1 = document.getElementById('answers');
	
	if (this_type == 'radio' || this_type == 'checkbox'){
		tr1.style.display='inline';
	} else {
		tr1.style.display='none';
	}	
}
function validate_survey() {
	mEv1=form1.survey_max_participants.value;
	mEv2=form1.survey_code_needed;
	if (mEv1 == 0 && mEv2[0].checked) {
		alert('Max participants cannot be unlimited if code is needed to complete survey.');
		event.returnValue=false;
	}
}
