function openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

$(document).ready(function(){

	// For adding checkmark to answered questions
	$('form select, form input[type=radio]').change( function(){
		$(this).parents('tr').addClass('answered')
	});

	// Keep formed items as checked on page refresh
	var allRadios = $(':input:checked');
	$.each( allRadios, function(i, l){
		$(this).parents('tr').addClass('answered')
	});

	var allSelects = $("select option:selected");
	$.each(allSelects, function (i, l) {
		
		if ( $(l).attr('value') != 'Unanswered' ) {
			$(this).parents('tr').addClass('answered')
		}
	});
});
