function resetForm(myFrom, fieldListList){
	myFrom.reset();
	
	for( var i in fieldListList ){
		if( fieldListList[i].className == 'f_input_dep_req' ){
			fieldListList[i].className = 'f_input_dep';
		}
		else if( fieldListList[i].className != 'f_input_opt' ){
			fieldListList[i].className = 'f_input';
		}
	}
}


function clearFields(fieldListList){
	
	for( var i in fieldListList ){
		fieldListList[i].value = '';
		blurThisField(fieldListList[i]);
		
		if( fieldListList[i].className == 'f_input_dep_req' ){
			fieldListList[i].className = 'f_input_dep';
		}
		else if( fieldListList[i].className != 'f_input_opt' ){
			fieldListList[i].className = 'f_input';
		}
	}
	
}


function checkImageFormat(myValue){
	var re = /jpeg|jpg$/i;
	
	if( myValue.match(re) ){
		return true;
	}
	else{
		return '* Image must be in JPG format\n';
	}
}